Revert "chore(package): bump dependencies and lint rules"

This reverts commit 21ad4734fa.
This commit is contained in:
Daniel
2018-03-16 22:04:01 +01:00
parent 21ad4734fa
commit 6c938bfdb7
178 changed files with 4221 additions and 10592 deletions
+14 -29
View File
@@ -1,10 +1,5 @@
import { Injectable } from '@angular/core';
import {
Cordova,
CordovaFunctionOverride,
IonicNativePlugin,
Plugin
} from '@ionic-native/core';
import { Cordova, Plugin, CordovaFunctionOverride, IonicNativePlugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
declare const window: any;
@@ -89,6 +84,7 @@ declare const window: any;
})
@Injectable()
export class Geofence extends IonicNativePlugin {
TransitionType = {
ENTER: 1,
EXIT: 2,
@@ -100,9 +96,7 @@ export class Geofence extends IonicNativePlugin {
* @return {Observable<any>}
*/
@CordovaFunctionOverride()
onTransitionReceived(): Observable<any> {
return;
}
onTransitionReceived(): Observable<any> { return; };
/**
* Initializes the plugin. User will be prompted to allow the app to use location and notifications.
@@ -110,9 +104,7 @@ export class Geofence extends IonicNativePlugin {
* @returns {Promise<void>}
*/
@Cordova()
initialize(): Promise<void> {
return;
}
initialize(): Promise<void> { return; };
/**
* Adds a new geofence or array of geofences. For geofence object, see above.
@@ -120,9 +112,7 @@ export class Geofence extends IonicNativePlugin {
* @returns {Promise<void>}
*/
@Cordova()
addOrUpdate(geofences: Object | Array<Object>): Promise<void> {
return;
}
addOrUpdate(geofences: Object | Array<Object>): Promise<void> { return; };
/**
* Removes a geofence or array of geofences. `geofenceID` corresponds to one or more IDs specified when the
@@ -131,9 +121,7 @@ export class Geofence extends IonicNativePlugin {
* @returns {Promise<void>}
*/
@Cordova()
remove(geofenceId: string | Array<string>): Promise<void> {
return;
}
remove(geofenceId: string | Array<string>): Promise<void> { return; };
/**
* Removes all geofences.
@@ -141,9 +129,7 @@ export class Geofence extends IonicNativePlugin {
* @returns {Promise<void>}
*/
@Cordova()
removeAll(): Promise<void> {
return;
}
removeAll(): Promise<void> { return; };
/**
* Returns an array of geofences currently being monitored.
@@ -151,9 +137,7 @@ export class Geofence extends IonicNativePlugin {
* @returns {Promise<Array<string>>}
*/
@Cordova()
getWatched(): Promise<string> {
return;
}
getWatched(): Promise<string> { return; };
/**
* Called when the user clicks a geofence notification. iOS and Android only.
@@ -161,11 +145,12 @@ export class Geofence extends IonicNativePlugin {
* @returns {Observable<any>}
*/
onNotificationClicked(): Observable<any> {
return new Observable<any>(observer => {
window &&
window.geofence &&
(window.geofence.onNotificationClicked = observer.next.bind(observer));
return () => (window.geofence.onNotificationClicked = () => {});
return new Observable<any>((observer) => {
window && window.geofence && (window.geofence.onNotificationClicked = observer.next.bind(observer));
return () => window.geofence.onNotificationClicked = () => { };
});
}
}