mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
Revert "refactor: optimize plugins for angular treeshaking"
This reverts commit 8b53c04dc5.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user