Skip to content

Commit

Permalink
fix(plugin): don't bind to name field. Fixes #740
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Oct 27, 2016
1 parent 0669ba5 commit 71916a8
Show file tree
Hide file tree
Showing 109 changed files with 119 additions and 119 deletions.
2 changes: 1 addition & 1 deletion src/plugins/3dtouch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/actionsheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/admob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/android-fingerprint-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/appavailability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/apprate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/appversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/background-geolocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/backgroundmode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/badge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/barcodescanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/base64togallery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/batterystatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/ble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/bluetoothserial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/brightness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/call-number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/camera-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/card-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/code-push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/contacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/crop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/dbmeter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/deeplinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/device-feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/deviceaccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/devicemotion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/deviceorientation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/diagnostic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/dialogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/emailcomposer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/estimote-beacons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/facebook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/file-chooser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/file-opener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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' });
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/filepath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/filetransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Loading

0 comments on commit 71916a8

Please sign in to comment.