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
@@ -1,11 +1,5 @@
import { Injectable } from '@angular/core';
import {
checkAvailability,
Cordova,
CordovaInstance,
IonicNativePlugin,
Plugin
} from '@ionic-native/core';
import { Cordova, CordovaInstance, Plugin, IonicNativePlugin, checkAvailability } from '@ionic-native/core';
declare const Notification: any;
@@ -13,25 +7,22 @@ declare const Notification: any;
* @hidden
*/
export class PLNObject {
private _objectInstance: any;
constructor(title: string, options: LocalNotificationOptions) {
if (
checkAvailability(
PhonegapLocalNotification.pluginRef,
null,
PhonegapLocalNotification.pluginName
) === true
) {
if (checkAvailability(PhonegapLocalNotification.pluginRef, null, PhonegapLocalNotification.pluginName) === true) {
this._objectInstance = new Notification(title, options);
}
}
@CordovaInstance({ sync: true })
close(): void {}
close(): void { }
}
export interface LocalNotificationOptions {
/**
* Sets the direction of the notification. One of "auto", "ltr" or "rtl"
*/
@@ -56,6 +47,7 @@ export interface LocalNotificationOptions {
* Sets the icon of the notification
*/
icon?: string;
}
/**
@@ -102,22 +94,20 @@ export interface LocalNotificationOptions {
})
@Injectable()
export class PhonegapLocalNotification extends IonicNativePlugin {
/**
* A global object that lets you interact with the Notification API.
* @param title {string} Title of the local notification.
* @param Options {LocalNotificationOptions} An object containing optional property/value pairs.
* @returns {PLNObject}
*/
create(title: string, options: LocalNotificationOptions) {
return new PLNObject(title, options);
}
create(title: string, options: LocalNotificationOptions) { return new PLNObject(title, options); }
/**
* requests permission from the user to show a local notification.
* @returns {Promise<any>}
*/
* requests permission from the user to show a local notification.
* @returns {Promise<any>}
*/
@Cordova()
requestPermission(): Promise<any> {
return;
}
requestPermission(): Promise<any> { return; }
}