Merge w/ master

This commit is contained in:
Ibby Hadeed 2018-01-25 12:31:38 -05:00
commit 821d8222fa
2 changed files with 11 additions and 20 deletions

View File

@ -27,8 +27,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
*
* this.appAvailability.check(app)
* .then(
* (yes: string) => console.log(app + ' is available'),
* (no: string) => console.log(app + ' is NOT available')
* (yes: boolean) => console.log(app + ' is available'),
* (no: boolean) => console.log(app + ' is NOT available')
* );
* ```
*/

View File

@ -36,28 +36,21 @@ export interface DeployConfig {
*/
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.
* @param config A valid Deploy config object
*/
@CordovaInstance()
init(config: DeployConfig): Promise<any> {
return;
}
init(config: DeployConfig): Promise<any> { return; }
/**
* Check a channel for an available update
* @return {Promise<string>} Resolves with 'true' or 'false', or rejects with an error.
*/
@CordovaInstance({
observable: true
})
check(): Promise<string> {
return;
}
@CordovaInstance()
check(): Promise<string> { return; }
/**
* Download an available version
@ -66,18 +59,16 @@ export class ProDeploy {
@CordovaInstance({
observable: true
})
download(): Observable<any> {
return;
}
download(): Observable<any> { return; }
/**
* Unzip the latest downloaded version
* @return {Observable<any>} Updates with percent completion, or errors with a message.
*/
@CordovaInstance()
extract(): Observable<any> {
return;
}
@CordovaInstance({
observable: true
})
extract(): Observable<any> { return; }
/**
* Reload app with the deployed version