diff --git a/DEVELOPER.md b/DEVELOPER.md index b22aa9ab..9aede5f9 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -9,7 +9,6 @@ Let's take a look at the existing plugin wrapper for Geolocation to see what goe ``` @Plugin({ - name: 'Geolocation', plugin: 'cordova-plugin-geolocation', pluginRef: 'navigator.geolocation' }) @@ -49,7 +48,6 @@ For example, the `@Plugin` decorator adds information about the plugin to our Ge ``` @Plugin({ - name: 'Geolocation', plugin: 'cordova-plugin-geolocation', pluginRef: 'navigator.geolocation' }) @@ -58,9 +56,7 @@ export class Geolocation { } ``` -Here, `name` refers to the name of the plugin, which is used by Ionic Native for logging messages. - -`plugin` is the name of the plugin package on npm and used when calling `cordova plugin add`, also used for logging purposes. +Here, `plugin` is the name of the plugin package on npm and used when calling `cordova plugin add`. `pluginRef` refers to the where on `window` the underlying Cordova plugin is normally exposed. For example, in the case of the Cordova Geolocation plugin, normally you would make calls like `window.navigator.geolocation.getCurrentPosition({}, success, error)`, so the `pluginRef` in this case is `navigator.geolocation`. diff --git a/src/plugins/actionsheet.ts b/src/plugins/actionsheet.ts index 6a367660..67a6f755 100644 --- a/src/plugins/actionsheet.ts +++ b/src/plugins/actionsheet.ts @@ -25,7 +25,6 @@ import {Plugin, Cordova} from './plugin'; * */ @Plugin({ - name: 'ActionSheet', plugin: 'cordova-plugin-actionsheet', pluginRef: 'plugins.actionsheet', repo: 'https://github.com/EddyVerbruggen/cordova-plugin-actionsheet' @@ -46,7 +45,7 @@ export class ActionSheet { * | addDestructiveButtonWithLabel |`string` | Add a destructive button with text | * | position |`number[]` | On an iPad, set the X,Y position | * - * @param {options} Options See table above + * @param {options} Options See table above * @returns {Promise} Returns a Promise that resolves with the index of the * button pressed (1 based, so 1, 2, 3, etc.) */ diff --git a/src/plugins/apprate.ts b/src/plugins/apprate.ts index be2b8048..63d269ed 100644 --- a/src/plugins/apprate.ts +++ b/src/plugins/apprate.ts @@ -21,7 +21,6 @@ declare var window; * ``` */ @Plugin({ - name: 'AppRate', plugin: 'cordova-plugin-apprate', pluginRef: 'AppRate' }) diff --git a/src/plugins/appversion.ts b/src/plugins/appversion.ts index 816c6461..d74005e2 100644 --- a/src/plugins/appversion.ts +++ b/src/plugins/appversion.ts @@ -18,7 +18,6 @@ import {Plugin, Cordova} from './plugin'; * ``` */ @Plugin({ - name: 'AppVersion', plugin: 'cordova-plugin-appversion', pluginRef: 'cordova.getAppVersion' }) diff --git a/src/plugins/badge.ts b/src/plugins/badge.ts index 592ae79d..6bafae52 100644 --- a/src/plugins/badge.ts +++ b/src/plugins/badge.ts @@ -17,7 +17,6 @@ import {Plugin, Cordova} from './plugin'; * ``` */ @Plugin({ - name: 'Badge', plugin: 'cordova-plugin-badge', pluginRef: 'cordova.plugins.notification.badge' }) diff --git a/src/plugins/barcodescanner.ts b/src/plugins/barcodescanner.ts index 33cce31e..ae0eb481 100644 --- a/src/plugins/barcodescanner.ts +++ b/src/plugins/barcodescanner.ts @@ -17,7 +17,6 @@ import {Plugin, Cordova} from './plugin'; * ``` */ @Plugin({ - name: 'BarcodeScanner', plugin: 'phonegap-plugin-barcodescanner', pluginRef: 'cordova.plugins.barcodeScanner', repo: 'https://github.com/phonegap/phonegap-plugin-barcodescanner' diff --git a/src/plugins/ble.ts b/src/plugins/ble.ts index f121bca1..f4db8b11 100644 --- a/src/plugins/ble.ts +++ b/src/plugins/ble.ts @@ -160,7 +160,6 @@ import {Observable} from 'rxjs/Observable'; * */ @Plugin({ - name: 'BLE', plugin: 'cordova-plugin-ble-central', pluginRef: 'ble', repo: 'https://github.com/don/cordova-plugin-ble-central' diff --git a/src/plugins/calendar.ts b/src/plugins/calendar.ts index 0ff05dce..f9a1377c 100644 --- a/src/plugins/calendar.ts +++ b/src/plugins/calendar.ts @@ -25,7 +25,6 @@ export interface Calendar { * */ @Plugin({ - name: 'Calendar', plugin: 'cordova-plugin-calendar', pluginRef: 'plugins.calendar', repo: 'https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin' diff --git a/src/plugins/camera.ts b/src/plugins/camera.ts index 52a2e366..10105989 100644 --- a/src/plugins/camera.ts +++ b/src/plugins/camera.ts @@ -102,7 +102,6 @@ export interface CameraPopoverOptions { * ``` */ @Plugin({ - name: 'Camera', plugin: 'cordova-plugin-camera', pluginRef: 'navigator.camera', repo: 'https://github.com/apache/cordova-plugin-camera' diff --git a/src/plugins/clipboard.ts b/src/plugins/clipboard.ts index fdbd768c..0e24ea00 100644 --- a/src/plugins/clipboard.ts +++ b/src/plugins/clipboard.ts @@ -25,7 +25,6 @@ import {Plugin, Cordova} from './plugin'; * ``` */ @Plugin({ - name: 'Clipboard', plugin: 'com.verso.cordova.clipboard', pluginRef: 'cordova.plugins.clipboard' }) diff --git a/src/plugins/contacts.ts b/src/plugins/contacts.ts index 8a2fbc7b..3fdaf731 100644 --- a/src/plugins/contacts.ts +++ b/src/plugins/contacts.ts @@ -207,7 +207,6 @@ declare var Contact: { * */ @Plugin({ - name: 'Contacts', plugin: 'cordova-plugin-contacts', pluginRef: 'navigator.contacts', repo: 'https://github.com/apache/cordova-plugin-contacts' diff --git a/src/plugins/datepicker.ts b/src/plugins/datepicker.ts index 4c55dd8c..4b16b1f3 100644 --- a/src/plugins/datepicker.ts +++ b/src/plugins/datepicker.ts @@ -19,7 +19,6 @@ import {Plugin, Cordova} from './plugin'; * */ @Plugin({ - name: 'DatePicker', plugin: 'cordova-plugin-datepicker', pluginRef: 'plugins.datePicker' }) diff --git a/src/plugins/facebook.ts b/src/plugins/facebook.ts index 4d0d98ee..40f096ca 100644 --- a/src/plugins/facebook.ts +++ b/src/plugins/facebook.ts @@ -70,7 +70,6 @@ import {Plugin, Cordova} from './plugin'; * */ @Plugin({ - name: 'Facebook', plugin: 'cordova-plugin-facebook4', pluginRef: 'facebookConnectPlugin', repo: 'https://github.com/jeduan/cordova-plugin-facebook4' diff --git a/src/plugins/geolocation.ts b/src/plugins/geolocation.ts index f4c23548..6e5ebc99 100644 --- a/src/plugins/geolocation.ts +++ b/src/plugins/geolocation.ts @@ -115,7 +115,6 @@ export interface GeolocationOptions { * ``` */ @Plugin({ - name: 'Geolocation', plugin: 'cordova-plugin-geolocation', pluginRef: 'navigator.geolocation' }) diff --git a/src/plugins/push.ts b/src/plugins/push.ts index a16da648..b55caa0c 100644 --- a/src/plugins/push.ts +++ b/src/plugins/push.ts @@ -256,7 +256,6 @@ declare var PushNotification: { * For TypeScript users, see the [Push plugin docs about using TypeScript for custom notifications](https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/TYPESCRIPT.md). */ @Plugin({ - name: 'Push', plugin: 'phonegap-plugin-push', pluginRef: 'PushNotification', repo: 'https://github.com/phonegap/phonegap-plugin-push' diff --git a/src/plugins/statusbar.ts b/src/plugins/statusbar.ts index f1814e3e..36ac19f2 100644 --- a/src/plugins/statusbar.ts +++ b/src/plugins/statusbar.ts @@ -9,7 +9,6 @@ declare var window; * Requires Cordova plugin: `cordova-plugin-statusbar`. For more info, please see the [StatusBar plugin docs](https://github.com/apache/cordova-plugin-statusbar). */ @Plugin({ - name: 'StatusBar', plugin: 'cordova-plugin-statusbar', pluginRef: 'StatusBar', repo: 'https://github.com/apache/cordova-plugin-statusbar' diff --git a/src/plugins/toast.ts b/src/plugins/toast.ts index cc35d514..92a8b8ad 100644 --- a/src/plugins/toast.ts +++ b/src/plugins/toast.ts @@ -13,7 +13,6 @@ export interface ToastOptions { * Requires Cordova plugin: `cordova-plugin-x-toast`. For more info, please see the [Toast plugin docs](https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin). */ @Plugin({ - name: 'Toast', plugin: 'cordova-plugin-x-toast', pluginRef: 'plugins.toast', repo: 'https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin' diff --git a/src/plugins/touchid.ts b/src/plugins/touchid.ts index 64098d8f..bd50118e 100644 --- a/src/plugins/touchid.ts +++ b/src/plugins/touchid.ts @@ -22,7 +22,6 @@ import {Plugin, Cordova} from './plugin'; * */ @Plugin({ - name: 'TouchID', plugin: 'cordova-plugin-touch-id', pluginRef: 'plugins.touchid', repo: 'https://github.com/EddyVerbruggen/cordova-plugin-touch-id'