Revert "refactor: optimize plugins for angular treeshaking"

This reverts commit 8b53c04dc5.
This commit is contained in:
Daniel Sogl
2019-02-20 17:37:39 +01:00
parent 6fde61d69c
commit fcda5ffcab
238 changed files with 245 additions and 735 deletions
+4 -12
View File
@@ -25,9 +25,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/WebEngage/cordova-plugin',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Webengage extends IonicNativePlugin {
/**
* Initializes WebEngage SDK
@@ -81,9 +79,7 @@ export class Webengage extends IonicNativePlugin {
plugin: 'cordova-plugin-webengage',
pluginRef: 'webengage.user'
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class WebengageUser extends IonicNativePlugin {
/**
* Logs user in
@@ -124,9 +120,7 @@ export class WebengageUser extends IonicNativePlugin {
plugin: 'cordova-plugin-webengage',
pluginRef: 'webengage.push'
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class WebengagePush extends IonicNativePlugin {
/**
* Callback function is invoked when a push notification is clicked
@@ -158,9 +152,7 @@ export class WebengagePush extends IonicNativePlugin {
plugin: 'cordova-plugin-webengage',
pluginRef: 'webengage.notification'
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class WebengageNotification extends IonicNativePlugin {
/**
* Callback function is invoked when a in-app notification is shown