mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-02 21:02:57 +08:00
parent
eaa87fae9b
commit
c8ecee01d6
@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, CordovaInstance, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Plugin, Cordova, CordovaCheck, CordovaInstance, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
/**
|
||||
@ -130,10 +130,16 @@ export class ProDeploy {
|
||||
})
|
||||
@Injectable()
|
||||
export class Pro extends IonicNativePlugin {
|
||||
_deploy: ProDeploy;
|
||||
|
||||
/**
|
||||
* Ionic Pro Deploy .js API.
|
||||
*/
|
||||
deploy: ProDeploy = new ProDeploy((Pro.getPlugin() || {}).deploy);
|
||||
@CordovaCheck()
|
||||
deploy(): ProDeploy {
|
||||
if (this._deploy) return this._deploy;
|
||||
else return this._deploy = new ProDeploy(Pro.getPlugin().deploy);
|
||||
}
|
||||
|
||||
/**
|
||||
* Not yet implemented
|
||||
|
Loading…
x
Reference in New Issue
Block a user