feat(uptime): add iOS support

This commit is contained in:
Silviu Bogdan Stroe 2018-04-07 11:49:53 +03:00
parent 548860b1ff
commit e6f6158b43

View File

@ -1,5 +1,5 @@
import { Injectable } from '@angular/core'; import {Injectable} from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import {Cordova, IonicNativePlugin, Plugin} from '@ionic-native/core';
/** /**
* @name Uptime * @name Uptime
@ -15,7 +15,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
* ... * ...
* *
* this.uptime.getUptime() * this.uptime.getUptime()
* .then((uptime: any) => console.log(uptime)) * .then((uptime: string) => console.log(uptime))
* .catch((error: any) => console.log(error)); * .catch((error: any) => console.log(error));
* *
* ``` * ```
@ -27,7 +27,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/s1lviu/cordova-plugin-uptime', repo: 'https://github.com/s1lviu/cordova-plugin-uptime',
install: '', install: '',
installVariables: [], installVariables: [],
platforms: ['Android'] platforms: ['Android', 'iOS']
}) })
@Injectable() @Injectable()
export class Uptime extends IonicNativePlugin { export class Uptime extends IonicNativePlugin {