diff --git a/scripts/templates/wrap-min.tmpl b/scripts/templates/wrap-min.tmpl index 8c6f18a0a..83aa48ff2 100644 --- a/scripts/templates/wrap-min.tmpl +++ b/scripts/templates/wrap-min.tmpl @@ -1,4 +1,4 @@ -import { Plugin } from '@ionic-native/core'; +import { Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; /** @@ -25,6 +25,6 @@ import { Injectable } from '@angular/core'; platforms: [] }) @Injectable() -export class $PluginName { +export class $PluginName extends IonicNativePlugin { } diff --git a/scripts/templates/wrap.tmpl b/scripts/templates/wrap.tmpl index 441bf8836..596d3442f 100644 --- a/scripts/templates/wrap.tmpl +++ b/scripts/templates/wrap.tmpl @@ -10,7 +10,7 @@ * - Remove this note * */ -import { Plugin, Cordova, CordovaProperty, CordovaInstance, InstanceProperty } from '@ionic-native/core'; +import { Plugin, Cordova, CordovaProperty, CordovaInstance, InstanceProperty, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; @@ -44,7 +44,7 @@ import { Observable } from 'rxjs/Observable'; install: '', // OPTIONAL install command, in case the plugin requires variables }) @Injectable() -export class $PluginName { +export class $PluginName extends IonicNativePlugin { /** * This function does something