mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
chore(package): bump dependencies and lint rules
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
|
||||
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
|
||||
/**
|
||||
* @name Insomnia
|
||||
@@ -34,23 +33,32 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
|
||||
plugin: 'cordova-plugin-insomnia',
|
||||
pluginRef: 'plugins.insomnia',
|
||||
repo: 'https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin',
|
||||
platforms: ['Android', 'Browser', 'Firefox OS', 'iOS', 'Windows', 'Windows Phone 8']
|
||||
platforms: [
|
||||
'Android',
|
||||
'Browser',
|
||||
'Firefox OS',
|
||||
'iOS',
|
||||
'Windows',
|
||||
'Windows Phone 8'
|
||||
]
|
||||
})
|
||||
@Injectable()
|
||||
export class Insomnia extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* Keeps awake the application
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
keepAwake(): Promise<any> { return; }
|
||||
keepAwake(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows the application to sleep again
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
allowSleepAgain(): Promise<any> { return; }
|
||||
|
||||
allowSleepAgain(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user