From 689f0f159c0fa4d8110197ad9f8253751c1d5bb7 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Tue, 28 Mar 2017 08:25:07 -0400 Subject: [PATCH] chore(): add platforms tag --- scripts/templates/wrap-min.tmpl | 3 ++- scripts/templates/wrap.tmpl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/templates/wrap-min.tmpl b/scripts/templates/wrap-min.tmpl index 3e0d607a..8c6f18a0 100644 --- a/scripts/templates/wrap-min.tmpl +++ b/scripts/templates/wrap-min.tmpl @@ -21,7 +21,8 @@ import { Injectable } from '@angular/core'; pluginName: '$PluginName', plugin: '', pluginRef: '', - repo: '' + repo: '', + platforms: [] }) @Injectable() export class $PluginName { diff --git a/scripts/templates/wrap.tmpl b/scripts/templates/wrap.tmpl index 8c13ef55..441bf883 100644 --- a/scripts/templates/wrap.tmpl +++ b/scripts/templates/wrap.tmpl @@ -40,7 +40,8 @@ import { Observable } from 'rxjs/Observable'; plugin: '', // npm package name, example: cordova-plugin-camera pluginRef: '', // the variable reference to call the plugin, example: navigator.geolocation repo: '', // the github repository URL for the plugin - install: '' // OPTIONAL install command, in case the plugin requires variables + platforms: [], // Array of platforms supported, example: ['Android', 'iOS'] + install: '', // OPTIONAL install command, in case the plugin requires variables }) @Injectable() export class $PluginName {