mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
refractor(mixpanel): remove pluginMeta variable
This commit is contained in:
parent
4340597fc9
commit
8f5532eb74
@ -67,13 +67,12 @@ export interface MediaError {
|
|||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
let pluginMeta = {
|
@Plugin({
|
||||||
name: 'MediaPlugin',
|
name: 'MediaPlugin',
|
||||||
repo: 'https://github.com/apache/cordova-plugin-media',
|
repo: 'https://github.com/apache/cordova-plugin-media',
|
||||||
plugin: 'cordova-plugin-media',
|
plugin: 'cordova-plugin-media',
|
||||||
pluginRef: 'Media'
|
pluginRef: 'Media'
|
||||||
};
|
})
|
||||||
@Plugin(pluginMeta)
|
|
||||||
export class MediaPlugin {
|
export class MediaPlugin {
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
@ -132,7 +131,10 @@ export class MediaPlugin {
|
|||||||
this._objectInstance = new Media(src, resolve, reject, onStatusUpdate);
|
this._objectInstance = new Media(src, resolve, reject, onStatusUpdate);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
pluginWarn(pluginMeta);
|
pluginWarn({
|
||||||
|
name: 'MediaPlugin',
|
||||||
|
plugin: 'cordova-plugin-media'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,10 +2,6 @@ import { Cordova, Plugin } from './plugin';
|
|||||||
|
|
||||||
declare var mixpanel: any;
|
declare var mixpanel: any;
|
||||||
|
|
||||||
/**
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Mixpanel
|
* @name Mixpanel
|
||||||
* @description
|
* @description
|
||||||
@ -112,11 +108,11 @@ export class MixpanelPeople {
|
|||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
static plugin: string = pluginMeta.plugin;
|
static plugin: string = 'cordova-plugin-mixpanel';
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
static pluginRef: string = pluginMeta.pluginRef + '.people';
|
static pluginRef: string = 'mixpanel.people';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user