diff --git a/src/plugins/media.ts b/src/plugins/media.ts index bef100f63..ae23d60ea 100644 --- a/src/plugins/media.ts +++ b/src/plugins/media.ts @@ -67,13 +67,12 @@ export interface MediaError { * * ``` */ -let pluginMeta = { +@Plugin({ name: 'MediaPlugin', repo: 'https://github.com/apache/cordova-plugin-media', plugin: 'cordova-plugin-media', pluginRef: 'Media' -}; -@Plugin(pluginMeta) +}) export class MediaPlugin { // Constants @@ -132,7 +131,10 @@ export class MediaPlugin { this._objectInstance = new Media(src, resolve, reject, onStatusUpdate); }); } else { - pluginWarn(pluginMeta); + pluginWarn({ + name: 'MediaPlugin', + plugin: 'cordova-plugin-media' + }); } } diff --git a/src/plugins/mixpanel.ts b/src/plugins/mixpanel.ts index 7185ee4c4..1550bbe57 100644 --- a/src/plugins/mixpanel.ts +++ b/src/plugins/mixpanel.ts @@ -2,10 +2,6 @@ import { Cordova, Plugin } from './plugin'; declare var mixpanel: any; -/** - * @private - */ - /** * @name Mixpanel * @description @@ -112,11 +108,11 @@ export class MixpanelPeople { /** * @private */ - static plugin: string = pluginMeta.plugin; + static plugin: string = 'cordova-plugin-mixpanel'; /** * @private */ - static pluginRef: string = pluginMeta.pluginRef + '.people'; + static pluginRef: string = 'mixpanel.people'; /** *