chore(package): bump dependencies and lint rules

This commit is contained in:
Daniel
2018-03-16 22:04:01 +01:00
parent 7547a94c80
commit 21ad4734fa
178 changed files with 10565 additions and 4194 deletions
+10 -17
View File
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core';
import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name Uid
@@ -13,12 +13,12 @@ import { Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core';
*
* constructor(private uid: Uid, private androidPermissions: AndroidPermissions) { }
*
*
*
* async getImei() {
* const { hasPermission } = await this.androidPermissions.checkPermission(
* this.androidPermissions.PERMISSION.READ_PHONE_STATE
* );
*
*
* if (!hasPermission) {
* const result = await this.androidPermissions.requestPermission(
* this.androidPermissions.PERMISSION.READ_PHONE_STATE
@@ -27,11 +27,11 @@ import { Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core';
* if (!result.hasPermission) {
* throw new Error('Permissions required');
* }
*
*
* // ok, a user gave us permission, we can get him identifiers after restart app
* return;
* }
*
*
* return this.uid.IMEI
* }
* ```
@@ -45,25 +45,18 @@ import { Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core';
})
@Injectable()
export class Uid extends IonicNativePlugin {
/** Get the device Universally Unique Identifier (UUID). */
@CordovaProperty
UUID: string;
@CordovaProperty UUID: string;
/** Get the device International Mobile Station Equipment Identity (IMEI). */
@CordovaProperty
IMEI: string;
@CordovaProperty IMEI: string;
/** Get the device International mobile Subscriber Identity (IMSI). */
@CordovaProperty
IMSI: string;
@CordovaProperty IMSI: string;
/** Get the sim Integrated Circuit Card Identifier (ICCID). */
@CordovaProperty
ICCID: string;
@CordovaProperty ICCID: string;
/** Get the Media Access Control address (MAC). */
@CordovaProperty
MAC: string;
@CordovaProperty MAC: string;
}