From ab782f7093735a355fc904385f60682af982ad3f Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Thu, 27 Apr 2017 00:53:06 -0400 Subject: [PATCH] chore(): update templates --- scripts/templates/wrap-min.tmpl | 4 ++-- scripts/templates/wrap.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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