mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
Merge w/ master
This commit is contained in:
commit
821d8222fa
@ -27,8 +27,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
|||||||
*
|
*
|
||||||
* this.appAvailability.check(app)
|
* this.appAvailability.check(app)
|
||||||
* .then(
|
* .then(
|
||||||
* (yes: string) => console.log(app + ' is available'),
|
* (yes: boolean) => console.log(app + ' is available'),
|
||||||
* (no: string) => console.log(app + ' is NOT available')
|
* (no: boolean) => console.log(app + ' is NOT available')
|
||||||
* );
|
* );
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
|
@ -36,28 +36,21 @@ export interface DeployConfig {
|
|||||||
*/
|
*/
|
||||||
export class ProDeploy {
|
export class ProDeploy {
|
||||||
|
|
||||||
constructor(private _objectInstance: any) {
|
constructor(private _objectInstance: any) { }
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Re-initialize Deploy plugin with a new App ID and host. Not used in most cases.
|
* Re-initialize Deploy plugin with a new App ID and host. Not used in most cases.
|
||||||
* @param config A valid Deploy config object
|
* @param config A valid Deploy config object
|
||||||
*/
|
*/
|
||||||
@CordovaInstance()
|
@CordovaInstance()
|
||||||
init(config: DeployConfig): Promise<any> {
|
init(config: DeployConfig): Promise<any> { return; }
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check a channel for an available update
|
* Check a channel for an available update
|
||||||
* @return {Promise<string>} Resolves with 'true' or 'false', or rejects with an error.
|
* @return {Promise<string>} Resolves with 'true' or 'false', or rejects with an error.
|
||||||
*/
|
*/
|
||||||
@CordovaInstance({
|
@CordovaInstance()
|
||||||
observable: true
|
check(): Promise<string> { return; }
|
||||||
})
|
|
||||||
check(): Promise<string> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Download an available version
|
* Download an available version
|
||||||
@ -66,18 +59,16 @@ export class ProDeploy {
|
|||||||
@CordovaInstance({
|
@CordovaInstance({
|
||||||
observable: true
|
observable: true
|
||||||
})
|
})
|
||||||
download(): Observable<any> {
|
download(): Observable<any> { return; }
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unzip the latest downloaded version
|
* Unzip the latest downloaded version
|
||||||
* @return {Observable<any>} Updates with percent completion, or errors with a message.
|
* @return {Observable<any>} Updates with percent completion, or errors with a message.
|
||||||
*/
|
*/
|
||||||
@CordovaInstance()
|
@CordovaInstance({
|
||||||
extract(): Observable<any> {
|
observable: true
|
||||||
return;
|
})
|
||||||
}
|
extract(): Observable<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reload app with the deployed version
|
* Reload app with the deployed version
|
||||||
|
Loading…
Reference in New Issue
Block a user