fix(plugin): don't bind to name field. Fixes #740

This commit is contained in:
Max Lynch 2016-10-27 12:48:50 -05:00
parent 0669ba5222
commit 71916a85dd
109 changed files with 119 additions and 119 deletions

View File

@ -65,7 +65,7 @@ declare var window: any;
* ```
*/
@Plugin({
name: 'ThreeDeeTouch',
pluginName: 'ThreeDeeTouch',
plugin: 'cordova-plugin-3dtouch',
pluginRef: 'ThreeDeeTouch',
repo: 'https://github.com/EddyVerbruggen/cordova-plugin-3dtouch',

View File

@ -41,7 +41,7 @@ import { Cordova, Plugin } from './plugin';
*
*/
@Plugin({
name: 'ActionSheet',
pluginName: 'ActionSheet',
plugin: 'cordova-plugin-actionsheet',
pluginRef: 'plugins.actionsheet',
repo: 'https://github.com/EddyVerbruggen/cordova-plugin-actionsheet',

View File

@ -8,7 +8,7 @@ import { Observable } from 'rxjs/Observable';
* Please refer the the plugin's original repository for detailed usage.
*/
@Plugin({
name: 'AdMob',
pluginName: 'AdMob',
plugin: 'cordova-plugin-admobpro',
pluginRef: 'AdMob',
repo: 'https://github.com/floatinghotpot/cordova-admob-pro',

View File

@ -30,7 +30,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'AndroidFingerprintAuth',
pluginName: 'AndroidFingerprintAuth',
plugin: 'cordova-plugin-android-fingerprint-auth',
pluginRef: 'FingerprintAuth',
repo: 'https://github.com/mjwheatley/cordova-plugin-android-fingerprint-auth'

View File

@ -28,7 +28,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'AppAvailability',
pluginName: 'AppAvailability',
plugin: 'cordova-plugin-appavailability',
pluginRef: 'appAvailability',
repo: 'https://github.com/ohh2ahh/AppAvailability',

View File

@ -44,7 +44,7 @@ declare var window;
*/
@Plugin({
name: 'AppRate',
pluginName: 'AppRate',
plugin: 'cordova-plugin-apprate',
pluginRef: 'AppRate',
repo: 'https://github.com/pushandplay/cordova-plugin-apprate',

View File

@ -19,7 +19,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'AppVersion',
pluginName: 'AppVersion',
plugin: 'cordova-plugin-app-version',
pluginRef: 'cordova.getAppVersion',
repo: 'https://github.com/whiteoctober/cordova-plugin-app-version',

View File

@ -272,7 +272,7 @@ export interface Config {
* Config
*/
@Plugin({
name: 'BackgroundGeolocation',
pluginName: 'BackgroundGeolocation',
plugin: 'cordova-plugin-mauron85-background-geolocation',
pluginRef: 'backgroundGeolocation',
repo: 'https://github.com/mauron85/cordova-plugin-background-geolocation',

View File

@ -28,7 +28,7 @@ import { Observable } from 'rxjs/Observable';
*
*/
@Plugin({
name: 'BackgroundMode',
pluginName: 'BackgroundMode',
plugin: 'cordova-plugin-background-mode',
pluginRef: 'cordova.plugins.backgroundMode',
repo: 'https://github.com/katzer/cordova-plugin-background-mode',

View File

@ -18,7 +18,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'Badge',
pluginName: 'Badge',
plugin: 'cordova-plugin-badge',
pluginRef: 'cordova.plugins.notification.badge',
repo: 'https://github.com/katzer/cordova-plugin-badge',

View File

@ -20,7 +20,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'BarcodeScanner',
pluginName: 'BarcodeScanner',
plugin: 'phonegap-plugin-barcodescanner',
pluginRef: 'cordova.plugins.barcodeScanner',
repo: 'https://github.com/phonegap/phonegap-plugin-barcodescanner',

View File

@ -14,7 +14,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'Base64ToGallery',
pluginName: 'Base64ToGallery',
plugin: 'cordova-base64-to-gallery',
pluginRef: 'cordova',
repo: 'https://github.com/Nexxa/cordova-base64-to-gallery',

View File

@ -24,7 +24,7 @@ import { Observable } from 'rxjs/Observable';
* ```
*/
@Plugin({
name: 'BatteryStatus',
pluginName: 'BatteryStatus',
plugin: 'cordova-plugin-battery-status',
repo: 'https://github.com/apache/cordova-plugin-battery-status',
platforms: ['Amazon Fire OS', 'iOS', 'Android', 'BlackBerry 10', 'Windows Phone 7', 'Windows Phone 8', 'Windows', 'Firefox OS', 'Browser']

View File

@ -160,7 +160,7 @@ import { Observable } from 'rxjs/Observable';
*
*/
@Plugin({
name: 'BLE',
pluginName: 'BLE',
plugin: 'cordova-plugin-ble-central',
pluginRef: 'ble',
repo: 'https://github.com/don/cordova-plugin-ble-central',

View File

@ -28,7 +28,7 @@ import { Observable } from 'rxjs/Observable';
* ```
*/
@Plugin({
name: 'BluetoothSerial',
pluginName: 'BluetoothSerial',
repo: 'https://github.com/don/BluetoothSerial',
plugin: 'cordova-plugin-bluetooth-serial',
pluginRef: 'bluetoothSerial',

View File

@ -18,7 +18,7 @@ import { Cordova, Plugin } from './plugin';
*
*/
@Plugin({
name: 'Brightness',
pluginName: 'Brightness',
plugin: 'cordova-plugin-brightness',
pluginRef: 'cordova.plugins.brightness',
repo: 'https://github.com/mgcrea/cordova-plugin-brightness',

View File

@ -38,7 +38,7 @@ export interface CalendarOptions {
*
*/
@Plugin({
name: 'Calendar',
pluginName: 'Calendar',
plugin: 'cordova-plugin-calendar',
pluginRef: 'plugins.calendar',
repo: 'https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin',

View File

@ -16,7 +16,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'CallNumber',
pluginName: 'CallNumber',
plugin: 'call-number',
pluginRef: 'plugins.CallNumber',
repo: 'https://github.com/Rohfosho/CordovaCallNumberPlugin',

View File

@ -69,7 +69,7 @@ export interface CameraPreviewSize {
*
*/
@Plugin({
name: 'CameraPreview',
pluginName: 'CameraPreview',
plugin: 'cordova-plugin-camera-preview',
pluginRef: 'cordova.plugins.camerapreview',
repo: 'https://github.com/westonganger/cordova-plugin-camera-preview',

View File

@ -110,7 +110,7 @@ export interface CameraPopoverOptions {
* CameraPopoverOptions
*/
@Plugin({
name: 'Camera',
pluginName: 'Camera',
plugin: 'cordova-plugin-camera',
pluginRef: 'navigator.camera',
repo: 'https://github.com/apache/cordova-plugin-camera',

View File

@ -25,7 +25,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'CardIO',
pluginName: 'CardIO',
plugin: 'https://github.com/card-io/card.io-Cordova-Plugin',
pluginRef: 'CardIO',
repo: 'https://github.com/card-io/card.io-Cordova-Plugin',

View File

@ -28,7 +28,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'Clipboard',
pluginName: 'Clipboard',
plugin: 'https://github.com/VersoSolutions/CordovaClipboard.git',
pluginRef: 'cordova.plugins.clipboard',
repo: 'https://github.com/VersoSolutions/CordovaClipboard',

View File

@ -420,7 +420,7 @@ export interface DownloadProgress {
* ```
*/
@Plugin({
name: 'CodePush',
pluginName: 'CodePush',
plugin: 'cordova-plugin-code-push',
pluginRef: 'codePush',
repo: 'https://github.com/Microsoft/cordova-plugin-code-push',

View File

@ -316,7 +316,7 @@ export class ContactFindOptions implements IContactFindOptions {
* ContactAddress
*/
@Plugin({
name: 'Contacts',
pluginName: 'Contacts',
plugin: 'cordova-plugin-contacts',
pluginRef: 'navigator.contacts',
repo: 'https://github.com/apache/cordova-plugin-contacts'

View File

@ -16,7 +16,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'Crop',
pluginName: 'Crop',
plugin: 'cordova-plugin-crop',
pluginRef: 'plugins',
repo: 'https://github.com/jeduan/cordova-plugin-crop'

View File

@ -128,7 +128,7 @@ export interface DatePickerOptions {
* DatePickerOptions
*/
@Plugin({
name: 'DatePicker',
pluginName: 'DatePicker',
plugin: 'cordova-plugin-datepicker',
pluginRef: 'datePicker',
repo: 'https://github.com/VitaliiBlagodir/cordova-plugin-datepicker'

View File

@ -31,7 +31,7 @@ import { Observable } from 'rxjs/Observable';
* ```
*/
@Plugin({
name: 'DBMeter',
pluginName: 'DBMeter',
plugin: 'cordova-plugin-dbmeter',
pluginRef: 'DBMeter',
repo: 'https://github.com/akofman/cordova-plugin-dbmeter',

View File

@ -59,7 +59,7 @@ export interface DeeplinkMatch {
* retrieve the `NavController` reference at runtime.
*/
@Plugin({
name: 'Deeplinks',
pluginName: 'Deeplinks',
plugin: 'ionic-plugin-deeplinks',
pluginRef: 'IonicDeeplink',
repo: 'https://github.com/driftyco/ionic-plugin-deeplinks',

View File

@ -25,7 +25,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'DeviceFeedback',
pluginName: 'DeviceFeedback',
plugin: 'cordova-plugin-velda-devicefeedback',
pluginRef: 'plugins.deviceFeedback',
repo: 'https://github.com/VVelda/device-feedback',

View File

@ -41,7 +41,7 @@ export interface Device {
* ```
*/
@Plugin({
name: 'Device',
pluginName: 'Device',
plugin: 'cordova-plugin-device',
pluginRef: 'device',
repo: 'https://github.com/apache/cordova-plugin-device'

View File

@ -2,7 +2,7 @@ import { Cordova, Plugin } from './plugin';
@Plugin({
name: 'DeviceAccounts',
pluginName: 'DeviceAccounts',
plugin: 'https://github.com/loicknuchel/cordova-device-accounts.git',
pluginRef: 'plugins.DeviceAccounts',
repo: 'https://github.com/loicknuchel/cordova-device-accounts',

View File

@ -62,7 +62,7 @@ export interface AccelerometerOptions {
* ```
*/
@Plugin({
name: 'DeviceMotion',
pluginName: 'DeviceMotion',
plugin: 'cordova-plugin-device-motion',
pluginRef: 'navigator.accelerometer',
repo: 'https://github.com/apache/cordova-plugin-device-motion'

View File

@ -67,7 +67,7 @@ export interface CompassOptions {
* ```
*/
@Plugin({
name: 'DeviceOrientation',
pluginName: 'DeviceOrientation',
plugin: 'cordova-plugin-device-orientation',
pluginRef: 'navigator.compass',
repo: 'https://github.com/apache/cordova-plugin-device-orientation'

View File

@ -29,7 +29,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'Diagnostic',
pluginName: 'Diagnostic',
plugin: 'cordova.plugins.diagnostic',
pluginRef: 'cordova.plugins.diagnostic',
repo: 'https://github.com/dpa99c/cordova-diagnostic-plugin'

View File

@ -32,7 +32,7 @@ export interface PromptCallback {
* ```
*/
@Plugin({
name: 'Dialogs',
pluginName: 'Dialogs',
plugin: 'cordova-plugin-dialogs',
pluginRef: 'navigator.notification',
repo: 'https://github.com/apache/cordova-plugin-dialogs.git'

View File

@ -44,7 +44,7 @@ declare var cordova: any;
* ```
*/
@Plugin({
name: 'EmailComposer',
pluginName: 'EmailComposer',
plugin: 'cordova-plugin-email',
pluginRef: 'cordova.plugins.email',
repo: 'https://github.com/hypery2k/cordova-email-plugin',

View File

@ -9,7 +9,7 @@ import { Observable } from 'rxjs/Observable';
*
*/
@Plugin({
name: 'EstimoteBeacons',
pluginName: 'EstimoteBeacons',
plugin: 'cordova-plugin-estimote',
pluginRef: 'estimote.beacons',
repo: 'https://github.com/evothings/phonegap-estimotebeacons',

View File

@ -78,7 +78,7 @@ import { Cordova, Plugin } from './plugin';
*
*/
@Plugin({
name: 'Facebook',
pluginName: 'Facebook',
plugin: 'cordova-plugin-facebook4',
pluginRef: 'facebookConnectPlugin',
repo: 'https://github.com/jeduan/cordova-plugin-facebook4',

View File

@ -16,7 +16,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'FileChooser',
pluginName: 'FileChooser',
plugin: 'http://github.com/don/cordova-filechooser.git',
pluginRef: 'fileChooser',
repo: 'https://github.com/don/cordova-filechooser',

View File

@ -13,7 +13,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'FileOpener',
pluginName: 'FileOpener',
plugin: 'cordova-plugin-file-opener2',
pluginRef: 'cordova.plugins.fileOpener2',
repo: 'https://github.com/pwlin/cordova-plugin-file-opener2'

View File

@ -360,7 +360,7 @@ declare var FileError: {
* It also implements the FileWriter spec : http://dev.w3.org/2009/dap/file-system/file-writer.html
*/
@Plugin({
name: 'File',
pluginName: 'File',
plugin: 'cordova-plugin-file',
pluginRef: 'cordova.file',
repo: 'https://github.com/apache/cordova-plugin-file'
@ -391,7 +391,7 @@ export class File {
return new Promise<any>((resolve, reject) => {
if (!cordova || !cordova.exec) {
pluginWarn({
name: 'File',
pluginName: 'File',
plugin: 'cordova-plugin-file'
});
reject({ error: 'plugin_not_installed' });

View File

@ -19,7 +19,7 @@ declare var window: any;
* ```
*/
@Plugin({
name: 'FilePath',
pluginName: 'FilePath',
plugin: 'cordova-plugin-filepath',
pluginRef: 'window.FilePath',
repo: 'https://github.com/hiddentao/cordova-plugin-filepath',

View File

@ -173,7 +173,7 @@ export interface FileTransferError {
* ```
*/
@Plugin({
name: 'FileTransfer',
pluginName: 'FileTransfer',
plugin: 'cordova-plugin-file-transfer',
pluginRef: 'FileTransfer',
repo: 'https://github.com/apache/cordova-plugin-file-transfer'

View File

@ -16,7 +16,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'Flashlight',
pluginName: 'Flashlight',
plugin: 'cordova-plugin-flashlight',
pluginRef: 'window.plugins.flashlight',
repo: 'https://github.com/EddyVerbruggen/Flashlight-PhoneGap-Plugin.git'

View File

@ -74,7 +74,7 @@ import { Observable } from 'rxjs/Observable';
declare var window: any;
@Plugin({
name: 'Geofence',
pluginName: 'Geofence',
plugin: 'cordova-plugin-geofence',
pluginRef: 'geofence',
repo: 'https://github.com/cowbell/cordova-plugin-geofence/',

View File

@ -139,7 +139,7 @@ export interface GeolocationOptions {
* GeolocationOptions
*/
@Plugin({
name: 'Geolocation',
pluginName: 'Geolocation',
plugin: 'cordova-plugin-geolocation',
pluginRef: 'navigator.geolocation',
repo: 'https://github.com/apache/cordova-plugin-geolocation'

View File

@ -11,7 +11,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'Globalization',
pluginName: 'Globalization',
plugin: 'cordova-plugin-globalization',
pluginRef: 'navigator.globalization',
repo: 'https://github.com/apache/cordova-plugin-globalization'

View File

@ -12,7 +12,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'GooglePlus',
pluginName: 'GooglePlus',
plugin: 'cordova-plugin-googleplus',
pluginRef: 'window.plugins.googleplus',
repo: 'https://github.com/EddyVerbruggen/cordova-plugin-googleplus',

View File

@ -13,7 +13,7 @@ declare var window;
* - (Android) Google Play Services SDK installed via [Android SDK Manager](https://developer.android.com/sdk/installing/adding-packages.html)
*/
@Plugin({
name: 'GoogleAnalytics',
pluginName: 'GoogleAnalytics',
plugin: 'cordova-plugin-google-analytics',
pluginRef: 'ga',
repo: 'https://github.com/danwilson/google-analytics-plugin',

View File

@ -84,7 +84,7 @@ export const GoogleMapsAnimation = {
* ```
*/
@Plugin({
name: 'GoogleMap',
pluginName: 'GoogleMap',
pluginRef: 'plugin.google.maps.Map',
plugin: 'cordova-plugin-googlemaps',
repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps',
@ -109,7 +109,7 @@ export class GoogleMap {
this._objectInstance = plugin.google.maps.Map.getMap(element, options);
} else {
pluginWarn({
name: 'GoogleMap',
pluginName: 'GoogleMap',
plugin: 'plugin.google.maps.Map'
});
}
@ -982,7 +982,7 @@ export class Geocoder {
return new Promise<GeocoderResult[]>((resolve, reject) => {
if (!plugin || !plugin.google || !plugin.google.maps || !plugin.google.maps.Geocoder) {
pluginWarn({
name: 'GoogleMap',
pluginName: 'GoogleMap',
plugin: 'plugin.google.maps.Map'
});
reject({ error: 'plugin_not_installed' });

View File

@ -15,7 +15,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'Hotspot',
pluginName: 'Hotspot',
plugin: 'cordova-plugin-hotspot',
pluginRef: 'cordova.plugins.hotspot',
repo: 'https://github.com/hypery2k/cordova-hotspot-plugin',

View File

@ -33,7 +33,7 @@ import { Plugin, Cordova } from './plugin';
* HTTPResponse
*/
@Plugin({
name: 'HTTP',
pluginName: 'HTTP',
plugin: 'cordova-plugin-http',
pluginRef: 'cordovaHTTP',
repo: 'https://github.com/wymsee/cordova-HTTP',

View File

@ -23,7 +23,7 @@ import { Observable } from 'rxjs/Observable';
* ```
*/
@Plugin({
name: 'Httpd',
pluginName: 'Httpd',
plugin: 'https://github.com/floatinghotpot/cordova-httpd.git',
pluginRef: 'cordova.plugins.CorHttpd',
repo: 'https://github.com/floatinghotpot/cordova-httpd',

View File

@ -268,7 +268,7 @@ export interface Delegate {
* ```
*/
@Plugin({
name: 'IBeacon',
pluginName: 'IBeacon',
plugin: 'cordova-plugin-ibeacon',
pluginRef: 'cordova.plugins.locationManager',
repo: 'https://github.com/petermetz/cordova-plugin-ibeacon',

View File

@ -46,7 +46,7 @@ export interface ImagePickerOptions {
* ImagePickerOptions
*/
@Plugin({
name: 'ImagePicker',
pluginName: 'ImagePicker',
plugin: 'cordova-plugin-image-picker',
pluginRef: 'window.imagePicker',
repo: 'https://github.com/wymsee/cordova-imagePicker'

View File

@ -67,7 +67,7 @@ export interface ImageResizerOptions {
* ```
*/
@Plugin({
name: 'ImageResizer',
pluginName: 'ImageResizer',
plugin: 'https://github.com/protonet/cordova-plugin-image-resizer.git',
pluginRef: 'ImageResizer',
repo: 'https://github.com/protonet/cordova-plugin-image-resizer'

View File

@ -31,7 +31,7 @@ export interface InAppBrowserEvent extends Event {
* ```
*/
@Plugin({
name: 'InAppBrowser',
pluginName: 'InAppBrowser',
plugin: 'cordova-plugin-inappbrowser',
pluginRef: 'cordova.InAppBrowser',
repo: 'https://github.com/apache/cordova-plugin-inappbrowser'

View File

@ -51,7 +51,7 @@ import { Plugin, Cordova } from './plugin';
*
*/
@Plugin({
name: 'InAppPurchase',
pluginName: 'InAppPurchase',
plugin: 'cordova-plugin-inapppurchase',
pluginRef: 'inAppPurchase',
platforms: ['Android', 'iOS'],

View File

@ -26,7 +26,7 @@ import { Cordova, Plugin } from './plugin';
*
*/
@Plugin({
name: 'Insomnia',
pluginName: 'Insomnia',
plugin: 'https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git',
pluginRef: 'plugins.insomnia',
repo: 'https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin',

View File

@ -15,7 +15,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'Instagram',
pluginName: 'Instagram',
plugin: 'cordova-instagram-plugin',
pluginRef: 'Instagram',
repo: 'https://github.com/vstirbu/InstagramPlugin'

View File

@ -17,7 +17,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'IsDebug',
pluginName: 'IsDebug',
plugin: 'cordova-plugin-is-debug',
pluginRef: 'cordova.plugins.IsDebug',
repo: 'https://github.com/mattlewis92/cordova-plugin-is-debug'

View File

@ -14,7 +14,7 @@ import { Observable } from 'rxjs/Observable';
* ```
*/
@Plugin({
name: 'Keyboard',
pluginName: 'Keyboard',
plugin: 'ionic-plugin-keyboard',
pluginRef: 'cordova.plugins.Keyboard',
repo: 'https://github.com/driftyco/ionic-plugin-keyboard'

View File

@ -82,7 +82,7 @@ export interface LaunchNavigatorOptions {
* ```
*/
@Plugin({
name: 'LaunchNavigator',
pluginName: 'LaunchNavigator',
plugin: 'uk.co.workingedge.phonegap.plugin.launchnavigator',
pluginRef: 'launchnavigator',
repo: 'https://github.com/dpa99c/phonegap-launch-navigator.git'

View File

@ -45,7 +45,7 @@ import { Cordova, Plugin } from './plugin';
*
*/
@Plugin({
name: 'LocalNotifications',
pluginName: 'LocalNotifications',
plugin: 'de.appplant.cordova.plugin.local-notification',
pluginRef: 'cordova.plugins.notification.local',
repo: 'https://github.com/katzer/cordova-plugin-local-notifications'

View File

@ -23,7 +23,7 @@ import {Plugin, Cordova} from './plugin';
* ```
*/
@Plugin({
name: 'LocationAccuracy',
pluginName: 'LocationAccuracy',
plugin: 'cordova-plugin-request-location-accuracy',
pluginRef: 'cordova.plugins.locationAccuracy',
repo: 'https://github.com/dpa99c/cordova-plugin-request-location-accuracy'

View File

@ -13,7 +13,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'Market',
pluginName: 'Market',
plugin: 'cordova-plugin-market',
pluginRef: 'plugins.market',
repo: 'https://github.com/xmartlabs/cordova-plugin-market'

View File

@ -22,7 +22,7 @@ declare var navigator: any;
* ```
*/
@Plugin({
name: 'MediaCapture',
pluginName: 'MediaCapture',
plugin: 'cordova-plugin-media-capture',
pluginRef: 'navigator.device.capture',
repo: 'https://github.com/apache/cordova-plugin-media-capture'

View File

@ -68,7 +68,7 @@ export interface MediaError {
* ```
*/
@Plugin({
name: 'MediaPlugin',
pluginName: 'MediaPlugin',
repo: 'https://github.com/apache/cordova-plugin-media',
plugin: 'cordova-plugin-media',
pluginRef: 'Media'
@ -132,7 +132,7 @@ export class MediaPlugin {
});
} else {
pluginWarn({
name: 'MediaPlugin',
pluginName: 'MediaPlugin',
plugin: 'cordova-plugin-media'
});
}

View File

@ -18,7 +18,7 @@ declare var mixpanel: any;
* ```
*/
@Plugin({
name: 'Mixpanel',
pluginName: 'Mixpanel',
plugin: 'cordova-plugin-mixpanel',
pluginRef: 'mixpanel',
repo: 'https://github.com/samzilverberg/cordova-mixpanel-plugin'

View File

@ -73,7 +73,7 @@ import { Observable } from 'rxjs/Observable';
* ```
*/
@Plugin({
name: 'MusicControls',
pluginName: 'MusicControls',
plugin: 'cordova-plugin-music-controls',
pluginRef: 'MusicControls',
repo: 'https://github.com/homerours/cordova-music-controls-plugin'

View File

@ -21,7 +21,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'NativeAudio',
pluginName: 'NativeAudio',
plugin: 'cordova-plugin-nativeaudio',
pluginRef: 'plugins.NativeAudio',
repo: 'https://github.com/floatinghotpot/cordova-plugin-nativeaudio'

View File

@ -27,7 +27,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'NativePageTransitions',
pluginName: 'NativePageTransitions',
plugin: 'com.telerik.plugins.nativepagetransitions',
pluginRef: 'plugins.nativepagetransitions',
repo: 'https://github.com/Telerik-Verified-Plugins/NativePageTransitions',

View File

@ -23,7 +23,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'NativeStorage',
pluginName: 'NativeStorage',
plugin: 'cordova-plugin-nativestorage',
pluginRef: 'NativeStorage',
repo: 'https://github.com/TheCocoaProject/cordova-plugin-nativestorage'

View File

@ -43,7 +43,7 @@ declare var navigator: any;
* The `connection` property will return one of the following connection types: `unknown`, `ethernet`, `wifi`, `2g`, `3g`, `4g`, `cellular`, `none`
*/
@Plugin({
name: 'Network',
pluginName: 'Network',
plugin: 'cordova-plugin-network-information',
repo: 'https://github.com/apache/cordova-plugin-network-information',
platforms: ['Amazon Fire OS', 'iOS', 'Android', 'BlackBerry 10', 'Windows Phone 7', 'Windows Phone 8', 'Windows', 'Firefox OS', 'Browser'],

View File

@ -24,7 +24,7 @@ declare let window: any;
* ```
*/
@Plugin({
name: 'NFC',
pluginName: 'NFC',
plugin: 'phonegap-nfc',
pluginRef: 'nfc',
repo: 'https://github.com/chariotsolutions/phonegap-nfc'

View File

@ -30,7 +30,7 @@ import { Observable } from 'rxjs/Observable';
*
*/
@Plugin({
name: 'OneSignal',
pluginName: 'OneSignal',
plugin: 'onesignal-cordova-plugin',
pluginRef: 'plugins.OneSignal',
repo: 'https://github.com/OneSignal/OneSignal-Cordova-SDK'

View File

@ -58,7 +58,7 @@ import { Plugin, Cordova } from './plugin';
* PayPalShippingAddress
*/
@Plugin({
name: 'PayPal',
pluginName: 'PayPal',
plugin: 'com.paypal.cordova.mobilesdk',
pluginRef: 'PayPalMobile',
repo: 'https://github.com/paypal/PayPal-Cordova-Plugin'

View File

@ -12,7 +12,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'PhotoViewer',
pluginName: 'PhotoViewer',
plugin: 'com-sarriaroman-photoviewer',
pluginRef: 'PhotoViewer',
repo: 'https://github.com/sarriaroman/photoviewer'

View File

@ -20,7 +20,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'PinDialog',
pluginName: 'PinDialog',
plugin: 'cordova-plugin-pin-dialog',
pluginRef: 'plugins.pinDialog',
repo: 'https://github.com/Paldom/PinDialog'

View File

@ -19,7 +19,7 @@ export const getPlugin = function(pluginRef: string): any {
* @param method
*/
export const pluginWarn = function(pluginObj: any, method?: string) {
let pluginName = pluginObj.name, plugin = pluginObj.plugin;
let pluginName = pluginObj.pluginName, plugin = pluginObj.plugin;
if (method) {
console.warn('Native: tried calling ' + pluginName + '.' + method + ', but the ' + pluginName + ' plugin is not installed.');
} else {
@ -111,7 +111,7 @@ function callCordovaPlugin(pluginObj: any, methodName: string, args: any[], opts
if (!pluginInstance) {
// Do this check in here in the case that the Web API for this plugin is available (for example, Geolocation).
if (!window.cordova) {
cordovaWarn(pluginObj.name, methodName);
cordovaWarn(pluginObj.pluginName, methodName);
return {
error: 'cordova_not_available'
};
@ -196,7 +196,7 @@ function wrapObservable(pluginObj: any, methodName: string, args: any[], opts: a
return get(window, pluginObj.pluginRef)[opts.clearFunction].call(pluginObj, pluginResult);
}
} catch (e) {
console.warn('Unable to clear the previous observable watch for', pluginObj.name, methodName);
console.warn('Unable to clear the previous observable watch for', pluginObj.pluginName, methodName);
console.error(e);
}
};
@ -223,7 +223,7 @@ function wrapInstance(pluginObj: any, methodName: string, opts: any = {}) {
}
return pluginObj._objectInstance[opts.clearFunction].call(pluginObj, pluginResult);
} catch (e) {
console.warn('Unable to clear the previous observable watch for', pluginObj.name, methodName);
console.warn('Unable to clear the previous observable watch for', pluginObj.pluginName, methodName);
console.error(e);
}
};
@ -268,7 +268,7 @@ function overrideFunction(pluginObj: any, methodName: string, args: any[], opts:
if (!pluginInstance) {
// Do this check in here in the case that the Web API for this plugin is available (for example, Geolocation).
if (!window.cordova) {
cordovaWarn(pluginObj.name, methodName);
cordovaWarn(pluginObj.pluginName, methodName);
observer.error({
error: 'cordova_not_available'
});
@ -326,7 +326,7 @@ export const wrap = function(pluginObj: any, methodName: string, opts: any = {})
* @usage
* ```typescript
* @Plugin({
* name: 'MyPlugin',
* pluginName: 'MyPlugin',
* plugin: 'cordova-plugin-myplugin',
* pluginRef: 'window.myplugin'
* })

View File

@ -16,7 +16,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'PowerManagement',
pluginName: 'PowerManagement',
plugin: 'cordova-plugin-powermanagement-orig',
pluginRef: 'powerManagement',
repo: 'https://github.com/Viras-/cordova-plugin-powermanagement'

View File

@ -61,7 +61,7 @@ export interface PrintOptions {
* ```
*/
@Plugin({
name: 'Printer',
pluginName: 'Printer',
plugin: 'de.appplant.cordova.plugin.printer',
pluginRef: 'cordova.plugins.printer',
repo: 'https://github.com/katzer/cordova-plugin-printer.git',

View File

@ -286,7 +286,7 @@ declare var PushNotification: {
* ```
*/
@Plugin({
name: 'Push',
pluginName: 'Push',
plugin: 'phonegap-plugin-push',
pluginRef: 'PushNotification',
repo: 'https://github.com/phonegap/phonegap-plugin-push'

View File

@ -39,7 +39,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'SafariViewController',
pluginName: 'SafariViewController',
plugin: 'cordova-plugin-safariviewcontroller',
pluginRef: 'SafariViewController',
platforms: ['iOS', 'Android'],

View File

@ -37,7 +37,7 @@ declare var window;
*
*/
@Plugin({
name: 'ScreenOrientation',
pluginName: 'ScreenOrientation',
plugin: 'cordova-plugin-screen-orientation',
pluginRef: 'window.screen',
repo: 'https://github.com/apache/cordova-plugin-screen-orientation',

View File

@ -17,7 +17,7 @@ declare var navigator: any;
* ```
*/
@Plugin({
name: 'Screenshot',
pluginName: 'Screenshot',
plugin: 'https://github.com/gitawego/cordova-screenshot.git',
pluginRef: 'navigator.screenshot',
repo: 'https://github.com/gitawego/cordova-screenshot.git'

View File

@ -40,7 +40,7 @@ declare var cordova: any;
* ```
*/
@Plugin({
name: 'SecureStorage',
pluginName: 'SecureStorage',
plugin: 'cordova-plugin-secure-storage',
pluginRef: 'plugins.securestorage',
repo: 'https://github.com/Crypho/cordova-plugin-secure-storage',

View File

@ -15,7 +15,7 @@ import { Observable } from 'rxjs/Observable';
* ```
*/
@Plugin({
name: 'Shake',
pluginName: 'Shake',
plugin: 'cordova-plugin-shake',
pluginRef: 'shake',
repo: 'https://github.com/leecrossley/cordova-plugin-shake'

View File

@ -20,7 +20,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'Sim',
pluginName: 'Sim',
plugin: 'cordova-plugin-sim',
pluginRef: 'plugins.sim',
repo: 'https://github.com/pbakondy/cordova-plugin-sim',

View File

@ -40,7 +40,7 @@ export interface SmsOptionsAndroid {
* ```
*/
@Plugin({
name: 'SMS',
pluginName: 'SMS',
plugin: 'cordova-sms-plugin',
pluginRef: 'sms',
repo: 'https://github.com/cordova-sms/cordova-sms-plugin',

View File

@ -25,7 +25,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'SocialSharing',
pluginName: 'SocialSharing',
plugin: 'cordova-plugin-x-socialsharing',
pluginRef: 'plugins.socialsharing',
repo: 'https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin',

View File

@ -15,7 +15,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'SpinnerDialog',
pluginName: 'SpinnerDialog',
plugin: 'cordova-plugin-spinner-dialog',
pluginRef: 'window.plugins.spinnerDialog',
repo: 'https://github.com/Paldom/SpinnerDialog',

View File

@ -15,7 +15,7 @@ import { Cordova, Plugin } from './plugin';
* ```
*/
@Plugin({
name: 'Splashscreen',
pluginName: 'Splashscreen',
plugin: 'cordova-plugin-splashscreen',
pluginRef: 'navigator.splashscreen',
repo: 'https://github.com/apache/cordova-plugin-splashscreen'

View File

@ -31,7 +31,7 @@ declare var sqlitePlugin;
*
*/
@Plugin({
name: 'SQLite',
pluginName: 'SQLite',
pluginRef: 'sqlitePlugin',
plugin: 'cordova-sqlite-storage',
repo: 'https://github.com/litehelpers/Cordova-sqlite-storage'
@ -83,7 +83,7 @@ export class SQLite {
});
} else {
pluginWarn({
name: 'SQLite',
pluginName: 'SQLite',
plugin: 'cordova-sqlite-storage'
});
}

View File

@ -22,7 +22,7 @@ declare var window;
*
*/
@Plugin({
name: 'StatusBar',
pluginName: 'StatusBar',
plugin: 'cordova-plugin-statusbar',
pluginRef: 'StatusBar',
repo: 'https://github.com/apache/cordova-plugin-statusbar',

View File

@ -20,7 +20,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'Stepcounter',
pluginName: 'Stepcounter',
plugin: 'https://github.com/texh/cordova-plugin-stepcounter',
pluginRef: 'stepcounter',
repo: 'https://github.com/texh/cordova-plugin-stepcounter',

View File

@ -19,7 +19,7 @@ import { Plugin, Cordova } from './plugin';
* ```
*/
@Plugin({
name: 'StreamingMedia',
pluginName: 'StreamingMedia',
plugin: 'cordova-plugin-streaming-media',
pluginRef: 'plugins.streamingMedia',
repo: 'https://github.com/nchutchind/cordova-plugin-streaming-media',

View File

@ -25,7 +25,7 @@ export interface TTSOptions {
* ```
*/
@Plugin({
name: 'TextToSpeech',
pluginName: 'TextToSpeech',
plugin: 'cordova-plugin-tts',
pluginRef: 'TTS',
repo: 'https://github.com/vilic/cordova-plugin-tts'

View File

@ -144,7 +144,7 @@ export interface ThemeableBrowserOptions {
* We suggest that you refer to the plugin's repository for additional information on usage that may not be covered here.
*/
@Plugin({
name: 'ThemeableBrowser',
pluginName: 'ThemeableBrowser',
plugin: 'cordova-plugin-themeablebrowser',
pluginRef: 'cordova.ThemeableBrowser',
repo: 'https://github.com/initialxy/cordova-plugin-themeablebrowser'

View File

@ -57,7 +57,7 @@ export interface ToastOptions {
* ToastOptions
*/
@Plugin({
name: 'Toast',
pluginName: 'Toast',
plugin: 'cordova-plugin-x-toast',
pluginRef: 'plugins.toast',
repo: 'https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin',

Some files were not shown because too many files have changed in this diff Show More