diff --git a/src/@ionic-native/core/index.ts b/src/@ionic-native/core/index.ts index 483a69500..e6e1ab852 100644 --- a/src/@ionic-native/core/index.ts +++ b/src/@ionic-native/core/index.ts @@ -1,3 +1,4 @@ export * from './plugin'; export * from './decorators'; export * from './util'; +export * from './ionic-native-plugin'; diff --git a/src/@ionic-native/core/ionic-native-plugin.ts b/src/@ionic-native/core/ionic-native-plugin.ts new file mode 100644 index 000000000..2fdedc5a9 --- /dev/null +++ b/src/@ionic-native/core/ionic-native-plugin.ts @@ -0,0 +1,41 @@ +export class IonicNativePlugin { + + static pluginName: string; + + static pluginRef: string; + + static plugin: string; + + static repo: string; + + static platforms: string[]; + + static install: string; + + /** + * Returns a boolean that indicates whether the plugin is installed + * @return {boolean} + */ + static installed(): boolean { return false; } + + /** + * Returns the original plugin object + */ + static getPlugin(): any {} + + /** + * Returns the plugin's name + */ + static getPluginName(): string { return; } + + /** + * Returns the plugin's reference + */ + static getPluginRef(): string { return; } + + /** + * Returns the plugin's install name + */ + static getPluginInstallName(): string { return; } + +} diff --git a/src/@ionic-native/plugins/action-sheet/index.ts b/src/@ionic-native/plugins/action-sheet/index.ts index 748f69692..30b699fa7 100644 --- a/src/@ionic-native/plugins/action-sheet/index.ts +++ b/src/@ionic-native/plugins/action-sheet/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, CordovaProperty } from '@ionic-native/core'; +import { Cordova, Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; export interface ActionSheetOptions { @@ -97,7 +97,7 @@ export interface ActionSheetOptions { platforms: ['Android', 'iOS', 'Windows Phone 8', 'Browser'] }) @Injectable() -export class ActionSheet { +export class ActionSheet extends IonicNativePlugin { @CordovaProperty ANDROID_THEMES: { diff --git a/src/@ionic-native/plugins/admob-free/index.ts b/src/@ionic-native/plugins/admob-free/index.ts index 40fc40972..f70dc65f1 100644 --- a/src/@ionic-native/plugins/admob-free/index.ts +++ b/src/@ionic-native/plugins/admob-free/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/fromEvent'; @@ -105,7 +105,7 @@ export interface AdMobFreeRewardVideoConfig { platforms: ['Android', 'iOS'] }) @Injectable() -export class AdMobFree { +export class AdMobFree extends IonicNativePlugin { /** * Convenience constructor to get event names @@ -171,8 +171,6 @@ export class AdMobFree { }) export class AdMobFreeBanner { - - /** * Update config. * @param options diff --git a/src/@ionic-native/plugins/admob/index.ts b/src/@ionic-native/plugins/admob/index.ts index 5691113a6..428e199ba 100644 --- a/src/@ionic-native/plugins/admob/index.ts +++ b/src/@ionic-native/plugins/admob/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export type AdSize = 'SMART_BANNER' | 'BANNER' | 'MEDIUM_RECTANGLE' | 'FULL_BANNER' | 'LEADERBOARD' | 'SKYSCRAPER' | 'CUSTOM'; @@ -123,7 +123,7 @@ export interface AdExtras { platforms: ['Android', 'iOS', 'Windows Phone 8'] }) @Injectable() -export class AdMob { +export class AdMob extends IonicNativePlugin { AD_POSITION: { NO_CHANGE: number; diff --git a/src/@ionic-native/plugins/alipay/index.ts b/src/@ionic-native/plugins/alipay/index.ts index 74fd39d21..f2eb5ffe4 100644 --- a/src/@ionic-native/plugins/alipay/index.ts +++ b/src/@ionic-native/plugins/alipay/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; export interface AlipayOrder { @@ -103,7 +103,7 @@ export interface AlipayOrder { install: 'ionic plugin add https://github.com/xueron/cordova-alipay-base --variable APP_ID=your_app_id' }) @Injectable() -export class Alipay { +export class Alipay extends IonicNativePlugin { /** * Open Alipay to perform App pay * @param order { AlipayOrder } alipay options diff --git a/src/@ionic-native/plugins/android-fingerprint-auth/index.ts b/src/@ionic-native/plugins/android-fingerprint-auth/index.ts index 1622f5d4e..b48b19ae0 100644 --- a/src/@ionic-native/plugins/android-fingerprint-auth/index.ts +++ b/src/@ionic-native/plugins/android-fingerprint-auth/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface AFAAuthOptions { @@ -148,7 +148,7 @@ export interface AFAEncryptResponse { platforms: ['Android'] }) @Injectable() -export class AndroidFingerprintAuth { +export class AndroidFingerprintAuth extends IonicNativePlugin { /** * Opens a native dialog fragment to use the device hardware fingerprint scanner to authenticate against fingerprints registered for the device. diff --git a/src/@ionic-native/plugins/android-full-screen/index.ts b/src/@ionic-native/plugins/android-full-screen/index.ts index 00b03914c..9b442815c 100644 --- a/src/@ionic-native/plugins/android-full-screen/index.ts +++ b/src/@ionic-native/plugins/android-full-screen/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Android Full Screen @@ -29,7 +29,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android'] }) @Injectable() -export class AndroidFullScreen { +export class AndroidFullScreen extends IonicNativePlugin { /** * Is this plugin supported? * @return {Promise} diff --git a/src/@ionic-native/plugins/app-availability/index.ts b/src/@ionic-native/plugins/app-availability/index.ts index f31230a04..3011921b0 100644 --- a/src/@ionic-native/plugins/app-availability/index.ts +++ b/src/@ionic-native/plugins/app-availability/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name App Availability @@ -40,7 +40,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class AppAvailability { +export class AppAvailability extends IonicNativePlugin { /** * Checks if an app is available on device diff --git a/src/@ionic-native/plugins/app-preferences/index.ts b/src/@ionic-native/plugins/app-preferences/index.ts index 229bf656f..95019a69e 100644 --- a/src/@ionic-native/plugins/app-preferences/index.ts +++ b/src/@ionic-native/plugins/app-preferences/index.ts @@ -1,4 +1,4 @@ -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import { Injectable } from '@angular/core'; @@ -27,7 +27,7 @@ import { Injectable } from '@angular/core'; platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'OS X', 'Windows 8', 'Windows Phone'] }) @Injectable() -export class AppPreferences { +export class AppPreferences extends IonicNativePlugin { /** * Get a preference value diff --git a/src/@ionic-native/plugins/app-rate/index.ts b/src/@ionic-native/plugins/app-rate/index.ts index cb1b57c70..992b37888 100644 --- a/src/@ionic-native/plugins/app-rate/index.ts +++ b/src/@ionic-native/plugins/app-rate/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, Plugin } from '@ionic-native/core'; +import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; declare var window; @@ -134,7 +134,7 @@ export interface AppUrls { platforms: ['Android', 'iOS', 'Windows (experimental)'] }) @Injectable() -export class AppRate { +export class AppRate extends IonicNativePlugin { /** * Configure various settings for the Rating View. diff --git a/src/@ionic-native/plugins/app-update/index.ts b/src/@ionic-native/plugins/app-update/index.ts index 05e4080f8..4ef0c92fa 100644 --- a/src/@ionic-native/plugins/app-update/index.ts +++ b/src/@ionic-native/plugins/app-update/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; /** @@ -42,7 +42,7 @@ import { Injectable } from '@angular/core'; platforms: ['Android'] }) @Injectable() -export class AppUpdate { +export class AppUpdate extends IonicNativePlugin { /** * Check and update * @param updateUrl {string} update api url diff --git a/src/@ionic-native/plugins/app-version/index.ts b/src/@ionic-native/plugins/app-version/index.ts index 2c09da5f2..9e953f458 100644 --- a/src/@ionic-native/plugins/app-version/index.ts +++ b/src/@ionic-native/plugins/app-version/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; @@ -34,7 +34,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class AppVersion { +export class AppVersion extends IonicNativePlugin { /** * Returns the name of the app diff --git a/src/@ionic-native/plugins/appodeal/index.ts b/src/@ionic-native/plugins/appodeal/index.ts index 5f4e634c9..f6ac8046b 100644 --- a/src/@ionic-native/plugins/appodeal/index.ts +++ b/src/@ionic-native/plugins/appodeal/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; import { Injectable } from '@angular/core'; @@ -31,7 +31,7 @@ import { Injectable } from '@angular/core'; platforms: [ 'iOS', 'Android' ] }) @Injectable() -export class Appodeal { +export class Appodeal extends IonicNativePlugin { // available types of advertisements readonly AD_TYPES = { INTERSTITIAL: 1, diff --git a/src/@ionic-native/plugins/background-fetch/index.ts b/src/@ionic-native/plugins/background-fetch/index.ts index 02f1a5278..2812ab1dd 100644 --- a/src/@ionic-native/plugins/background-fetch/index.ts +++ b/src/@ionic-native/plugins/background-fetch/index.ts @@ -1,4 +1,4 @@ -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; declare var window; @@ -63,7 +63,7 @@ export interface BackgroundFetchConfig { platforms: ['iOS'] }) @Injectable() -export class BackgroundFetch { +export class BackgroundFetch extends IonicNativePlugin { /** diff --git a/src/@ionic-native/plugins/background-geolocation/index.ts b/src/@ionic-native/plugins/background-geolocation/index.ts index 4e9b28012..b48b9c806 100644 --- a/src/@ionic-native/plugins/background-geolocation/index.ts +++ b/src/@ionic-native/plugins/background-geolocation/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var window; @@ -311,7 +311,7 @@ export interface BackgroundGeolocationConfig { platforms: ['iOS', 'Android', 'Windows Phone 8'] }) @Injectable() -export class BackgroundGeolocation { +export class BackgroundGeolocation extends IonicNativePlugin { /**
 * Set location service provider @see https://github.com/mauron85/cordova-plugin-background-geolocation/wiki/Android-providers
 diff --git a/src/@ionic-native/plugins/background-mode/index.ts b/src/@ionic-native/plugins/background-mode/index.ts index 31f15c867..37c90164b 100644 --- a/src/@ionic-native/plugins/background-mode/index.ts +++ b/src/@ionic-native/plugins/background-mode/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; @@ -73,7 +73,7 @@ export interface BackgroundModeConfiguration { platforms: ['Android', 'iOS', 'Windows Phone 8'] }) @Injectable() -export class BackgroundMode { +export class BackgroundMode extends IonicNativePlugin { /** * Enable the background mode. diff --git a/src/@ionic-native/plugins/backlight/index.ts b/src/@ionic-native/plugins/backlight/index.ts index 31f3ccd30..a9dd268fc 100644 --- a/src/@ionic-native/plugins/backlight/index.ts +++ b/src/@ionic-native/plugins/backlight/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** @@ -32,7 +32,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android'] }) @Injectable() -export class Backlight { +export class Backlight extends IonicNativePlugin { /** * This function turns backlight on diff --git a/src/@ionic-native/plugins/badge/index.ts b/src/@ionic-native/plugins/badge/index.ts index 225046978..46daacb0e 100644 --- a/src/@ionic-native/plugins/badge/index.ts +++ b/src/@ionic-native/plugins/badge/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** @@ -30,7 +30,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android', 'iOS', 'Browser', 'Windows', 'Amazon FireOS', 'Windows Phone 8'] }) @Injectable() -export class Badge { +export class Badge extends IonicNativePlugin { /** * Clear the badge of the app icon. diff --git a/src/@ionic-native/plugins/barcode-scanner/index.ts b/src/@ionic-native/plugins/barcode-scanner/index.ts index 13ba7908c..1d4eb4b94 100644 --- a/src/@ionic-native/plugins/barcode-scanner/index.ts +++ b/src/@ionic-native/plugins/barcode-scanner/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface BarcodeScannerOptions { @@ -89,7 +89,7 @@ export interface BarcodeScannerOptions { platforms: ['Android', 'iOS', 'Windows Phone 8', 'Windows 10', 'Windows 8', 'BlackBerry 10', 'Browser'] }) @Injectable() -export class BarcodeScanner { +export class BarcodeScanner extends IonicNativePlugin { Encode: { TEXT_TYPE: string; diff --git a/src/@ionic-native/plugins/base64-to-gallery/index.ts b/src/@ionic-native/plugins/base64-to-gallery/index.ts index 1ade32732..7c0b51fa1 100644 --- a/src/@ionic-native/plugins/base64-to-gallery/index.ts +++ b/src/@ionic-native/plugins/base64-to-gallery/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Base64 To Gallery @@ -28,7 +28,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android', 'iOS', 'Windows Phone 8'] }) @Injectable() -export class Base64ToGallery { +export class Base64ToGallery extends IonicNativePlugin { /** * Converts a base64 string to an image file in the device gallery diff --git a/src/@ionic-native/plugins/battery-status/index.ts b/src/@ionic-native/plugins/battery-status/index.ts index b80223e32..924afeb96 100644 --- a/src/@ionic-native/plugins/battery-status/index.ts +++ b/src/@ionic-native/plugins/battery-status/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface BatteryStatusResponse { @@ -52,7 +52,7 @@ export interface BatteryStatusResponse { platforms: ['Amazon Fire OS', 'iOS', 'Android', 'BlackBerry 10', 'Windows Phone 7', 'Windows Phone 8', 'Windows', 'Firefox OS', 'Browser'] }) @Injectable() -export class BatteryStatus { +export class BatteryStatus extends IonicNativePlugin { /** * Watch the change in battery level diff --git a/src/@ionic-native/plugins/ble/index.ts b/src/@ionic-native/plugins/ble/index.ts index 3a9d45db6..409947c5e 100644 --- a/src/@ionic-native/plugins/ble/index.ts +++ b/src/@ionic-native/plugins/ble/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -176,7 +176,7 @@ import { Observable } from 'rxjs/Observable'; platforms: ['iOS', 'Android'] }) @Injectable() -export class BLE { +export class BLE extends IonicNativePlugin { /** * Scan and discover BLE peripherals for the specified amount of time. diff --git a/src/@ionic-native/plugins/bluetooth-serial/index.ts b/src/@ionic-native/plugins/bluetooth-serial/index.ts index e83385306..2ecc59983 100644 --- a/src/@ionic-native/plugins/bluetooth-serial/index.ts +++ b/src/@ionic-native/plugins/bluetooth-serial/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -38,7 +38,7 @@ import { Observable } from 'rxjs/Observable'; platforms: ['Android', 'iOS', 'Windows Phone', 'Browser'] }) @Injectable() -export class BluetoothSerial { +export class BluetoothSerial extends IonicNativePlugin { /** * Connect to a Bluetooth device diff --git a/src/@ionic-native/plugins/brightness/index.ts b/src/@ionic-native/plugins/brightness/index.ts index 29c5eb658..e7a2b4b37 100644 --- a/src/@ionic-native/plugins/brightness/index.ts +++ b/src/@ionic-native/plugins/brightness/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Brightness @@ -29,7 +29,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class Brightness { +export class Brightness extends IonicNativePlugin { /** * Sets the brightness of the display. diff --git a/src/@ionic-native/plugins/broadcaster/index.ts b/src/@ionic-native/plugins/broadcaster/index.ts index 4c7424422..b7fe65520 100644 --- a/src/@ionic-native/plugins/broadcaster/index.ts +++ b/src/@ionic-native/plugins/broadcaster/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -31,7 +31,7 @@ import { Observable } from 'rxjs/Observable'; platforms: ['Android', 'iOS'] }) @Injectable() -export class Broadcaster { +export class Broadcaster extends IonicNativePlugin { /** * This function listen to an event sent from the native code diff --git a/src/@ionic-native/plugins/browser-tab/index.ts b/src/@ionic-native/plugins/browser-tab/index.ts index 06a002c60..03e8dd763 100644 --- a/src/@ionic-native/plugins/browser-tab/index.ts +++ b/src/@ionic-native/plugins/browser-tab/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; /** @@ -40,7 +40,7 @@ import { Injectable } from '@angular/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class BrowserTab { +export class BrowserTab extends IonicNativePlugin { /** * Check if BrowserTab option is available diff --git a/src/@ionic-native/plugins/calendar/index.ts b/src/@ionic-native/plugins/calendar/index.ts index 79fbb40b7..8094b267f 100644 --- a/src/@ionic-native/plugins/calendar/index.ts +++ b/src/@ionic-native/plugins/calendar/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface CalendarOptions { @@ -60,7 +60,7 @@ export interface CalendarOptions { * * @usage * ``` - * import {Calendar} from '@ionic-native/calendar'; + * import { Calendar } from '@ionic-native/calendar'; * * constructor(private calendar: Calendar) { } * @@ -81,7 +81,7 @@ export interface CalendarOptions { platforms: ['Android', 'iOS'] }) @Injectable() -export class Calendar { +export class Calendar extends IonicNativePlugin { /** * This function checks if we have permission to read/write from/to the calendar. diff --git a/src/@ionic-native/plugins/call-number/index.ts b/src/@ionic-native/plugins/call-number/index.ts index ff649600d..4d4d06e29 100644 --- a/src/@ionic-native/plugins/call-number/index.ts +++ b/src/@ionic-native/plugins/call-number/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Call Number * @description @@ -7,7 +7,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; * * @usage * ``` - * import {CallNumber} from '@ionic-native/call-number'; + * import { CallNumber } from '@ionic-native/call-number'; * * constructor(private callNumber: CallNumber) { } * @@ -28,7 +28,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['iOS', 'Android'] }) @Injectable() -export class CallNumber { +export class CallNumber extends IonicNativePlugin { /** * Calls a phone number diff --git a/src/@ionic-native/plugins/camera-preview/index.ts b/src/@ionic-native/plugins/camera-preview/index.ts index 6b4dcade0..b8f29a8bb 100644 --- a/src/@ionic-native/plugins/camera-preview/index.ts +++ b/src/@ionic-native/plugins/camera-preview/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface CameraPreviewDimensions { /** The width of the camera preview, default to window.screen.width */ @@ -132,7 +132,7 @@ export interface CameraPreviewPictureOptions { platforms: ['Android', 'iOS'] }) @Injectable() -export class CameraPreview { +export class CameraPreview extends IonicNativePlugin { EXPOSURE_MODES = { LOCK: 'lock', // IOS Only diff --git a/src/@ionic-native/plugins/camera/index.ts b/src/@ionic-native/plugins/camera/index.ts index eb7386752..6d6b4ab9e 100644 --- a/src/@ionic-native/plugins/camera/index.ts +++ b/src/@ionic-native/plugins/camera/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface CameraOptions { /** Picture quality in range 0-100. Default is 50 */ @@ -128,7 +128,7 @@ export interface CameraPopoverOptions { platforms: ['Android', 'BlackBerry', 'Browser', 'Firefox', 'FireOS', 'iOS', 'Windows', 'Windows Phone 8', 'Ubuntu'] }) @Injectable() -export class Camera { +export class Camera extends IonicNativePlugin { /** * Constant for possible destination types diff --git a/src/@ionic-native/plugins/card-io/index.ts b/src/@ionic-native/plugins/card-io/index.ts index 2b004b34b..ab54349ec 100644 --- a/src/@ionic-native/plugins/card-io/index.ts +++ b/src/@ionic-native/plugins/card-io/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface CardIOOptions { @@ -167,7 +167,7 @@ export interface CardIOResponse { platforms: ['iOS', 'Android'] }) @Injectable() -export class CardIO { +export class CardIO extends IonicNativePlugin { /** * Check whether card scanning is currently available. (May vary by diff --git a/src/@ionic-native/plugins/clipboard/index.ts b/src/@ionic-native/plugins/clipboard/index.ts index 577c541c8..c3adb9dcb 100644 --- a/src/@ionic-native/plugins/clipboard/index.ts +++ b/src/@ionic-native/plugins/clipboard/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Clipboard * @description @@ -37,7 +37,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Amazon Fire OS', 'iOS', 'Android', 'BlackBerry 10', 'Windows Phone 7', 'Windows Phone 8', 'Windows', 'Firefox OS', 'Browser'] }) @Injectable() -export class Clipboard { +export class Clipboard extends IonicNativePlugin { /** * Copies the given text diff --git a/src/@ionic-native/plugins/code-push/index.ts b/src/@ionic-native/plugins/code-push/index.ts index c0d32da99..b12908925 100644 --- a/src/@ionic-native/plugins/code-push/index.ts +++ b/src/@ionic-native/plugins/code-push/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; namespace Http { export const enum Verb { @@ -427,7 +427,7 @@ export interface DownloadProgress { platforms: ['Android', 'iOS'] }) @Injectable() -export class CodePush { +export class CodePush extends IonicNativePlugin { /** * Get the current package information. diff --git a/src/@ionic-native/plugins/contacts/index.ts b/src/@ionic-native/plugins/contacts/index.ts index d3ec6fd04..586c98f7e 100644 --- a/src/@ionic-native/plugins/contacts/index.ts +++ b/src/@ionic-native/plugins/contacts/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CordovaInstance, InstanceProperty, Plugin, getPromise, InstanceCheck, checkAvailability, CordovaCheck } from '@ionic-native/core'; +import { CordovaInstance, InstanceProperty, Plugin, getPromise, InstanceCheck, checkAvailability, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; declare var window: any, navigator: any; @@ -294,7 +294,7 @@ export class ContactFindOptions implements IContactFindOptions { platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Ubuntu', 'Windows', 'Windows 8', 'Windows Phone'] }) @Injectable() -export class Contacts { +export class Contacts extends IonicNativePlugin { /** * Create a single contact. diff --git a/src/@ionic-native/plugins/couchbase-lite/index.ts b/src/@ionic-native/plugins/couchbase-lite/index.ts index 782aba059..cd48254a6 100644 --- a/src/@ionic-native/plugins/couchbase-lite/index.ts +++ b/src/@ionic-native/plugins/couchbase-lite/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; @@ -29,7 +29,7 @@ import { Injectable } from '@angular/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class CouchbaseLite { +export class CouchbaseLite extends IonicNativePlugin { /** * Get the database url diff --git a/src/@ionic-native/plugins/crop/index.ts b/src/@ionic-native/plugins/crop/index.ts index b99708347..f411de3fc 100644 --- a/src/@ionic-native/plugins/crop/index.ts +++ b/src/@ionic-native/plugins/crop/index.ts @@ -1,12 +1,12 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Crop * @description Crops images * @usage * ``` - * import {Crop} from '@ionic-native/crop'; + * import { Crop } from '@ionic-native/crop'; * * constructor(private crop: Crop) { } * @@ -27,7 +27,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class Crop { +export class Crop extends IonicNativePlugin { /** * Crops an image diff --git a/src/@ionic-native/plugins/date-picker/index.ts b/src/@ionic-native/plugins/date-picker/index.ts index f482cffe1..5c6667864 100644 --- a/src/@ionic-native/plugins/date-picker/index.ts +++ b/src/@ionic-native/plugins/date-picker/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import {Cordova, Plugin} from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface DatePickerOptions { /** @@ -154,7 +154,7 @@ export interface DatePickerOptions { platforms: ['Android', 'iOS', 'Windows'] }) @Injectable() -export class DatePicker { +export class DatePicker extends IonicNativePlugin { /** * @hidden diff --git a/src/@ionic-native/plugins/db-meter/index.ts b/src/@ionic-native/plugins/db-meter/index.ts index 0e96b58aa..2bfb377fb 100644 --- a/src/@ionic-native/plugins/db-meter/index.ts +++ b/src/@ionic-native/plugins/db-meter/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -42,7 +42,7 @@ import { Observable } from 'rxjs/Observable'; platforms: ['iOS', 'Android'] }) @Injectable() -export class DBMeter { +export class DBMeter extends IonicNativePlugin { /** * Starts listening diff --git a/src/@ionic-native/plugins/deeplinks/index.ts b/src/@ionic-native/plugins/deeplinks/index.ts index 58dc526d6..cea92ba02 100644 --- a/src/@ionic-native/plugins/deeplinks/index.ts +++ b/src/@ionic-native/plugins/deeplinks/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface DeeplinkMatch { @@ -83,7 +83,7 @@ export interface DeeplinkMatch { installVariables: ['URL_SCHEME', 'DEEPLINK_SCHEME', 'DEEPLINK_HOST', 'ANDROID_PATH_PREFIX'] }) @Injectable() -export class Deeplinks { +export class Deeplinks extends IonicNativePlugin { /** * Define a set of paths to match against incoming deeplinks. diff --git a/src/@ionic-native/plugins/device-accounts/index.ts b/src/@ionic-native/plugins/device-accounts/index.ts index 17190ad80..578bd2408 100644 --- a/src/@ionic-native/plugins/device-accounts/index.ts +++ b/src/@ionic-native/plugins/device-accounts/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Device Accounts @@ -28,7 +28,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android'] }) @Injectable() -export class DeviceAccounts { +export class DeviceAccounts extends IonicNativePlugin { /** * Gets all accounts registered on the Android Device diff --git a/src/@ionic-native/plugins/device-feedback/index.ts b/src/@ionic-native/plugins/device-feedback/index.ts index f69f49761..066d18ab1 100644 --- a/src/@ionic-native/plugins/device-feedback/index.ts +++ b/src/@ionic-native/plugins/device-feedback/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Device Feedback * @description @@ -38,7 +38,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android'] }) @Injectable() -export class DeviceFeedback { +export class DeviceFeedback extends IonicNativePlugin { /** * Provide sound feedback to user, nevertheless respect user's settings and current active device profile as native feedback do. diff --git a/src/@ionic-native/plugins/device-motion/index.ts b/src/@ionic-native/plugins/device-motion/index.ts index bf0aa5864..b108d4790 100644 --- a/src/@ionic-native/plugins/device-motion/index.ts +++ b/src/@ionic-native/plugins/device-motion/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface DeviceMotionAccelerationData { @@ -75,7 +75,7 @@ export interface DeviceMotionAccelerometerOptions { platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone'] }) @Injectable() -export class DeviceMotion { +export class DeviceMotion extends IonicNativePlugin { /** * Get the current acceleration along the x, y, and z axes. diff --git a/src/@ionic-native/plugins/device-orientation/index.ts b/src/@ionic-native/plugins/device-orientation/index.ts index 4080393ad..99a0a15d8 100644 --- a/src/@ionic-native/plugins/device-orientation/index.ts +++ b/src/@ionic-native/plugins/device-orientation/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface DeviceOrientationCompassHeading { @@ -80,7 +80,7 @@ export interface DeviceOrientationCompassOptions { platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone'] }) @Injectable() -export class DeviceOrientation { +export class DeviceOrientation extends IonicNativePlugin { /** * Get the current compass heading. diff --git a/src/@ionic-native/plugins/device/index.ts b/src/@ionic-native/plugins/device/index.ts index 65d9e5b72..92a8cb57b 100644 --- a/src/@ionic-native/plugins/device/index.ts +++ b/src/@ionic-native/plugins/device/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CordovaProperty, Plugin } from '@ionic-native/core'; +import { CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; declare var window: any; @@ -27,7 +27,7 @@ declare var window: any; platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'OS X', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone'] }) @Injectable() -export class Device { +export class Device extends IonicNativePlugin { /** Get the version of Cordova running on the device. */ @CordovaProperty diff --git a/src/@ionic-native/plugins/diagnostic/index.ts b/src/@ionic-native/plugins/diagnostic/index.ts index 0ccdd1975..fb9b0119f 100644 --- a/src/@ionic-native/plugins/diagnostic/index.ts +++ b/src/@ionic-native/plugins/diagnostic/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import {Cordova, Plugin, CordovaProperty} from '@ionic-native/core'; +import { Cordova, Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; /** * @name Diagnostic @@ -42,7 +42,7 @@ import {Cordova, Plugin, CordovaProperty} from '@ionic-native/core'; platforms: ['Android', 'iOS', 'Windows'] }) @Injectable() -export class Diagnostic { +export class Diagnostic extends IonicNativePlugin { permission = { READ_CALENDAR: 'READ_CALENDAR', diff --git a/src/@ionic-native/plugins/dialogs/index.ts b/src/@ionic-native/plugins/dialogs/index.ts index 85e29ff7b..72fc98d3e 100644 --- a/src/@ionic-native/plugins/dialogs/index.ts +++ b/src/@ionic-native/plugins/dialogs/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface DialogsPromptCallback { @@ -49,7 +49,7 @@ export interface DialogsPromptCallback { platforms: ['Android', 'BlackBerry 10', 'Firefox OS', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone'] }) @Injectable() -export class Dialogs { +export class Dialogs extends IonicNativePlugin { /** * Shows a custom alert or dialog box. diff --git a/src/@ionic-native/plugins/email-composer/index.ts b/src/@ionic-native/plugins/email-composer/index.ts index 24dfaa6f0..dc9612653 100644 --- a/src/@ionic-native/plugins/email-composer/index.ts +++ b/src/@ionic-native/plugins/email-composer/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, CordovaCheck } from '@ionic-native/core'; +import { Cordova, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; declare var cordova: any; @@ -79,7 +79,7 @@ export interface EmailComposerOptions { platforms: ['Android', 'iOS'] }) @Injectable() -export class EmailComposer { +export class EmailComposer extends IonicNativePlugin { /** * Verifies if sending emails is supported on the device. diff --git a/src/@ionic-native/plugins/estimote-beacons/index.ts b/src/@ionic-native/plugins/estimote-beacons/index.ts index a64f932eb..beabd1387 100644 --- a/src/@ionic-native/plugins/estimote-beacons/index.ts +++ b/src/@ionic-native/plugins/estimote-beacons/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface EstimoteBeaconRegion { @@ -47,7 +47,7 @@ export interface EstimoteBeaconRegion { platforms: ['iOS', 'Android'] }) @Injectable() -export class EstimoteBeacons { +export class EstimoteBeacons extends IonicNativePlugin { /** Proximity value */ ProximityUnknown = 0; diff --git a/src/@ionic-native/plugins/facebook/index.ts b/src/@ionic-native/plugins/facebook/index.ts index 71d1cbc6b..174fb0389 100644 --- a/src/@ionic-native/plugins/facebook/index.ts +++ b/src/@ionic-native/plugins/facebook/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface FacebookLoginResponse { @@ -117,7 +117,7 @@ export interface FacebookLoginResponse { platforms: ['Android', 'iOS'] }) @Injectable() -export class Facebook { +export class Facebook extends IonicNativePlugin { /** * Browser wrapper diff --git a/src/@ionic-native/plugins/file-chooser/index.ts b/src/@ionic-native/plugins/file-chooser/index.ts index aba17911e..ae35b0197 100644 --- a/src/@ionic-native/plugins/file-chooser/index.ts +++ b/src/@ionic-native/plugins/file-chooser/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name File Chooser @@ -29,7 +29,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android'] }) @Injectable() -export class FileChooser { +export class FileChooser extends IonicNativePlugin { /** * Open a file diff --git a/src/@ionic-native/plugins/file-opener/index.ts b/src/@ionic-native/plugins/file-opener/index.ts index 027b13d6b..d1f5917dc 100644 --- a/src/@ionic-native/plugins/file-opener/index.ts +++ b/src/@ionic-native/plugins/file-opener/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name File Opener @@ -28,7 +28,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'] }) @Injectable() -export class FileOpener { +export class FileOpener extends IonicNativePlugin { /** * Open an file diff --git a/src/@ionic-native/plugins/file-path/index.ts b/src/@ionic-native/plugins/file-path/index.ts index 9081168fe..2154eaa83 100644 --- a/src/@ionic-native/plugins/file-path/index.ts +++ b/src/@ionic-native/plugins/file-path/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; declare var window: any; @@ -31,7 +31,7 @@ declare var window: any; platforms: ['Android'] }) @Injectable() -export class FilePath { +export class FilePath extends IonicNativePlugin { /** * Resolve native path for given content URL/path. diff --git a/src/@ionic-native/plugins/file/index.ts b/src/@ionic-native/plugins/file/index.ts index 0e72a1d55..ef18ab0c7 100644 --- a/src/@ionic-native/plugins/file/index.ts +++ b/src/@ionic-native/plugins/file/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CordovaProperty, Plugin, CordovaCheck } from '@ionic-native/core'; +import { CordovaProperty, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; declare var window: any; declare var cordova: any; @@ -371,7 +371,7 @@ export declare var FileError: { platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'OS X', 'Ubuntu', 'Windows', 'Windows Phone'] }) @Injectable() -export class File { +export class File extends IonicNativePlugin { /** * Read-only directory where the application is installed. diff --git a/src/@ionic-native/plugins/fingerprint-aio/index.ts b/src/@ionic-native/plugins/fingerprint-aio/index.ts index 834646e75..8eeb1ec71 100644 --- a/src/@ionic-native/plugins/fingerprint-aio/index.ts +++ b/src/@ionic-native/plugins/fingerprint-aio/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface FingerprintOptions { @@ -54,7 +54,7 @@ export interface FingerprintOptions { platforms: ['Android', 'iOS'] }) @Injectable() -export class FingerprintAIO { +export class FingerprintAIO extends IonicNativePlugin { /** * Check if fingerprint authentication is available diff --git a/src/@ionic-native/plugins/firebase/index.ts b/src/@ionic-native/plugins/firebase/index.ts index 33eb302f6..8c42c587f 100644 --- a/src/@ionic-native/plugins/firebase/index.ts +++ b/src/@ionic-native/plugins/firebase/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -32,7 +32,7 @@ import { Observable } from 'rxjs/Observable'; platforms: ['Android', 'iOS'] }) @Injectable() -export class Firebase { +export class Firebase extends IonicNativePlugin { /** * Get the device token diff --git a/src/@ionic-native/plugins/flashlight/index.ts b/src/@ionic-native/plugins/flashlight/index.ts index 9656b4692..3f3949e5b 100644 --- a/src/@ionic-native/plugins/flashlight/index.ts +++ b/src/@ionic-native/plugins/flashlight/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Flashlight @@ -28,7 +28,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android', 'iOS', 'Windows Phone 8'] }) @Injectable() -export class Flashlight { +export class Flashlight extends IonicNativePlugin { /** * Checks if the flashlight is available diff --git a/src/@ionic-native/plugins/flurry-analytics/index.ts b/src/@ionic-native/plugins/flurry-analytics/index.ts index 2f687fa6b..85f8e671d 100644 --- a/src/@ionic-native/plugins/flurry-analytics/index.ts +++ b/src/@ionic-native/plugins/flurry-analytics/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; export interface FlurryAnalyticsOptions { @@ -107,7 +107,7 @@ export interface FlurryAnalyticsLocation { platforms: ['Android', 'iOS', 'Browser'] }) @Injectable() -export class FlurryAnalytics { +export class FlurryAnalytics extends IonicNativePlugin { /** * Set the setting for Flurry Analytics diff --git a/src/@ionic-native/plugins/geofence/index.ts b/src/@ionic-native/plugins/geofence/index.ts index 3ba47ee0e..ee304fccc 100644 --- a/src/@ionic-native/plugins/geofence/index.ts +++ b/src/@ionic-native/plugins/geofence/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, CordovaFunctionOverride } from '@ionic-native/core'; +import { Cordova, Plugin, CordovaFunctionOverride, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var window: any; @@ -83,7 +83,7 @@ declare var window: any; platforms: ['Android', 'iOS', 'Windows Phone 8', 'Windows Phone'] }) @Injectable() -export class Geofence { +export class Geofence extends IonicNativePlugin { public TransitionType = { ENTER: 1, diff --git a/src/@ionic-native/plugins/geolocation/index.ts b/src/@ionic-native/plugins/geolocation/index.ts index 722fcdec8..55d4dcdcf 100644 --- a/src/@ionic-native/plugins/geolocation/index.ts +++ b/src/@ionic-native/plugins/geolocation/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var navigator: any; @@ -156,7 +156,7 @@ export interface GeolocationOptions { platforms: ['Android', 'Firefox OS', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone'] }) @Injectable() -export class Geolocation { +export class Geolocation extends IonicNativePlugin { /** * Get the device's current position. diff --git a/src/@ionic-native/plugins/globalization/index.ts b/src/@ionic-native/plugins/globalization/index.ts index f99bddc25..3e7a22eda 100644 --- a/src/@ionic-native/plugins/globalization/index.ts +++ b/src/@ionic-native/plugins/globalization/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Globalization @@ -29,7 +29,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Firefox OS', 'iOS', 'Windows Phone 8', 'Widnows', 'Browser'] }) @Injectable() -export class Globalization { +export class Globalization extends IonicNativePlugin { /** * Returns the BCP-47 compliant language identifier tag to the successCallback with a properties object as a parameter. That object should have a value property with a String value. diff --git a/src/@ionic-native/plugins/google-analytics/index.ts b/src/@ionic-native/plugins/google-analytics/index.ts index 7454cdb7a..49a55b6b8 100644 --- a/src/@ionic-native/plugins/google-analytics/index.ts +++ b/src/@ionic-native/plugins/google-analytics/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; declare var window; @@ -39,7 +39,7 @@ declare var window; platforms: ['Android', 'iOS', 'Browser'] }) @Injectable() -export class GoogleAnalytics { +export class GoogleAnalytics extends IonicNativePlugin { /** * In your 'deviceready' handler, set up your Analytics tracker. diff --git a/src/@ionic-native/plugins/google-maps/index.ts b/src/@ionic-native/plugins/google-maps/index.ts index 20a5d3aae..dc968d07b 100644 --- a/src/@ionic-native/plugins/google-maps/index.ts +++ b/src/@ionic-native/plugins/google-maps/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaInstance, CordovaCheck, Plugin, InstanceProperty, InstanceCheck, checkAvailability } from '@ionic-native/core'; +import { Cordova, CordovaInstance, CordovaCheck, Plugin, InstanceProperty, InstanceCheck, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/fromEvent'; @@ -455,7 +455,7 @@ export class GoogleMap { platforms: ['Android', 'iOS'] }) @Injectable() -export class GoogleMaps { +export class GoogleMaps extends IonicNativePlugin { /** * Checks if a map object has been created and is available. diff --git a/src/@ionic-native/plugins/google-plus/index.ts b/src/@ionic-native/plugins/google-plus/index.ts index 80844bae8..d882ad43f 100644 --- a/src/@ionic-native/plugins/google-plus/index.ts +++ b/src/@ionic-native/plugins/google-plus/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Google Plus @@ -28,7 +28,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; installVariables: ['REVERSED_CLIENT_ID'] }) @Injectable() -export class GooglePlus { +export class GooglePlus extends IonicNativePlugin { /** * The login function walks the user through the Google Auth process. diff --git a/src/@ionic-native/plugins/gyroscope/index.ts b/src/@ionic-native/plugins/gyroscope/index.ts index 5da810c07..addc279fd 100644 --- a/src/@ionic-native/plugins/gyroscope/index.ts +++ b/src/@ionic-native/plugins/gyroscope/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import { Injectable } from '@angular/core'; @@ -81,7 +81,7 @@ export interface GyroscopeOptions { platforms: ['Android', 'iOS'] }) @Injectable() -export class Gyroscope { +export class Gyroscope extends IonicNativePlugin { /** * Watching for gyroscope sensor changes diff --git a/src/@ionic-native/plugins/header-color/index.ts b/src/@ionic-native/plugins/header-color/index.ts index 9201de3b4..e7f21aeef 100644 --- a/src/@ionic-native/plugins/header-color/index.ts +++ b/src/@ionic-native/plugins/header-color/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Header Color @@ -25,7 +25,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android'] }) @Injectable() -export class HeaderColor { +export class HeaderColor extends IonicNativePlugin { /** * Set a color to the task header diff --git a/src/@ionic-native/plugins/health/index.ts b/src/@ionic-native/plugins/health/index.ts index 97c6dbb30..83171a306 100644 --- a/src/@ionic-native/plugins/health/index.ts +++ b/src/@ionic-native/plugins/health/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; /** @@ -200,7 +200,7 @@ export interface HealthData { platforms: ['Android', 'iOS'] }) @Injectable() -export class Health { +export class Health extends IonicNativePlugin { /** * Tells if either Google Fit or HealthKit are available. diff --git a/src/@ionic-native/plugins/hotspot/index.ts b/src/@ionic-native/plugins/hotspot/index.ts index 2df8ed495..97d58ba90 100644 --- a/src/@ionic-native/plugins/hotspot/index.ts +++ b/src/@ionic-native/plugins/hotspot/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface HotspotConnectionInfo { @@ -133,7 +133,7 @@ export interface HotspotDevice { platforms: ['Android'] }) @Injectable() -export class Hotspot { +export class Hotspot extends IonicNativePlugin { /** * @returns {Promise} diff --git a/src/@ionic-native/plugins/http/index.ts b/src/@ionic-native/plugins/http/index.ts index 8b1d1acf1..52f023a5c 100644 --- a/src/@ionic-native/plugins/http/index.ts +++ b/src/@ionic-native/plugins/http/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface HTTPResponse { /** @@ -65,7 +65,7 @@ export interface HTTPResponse { platforms: ['Android', 'iOS'] }) @Injectable() -export class HTTP { +export class HTTP extends IonicNativePlugin { /** * This returns an object representing a basic HTTP Authorization header of the form. diff --git a/src/@ionic-native/plugins/httpd/index.ts b/src/@ionic-native/plugins/httpd/index.ts index a9aae1ff7..2e2d61078 100644 --- a/src/@ionic-native/plugins/httpd/index.ts +++ b/src/@ionic-native/plugins/httpd/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface HttpdOptions { @@ -55,7 +55,7 @@ export interface HttpdOptions { platforms: ['iOS', 'Android'] }) @Injectable() -export class Httpd { +export class Httpd extends IonicNativePlugin { /** * Starts a web server. diff --git a/src/@ionic-native/plugins/ibeacon/index.ts b/src/@ionic-native/plugins/ibeacon/index.ts index da29385f8..a01cb1c85 100644 --- a/src/@ionic-native/plugins/ibeacon/index.ts +++ b/src/@ionic-native/plugins/ibeacon/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, CordovaCheck } from '@ionic-native/core'; +import { Cordova, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var cordova: any; @@ -286,7 +286,7 @@ export interface IBeaconDelegate { platforms: ['Android', 'iOS'] }) @Injectable() -export class IBeacon { +export class IBeacon extends IonicNativePlugin { /** * Instances of this class are delegates between the {@link LocationManager} and diff --git a/src/@ionic-native/plugins/image-picker/index.ts b/src/@ionic-native/plugins/image-picker/index.ts index c1d539482..e92ac32ad 100644 --- a/src/@ionic-native/plugins/image-picker/index.ts +++ b/src/@ionic-native/plugins/image-picker/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface ImagePickerOptions { @@ -63,7 +63,7 @@ export interface ImagePickerOptions { platforms: ['Android', 'iOS'] }) @Injectable() -export class ImagePicker { +export class ImagePicker extends IonicNativePlugin { /** * Pick pictures from the library. * @param {ImagePickerOptions} options diff --git a/src/@ionic-native/plugins/image-resizer/index.ts b/src/@ionic-native/plugins/image-resizer/index.ts index 100556e07..7908ee6ca 100644 --- a/src/@ionic-native/plugins/image-resizer/index.ts +++ b/src/@ionic-native/plugins/image-resizer/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface ImageResizerOptions { /** @@ -80,7 +80,7 @@ export interface ImageResizerOptions { platforms: ['Android', 'iOS', 'Windows'] }) @Injectable() -export class ImageResizer { +export class ImageResizer extends IonicNativePlugin { /** * @returns {Promise} */ diff --git a/src/@ionic-native/plugins/in-app-browser/index.ts b/src/@ionic-native/plugins/in-app-browser/index.ts index a51ff5395..cc2db4186 100644 --- a/src/@ionic-native/plugins/in-app-browser/index.ts +++ b/src/@ionic-native/plugins/in-app-browser/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, CordovaInstance } from '@ionic-native/core'; +import { Plugin, CordovaInstance, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/fromEvent'; @@ -166,7 +166,7 @@ export class InAppBrowserObject { platforms: ['Amazon', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'OS X', 'Ubuntu', 'Windows', 'Windows Phone'] }) @Injectable() -export class InAppBrowser { +export class InAppBrowser extends IonicNativePlugin { /** * Opens a URL in a new InAppBrowser instance, the current browser instance, or the system browser. diff --git a/src/@ionic-native/plugins/in-app-purchase/index.ts b/src/@ionic-native/plugins/in-app-purchase/index.ts index 49295b98f..307c6485d 100644 --- a/src/@ionic-native/plugins/in-app-purchase/index.ts +++ b/src/@ionic-native/plugins/in-app-purchase/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** @@ -61,7 +61,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; repo: 'https://github.com/AlexDisler/cordova-plugin-inapppurchase' }) @Injectable() -export class InAppPurchase { +export class InAppPurchase extends IonicNativePlugin { /** * Retrieves a list of full product data from Apple/Google. This method must be called before making purchases. diff --git a/src/@ionic-native/plugins/insomnia/index.ts b/src/@ionic-native/plugins/insomnia/index.ts index a78974bf5..053b51861 100644 --- a/src/@ionic-native/plugins/insomnia/index.ts +++ b/src/@ionic-native/plugins/insomnia/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** @@ -37,7 +37,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android', 'iOS', 'Windows Phone 8'] }) @Injectable() -export class Insomnia { +export class Insomnia extends IonicNativePlugin { /** * Keeps awake the application diff --git a/src/@ionic-native/plugins/instagram/index.ts b/src/@ionic-native/plugins/instagram/index.ts index ce7d441b9..d3d7dab44 100644 --- a/src/@ionic-native/plugins/instagram/index.ts +++ b/src/@ionic-native/plugins/instagram/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Instagram @@ -27,7 +27,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class Instagram { +export class Instagram extends IonicNativePlugin { /** * Detect if the Instagram application is installed on the device. diff --git a/src/@ionic-native/plugins/intel-security/index.ts b/src/@ionic-native/plugins/intel-security/index.ts index 9a47b4b3e..d888b0f80 100644 --- a/src/@ionic-native/plugins/intel-security/index.ts +++ b/src/@ionic-native/plugins/intel-security/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; declare var window: any; @@ -75,7 +75,7 @@ export interface IntelSecurityDataOptions { platforms: ['Android', 'iOS', 'Windows'] }) @Injectable() -export class IntelSecurity { +export class IntelSecurity extends IonicNativePlugin { /** * returns an IntelSecurityStorage object diff --git a/src/@ionic-native/plugins/is-debug/index.ts b/src/@ionic-native/plugins/is-debug/index.ts index 39ed9a69e..8c707e936 100644 --- a/src/@ionic-native/plugins/is-debug/index.ts +++ b/src/@ionic-native/plugins/is-debug/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Is Debug @@ -29,7 +29,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class IsDebug { +export class IsDebug extends IonicNativePlugin { /** * Determine if an app was installed via xcode / eclipse / the ionic CLI etc diff --git a/src/@ionic-native/plugins/jins-meme/index.ts b/src/@ionic-native/plugins/jins-meme/index.ts index 6d13d29f5..c7ebea090 100644 --- a/src/@ionic-native/plugins/jins-meme/index.ts +++ b/src/@ionic-native/plugins/jins-meme/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, CordovaCheck } from '@ionic-native/core'; +import { Plugin, Cordova, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var cordova: any; @@ -38,7 +38,7 @@ declare var cordova: any; platforms: ['Android', 'iOS'] }) @Injectable() -export class JinsMeme { +export class JinsMeme extends IonicNativePlugin { /** * Authentication and authorization of App and SDK. * Must call this method first. diff --git a/src/@ionic-native/plugins/keyboard/index.ts b/src/@ionic-native/plugins/keyboard/index.ts index 151d5799d..f32444af9 100644 --- a/src/@ionic-native/plugins/keyboard/index.ts +++ b/src/@ionic-native/plugins/keyboard/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; @@ -28,7 +28,7 @@ import { Observable } from 'rxjs/Observable'; platforms: ['Android', 'BlackBerry 10', 'iOS', 'Windows'] }) @Injectable() -export class Keyboard { +export class Keyboard extends IonicNativePlugin { /** * Hide the keyboard accessory bar with the next, previous and done buttons. diff --git a/src/@ionic-native/plugins/launch-navigator/index.ts b/src/@ionic-native/plugins/launch-navigator/index.ts index f8bc2d955..8300f2f07 100644 --- a/src/@ionic-native/plugins/launch-navigator/index.ts +++ b/src/@ionic-native/plugins/launch-navigator/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface LaunchNavigatorOptions { @@ -95,7 +95,7 @@ export interface LaunchNavigatorOptions { platforms: ['Android', 'iOS'] }) @Injectable() -export class LaunchNavigator { +export class LaunchNavigator extends IonicNativePlugin { /** * Launches navigator app diff --git a/src/@ionic-native/plugins/launch-review/index.ts b/src/@ionic-native/plugins/launch-review/index.ts index 9be59eab1..bf2a3c05b 100644 --- a/src/@ionic-native/plugins/launch-review/index.ts +++ b/src/@ionic-native/plugins/launch-review/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Launch Review @@ -30,7 +30,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class LaunchReview { +export class LaunchReview extends IonicNativePlugin { /** * Launch store app using given app ID diff --git a/src/@ionic-native/plugins/linkedin/index.ts b/src/@ionic-native/plugins/linkedin/index.ts index 53c5c215e..6145b63a7 100644 --- a/src/@ionic-native/plugins/linkedin/index.ts +++ b/src/@ionic-native/plugins/linkedin/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; export type LinkedInLoginScopes = 'r_basicprofile' | 'r_emailaddress' | 'rw_company_admin' | 'w_share'; @@ -57,7 +57,7 @@ export type LinkedInLoginScopes = 'r_basicprofile' | 'r_emailaddress' | 'rw_comp platforms: ['Android', 'iOS'] }) @Injectable() -export class LinkedIn { +export class LinkedIn extends IonicNativePlugin { /** * Login with the LinkedIn App diff --git a/src/@ionic-native/plugins/local-notifications/index.ts b/src/@ionic-native/plugins/local-notifications/index.ts index 2505a7198..5be91108a 100644 --- a/src/@ionic-native/plugins/local-notifications/index.ts +++ b/src/@ionic-native/plugins/local-notifications/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface ILocalNotification { @@ -148,7 +148,7 @@ export interface ILocalNotification { platforms: ['Android', 'iOS', 'Windows'] }) @Injectable() -export class LocalNotifications { +export class LocalNotifications extends IonicNativePlugin { /** * Schedules a single or multiple notifications diff --git a/src/@ionic-native/plugins/location-accuracy/index.ts b/src/@ionic-native/plugins/location-accuracy/index.ts index 751ff112d..214086cf0 100644 --- a/src/@ionic-native/plugins/location-accuracy/index.ts +++ b/src/@ionic-native/plugins/location-accuracy/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Location Accuracy @@ -36,7 +36,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class LocationAccuracy { +export class LocationAccuracy extends IonicNativePlugin { /** * Indicates if you can request accurate location * @returns {Promise} Returns a promise that resovles with a boolean that indicates if you can request accurate location diff --git a/src/@ionic-native/plugins/market/index.ts b/src/@ionic-native/plugins/market/index.ts index 08cbc90e1..9f16ed593 100644 --- a/src/@ionic-native/plugins/market/index.ts +++ b/src/@ionic-native/plugins/market/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Market * @description @@ -25,7 +25,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class Market { +export class Market extends IonicNativePlugin { /** * Opens an app in Google Play / App Store diff --git a/src/@ionic-native/plugins/media-capture/index.ts b/src/@ionic-native/plugins/media-capture/index.ts index 1408ee815..301a39344 100644 --- a/src/@ionic-native/plugins/media-capture/index.ts +++ b/src/@ionic-native/plugins/media-capture/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, Plugin } from '@ionic-native/core'; +import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var navigator: any; @@ -149,7 +149,7 @@ export interface ConfigurationData { repo: 'https://github.com/apache/cordova-plugin-media-capture' }) @Injectable() -export class MediaCapture { +export class MediaCapture extends IonicNativePlugin { /** * The recording image sizes and formats supported by the device. * @returns {ConfigurationData[]} diff --git a/src/@ionic-native/plugins/media/index.ts b/src/@ionic-native/plugins/media/index.ts index 4613120e5..482638656 100644 --- a/src/@ionic-native/plugins/media/index.ts +++ b/src/@ionic-native/plugins/media/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CordovaInstance, Plugin, CordovaCheck } from '@ionic-native/core'; +import { CordovaInstance, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; declare var Media: any; @@ -217,7 +217,7 @@ export type MediaErrorCallback = (error: MediaError) => void; pluginRef: 'Media' }) @Injectable() -export class MediaPlugin { +export class MediaPlugin extends IonicNativePlugin { // Constants /** diff --git a/src/@ionic-native/plugins/mixpanel/index.ts b/src/@ionic-native/plugins/mixpanel/index.ts index 852ebfde7..197ab2e6f 100644 --- a/src/@ionic-native/plugins/mixpanel/index.ts +++ b/src/@ionic-native/plugins/mixpanel/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; declare var mixpanel: any; @@ -31,7 +31,7 @@ declare var mixpanel: any; repo: 'https://github.com/samzilverberg/cordova-mixpanel-plugin' }) @Injectable() -export class Mixpanel { +export class Mixpanel extends IonicNativePlugin { /** * @@ -115,7 +115,7 @@ export class Mixpanel { pluginName: 'Mixpanel' }) @Injectable() -export class MixpanelPeople { +export class MixpanelPeople extends IonicNativePlugin { /** * diff --git a/src/@ionic-native/plugins/music-controls/index.ts b/src/@ionic-native/plugins/music-controls/index.ts index 0828f8916..eff7eb70e 100644 --- a/src/@ionic-native/plugins/music-controls/index.ts +++ b/src/@ionic-native/plugins/music-controls/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface MusicControlsOptions { @@ -107,7 +107,7 @@ export interface MusicControlsOptions { repo: 'https://github.com/homerours/cordova-music-controls-plugin' }) @Injectable() -export class MusicControls { +export class MusicControls extends IonicNativePlugin { /** * Create the media controls diff --git a/src/@ionic-native/plugins/native-audio/index.ts b/src/@ionic-native/plugins/native-audio/index.ts index 01cfdf6f3..14a6634bc 100644 --- a/src/@ionic-native/plugins/native-audio/index.ts +++ b/src/@ionic-native/plugins/native-audio/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Native Audio * @description Native Audio Playback @@ -36,7 +36,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; repo: 'https://github.com/floatinghotpot/cordova-plugin-nativeaudio' }) @Injectable() -export class NativeAudio { +export class NativeAudio extends IonicNativePlugin { /** * Loads an audio file into memory. Optimized for short clips / single shots (up to five seconds). Cannot be stopped / looped. * @param id {string} unique ID for the audio file diff --git a/src/@ionic-native/plugins/native-geocoder/index.ts b/src/@ionic-native/plugins/native-geocoder/index.ts index c2e869674..b466ad35a 100644 --- a/src/@ionic-native/plugins/native-geocoder/index.ts +++ b/src/@ionic-native/plugins/native-geocoder/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @beta @@ -35,7 +35,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['iOS', 'Android'] }) @Injectable() -export class NativeGeocoder { +export class NativeGeocoder extends IonicNativePlugin { /** * Reverse geocode a given latitude and longitude to find location address diff --git a/src/@ionic-native/plugins/native-page-transitions/index.ts b/src/@ionic-native/plugins/native-page-transitions/index.ts index 9721eb5d1..3000481ff 100644 --- a/src/@ionic-native/plugins/native-page-transitions/index.ts +++ b/src/@ionic-native/plugins/native-page-transitions/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface NativeTransitionOptions { direction?: string; @@ -69,7 +69,7 @@ export interface NativeTransitionOptions { platforms: ['iOS', 'Android', 'Windows Phone'] }) @Injectable() -export class NativePageTransitions { +export class NativePageTransitions extends IonicNativePlugin { /** * Perform a slide animation * @param options {NativeTransitionOptions} Options for the transition diff --git a/src/@ionic-native/plugins/native-storage/index.ts b/src/@ionic-native/plugins/native-storage/index.ts index f3cdddd3c..009c063ca 100644 --- a/src/@ionic-native/plugins/native-storage/index.ts +++ b/src/@ionic-native/plugins/native-storage/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** @@ -35,7 +35,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android', 'iOS', 'Windows'] }) @Injectable() -export class NativeStorage { +export class NativeStorage extends IonicNativePlugin { /** * Stores a value * @param reference {string} diff --git a/src/@ionic-native/plugins/navigation-bar/index.ts b/src/@ionic-native/plugins/navigation-bar/index.ts index 0882d426b..784f3501b 100644 --- a/src/@ionic-native/plugins/navigation-bar/index.ts +++ b/src/@ionic-native/plugins/navigation-bar/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** @@ -28,7 +28,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android'] }) @Injectable() -export class NavigationBar { +export class NavigationBar extends IonicNativePlugin { /** * hide automatically (or not) the navigation bar. diff --git a/src/@ionic-native/plugins/network/index.ts b/src/@ionic-native/plugins/network/index.ts index 7593e8452..8106fc968 100644 --- a/src/@ionic-native/plugins/network/index.ts +++ b/src/@ionic-native/plugins/network/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, Plugin, CordovaCheck } from '@ionic-native/core'; +import { Cordova, CordovaProperty, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/merge'; @@ -56,7 +56,7 @@ declare var navigator: any; pluginRef: 'navigator.connection' }) @Injectable() -export class Network { +export class Network extends IonicNativePlugin { /** * Connection type diff --git a/src/@ionic-native/plugins/nfc/index.ts b/src/@ionic-native/plugins/nfc/index.ts index 635b87fe2..dfeec7baf 100644 --- a/src/@ionic-native/plugins/nfc/index.ts +++ b/src/@ionic-native/plugins/nfc/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare let window: any; /** @@ -38,7 +38,7 @@ declare let window: any; *@{ NFC } class methods */ @Injectable() -export class NFC { +export class NFC extends IonicNativePlugin { /** * Registers an event listener for any NDEF tag. * @param onSuccess @@ -163,7 +163,7 @@ export class NFC { enabled(): Promise {return; } /** * @{ NFC } class utility methods - * for use with + * for use with */ /** * Convert byte array to string @@ -181,7 +181,7 @@ export class NFC { stringToBytes(str: string): number[] {return; }; /** * Convert byte array to hex string - * + * * @param bytes {number[]} * @returns {string} */ @@ -206,7 +206,7 @@ export class NFC { * For usage with nfc.write() and nfc.share() */ @Injectable() -export class Ndef { +export class Ndef extends IonicNativePlugin { @Cordova({ sync: true }) uriRecord(uri: string): any { return; } diff --git a/src/@ionic-native/plugins/onesignal/index.ts b/src/@ionic-native/plugins/onesignal/index.ts index f3a19fe13..8da0f7811 100644 --- a/src/@ionic-native/plugins/onesignal/index.ts +++ b/src/@ionic-native/plugins/onesignal/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface OSNotification { @@ -308,7 +308,7 @@ export enum OSActionType { platforms: ['Android', 'iOS', 'Windows', 'FireOS'] }) @Injectable() -export class OneSignal { +export class OneSignal extends IonicNativePlugin { /** * constants to use in inFocusDisplaying() diff --git a/src/@ionic-native/plugins/paypal/index.ts b/src/@ionic-native/plugins/paypal/index.ts index 38c879496..9a6fc8b5c 100644 --- a/src/@ionic-native/plugins/paypal/index.ts +++ b/src/@ionic-native/plugins/paypal/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name PayPal * @description @@ -71,7 +71,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class PayPal { +export class PayPal extends IonicNativePlugin { /** * Retrieve the version of the PayPal iOS SDK library. Useful when contacting support. * @returns {Promise} diff --git a/src/@ionic-native/plugins/pedometer/index.ts b/src/@ionic-native/plugins/pedometer/index.ts index b88f9a9e8..eb54174a9 100644 --- a/src/@ionic-native/plugins/pedometer/index.ts +++ b/src/@ionic-native/plugins/pedometer/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import { Injectable } from '@angular/core'; @@ -22,7 +22,7 @@ export interface IPedometerData { * * @usage * ``` - * import { Pedometer } from 'ionic-native'; + * import { Pedometer } from '@ionic-native/pedometer'; * * Pedometer.isDistanceAvailable() * .then((available: boolean) => console.log(available)) @@ -42,7 +42,7 @@ export interface IPedometerData { platforms: ['Android', 'iOS'] }) @Injectable() -export class Pedometer { +export class Pedometer extends IonicNativePlugin { /** * Checks if step counting is available. Only works on iOS. diff --git a/src/@ionic-native/plugins/photo-library/index.ts b/src/@ionic-native/plugins/photo-library/index.ts index 25e0e2069..f707c1234 100644 --- a/src/@ionic-native/plugins/photo-library/index.ts +++ b/src/@ionic-native/plugins/photo-library/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova, CordovaFiniteObservable } from '@ionic-native/core'; +import { Plugin, Cordova, CordovaFiniteObservable, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import { Injectable } from '@angular/core'; @@ -48,7 +48,7 @@ import { Injectable } from '@angular/core'; platforms: ['Android', 'Browser', 'iOS'] }) @Injectable() -export class PhotoLibrary { +export class PhotoLibrary extends IonicNativePlugin { /** * Retrieves library items. Library item contains photo metadata like width and height, as well as photoURL and thumbnailURL. diff --git a/src/@ionic-native/plugins/photo-viewer/index.ts b/src/@ionic-native/plugins/photo-viewer/index.ts index b1de88de7..f6de6076d 100644 --- a/src/@ionic-native/plugins/photo-viewer/index.ts +++ b/src/@ionic-native/plugins/photo-viewer/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Photo Viewer * @description This plugin can display your image in full screen with the ability to pan, zoom, and share the image. @@ -24,7 +24,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class PhotoViewer { +export class PhotoViewer extends IonicNativePlugin { /** * Shows an image in full screen * @param url {string} URL or path to image diff --git a/src/@ionic-native/plugins/pin-dialog/index.ts b/src/@ionic-native/plugins/pin-dialog/index.ts index b0597f8c8..e0235e447 100644 --- a/src/@ionic-native/plugins/pin-dialog/index.ts +++ b/src/@ionic-native/plugins/pin-dialog/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** @@ -31,7 +31,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; repo: 'https://github.com/Paldom/PinDialog' }) @Injectable() -export class PinDialog { +export class PinDialog extends IonicNativePlugin { /** * Show pin dialog * @param {string} message Message to show the user diff --git a/src/@ionic-native/plugins/pinterest/index.ts b/src/@ionic-native/plugins/pinterest/index.ts index 8779111f7..625482408 100644 --- a/src/@ionic-native/plugins/pinterest/index.ts +++ b/src/@ionic-native/plugins/pinterest/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, CordovaProperty } from '@ionic-native/core'; +import { Plugin, Cordova, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; export interface PinterestUser { /** @@ -177,7 +177,7 @@ export interface PinterestPin { platforms: ['Android', 'iOS'] }) @Injectable() -export class Pinterest { +export class Pinterest extends IonicNativePlugin { /** * Convenience constant for authentication scopes diff --git a/src/@ionic-native/plugins/power-management/index.ts b/src/@ionic-native/plugins/power-management/index.ts index 911940d6a..7729e47b1 100644 --- a/src/@ionic-native/plugins/power-management/index.ts +++ b/src/@ionic-native/plugins/power-management/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Power Management * @description @@ -27,7 +27,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; repo: 'https://github.com/Viras-/cordova-plugin-powermanagement' }) @Injectable() -export class PowerManagement { +export class PowerManagement extends IonicNativePlugin { /** * Acquire a wakelock by calling this. * @returns {Promise} diff --git a/src/@ionic-native/plugins/printer/index.ts b/src/@ionic-native/plugins/printer/index.ts index 69d5e2470..845c8ddd8 100644 --- a/src/@ionic-native/plugins/printer/index.ts +++ b/src/@ionic-native/plugins/printer/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; declare var cordova: any; @@ -75,7 +75,7 @@ export interface PrintOptions { platforms: ['Android', 'iOS'] }) @Injectable() -export class Printer { +export class Printer extends IonicNativePlugin { /** * Checks whether to device is capable of printing. diff --git a/src/@ionic-native/plugins/push/index.ts b/src/@ionic-native/plugins/push/index.ts index 62efcfaaa..206026552 100644 --- a/src/@ionic-native/plugins/push/index.ts +++ b/src/@ionic-native/plugins/push/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, CordovaInstance, checkAvailability } from '@ionic-native/core'; +import { Cordova, Plugin, CordovaInstance, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var window: any; @@ -268,7 +268,7 @@ export type PushEvent = 'registration' | 'error' | 'notification'; installVariables: ['SENDER_ID'] }) @Injectable() -export class Push { +export class Push extends IonicNativePlugin { /** * Init push notifications diff --git a/src/@ionic-native/plugins/rollbar/index.ts b/src/@ionic-native/plugins/rollbar/index.ts index 0af9768a0..197ec70ab 100644 --- a/src/@ionic-native/plugins/rollbar/index.ts +++ b/src/@ionic-native/plugins/rollbar/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @beta @@ -29,7 +29,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; installVariables: ['ROLLBAR_ACCESS_TOKEN', 'ROLLBAR_ENVIRONMENT'] }) @Injectable() -export class Rollbar { +export class Rollbar extends IonicNativePlugin { /** * This function initializes the monitoring of your application diff --git a/src/@ionic-native/plugins/safari-view-controller/index.ts b/src/@ionic-native/plugins/safari-view-controller/index.ts index 7b503f613..ccc042067 100644 --- a/src/@ionic-native/plugins/safari-view-controller/index.ts +++ b/src/@ionic-native/plugins/safari-view-controller/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface SafariViewControllerOptions { url?: string; @@ -60,7 +60,7 @@ export interface SafariViewControllerOptions { repo: 'https://github.com/EddyVerbruggen/cordova-plugin-safariviewcontroller' }) @Injectable() -export class SafariViewController { +export class SafariViewController extends IonicNativePlugin { /** * Checks if SafariViewController is available diff --git a/src/@ionic-native/plugins/screen-orientation/index.ts b/src/@ionic-native/plugins/screen-orientation/index.ts index 1d43052a0..3baf6c7a4 100644 --- a/src/@ionic-native/plugins/screen-orientation/index.ts +++ b/src/@ionic-native/plugins/screen-orientation/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, Plugin } from '@ionic-native/core'; +import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var window; @@ -53,7 +53,7 @@ declare var window; platforms: ['Android', 'iOS', 'Windows Phone 8'] }) @Injectable() -export class ScreenOrientation { +export class ScreenOrientation extends IonicNativePlugin { /** * Convenience enum for possible orientations diff --git a/src/@ionic-native/plugins/screenshot/index.ts b/src/@ionic-native/plugins/screenshot/index.ts index cb735cba4..7e4926948 100644 --- a/src/@ionic-native/plugins/screenshot/index.ts +++ b/src/@ionic-native/plugins/screenshot/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin } from '@ionic-native/core'; +import { Plugin, IonicNativePlugin } from '@ionic-native/core'; declare var navigator: any; @@ -28,7 +28,7 @@ declare var navigator: any; repo: 'https://github.com/gitawego/cordova-screenshot.git' }) @Injectable() -export class Screenshot { +export class Screenshot extends IonicNativePlugin { /** * Takes screenshot and saves the image diff --git a/src/@ionic-native/plugins/secure-storage/index.ts b/src/@ionic-native/plugins/secure-storage/index.ts index c3fe2deeb..ef60796bd 100644 --- a/src/@ionic-native/plugins/secure-storage/index.ts +++ b/src/@ionic-native/plugins/secure-storage/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CordovaInstance, Plugin, checkAvailability } from '@ionic-native/core'; +import { CordovaInstance, Plugin, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; declare var cordova: any; @@ -113,7 +113,7 @@ export class SecureStorageObject { platforms: ['Android', 'iOS', 'Windows Phone'] }) @Injectable() -export class SecureStorage { +export class SecureStorage extends IonicNativePlugin { /** * Creates a namespaced storage. diff --git a/src/@ionic-native/plugins/serial/index.ts b/src/@ionic-native/plugins/serial/index.ts index ab574424a..264c16538 100644 --- a/src/@ionic-native/plugins/serial/index.ts +++ b/src/@ionic-native/plugins/serial/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var serial: any; @@ -46,7 +46,7 @@ export interface SerialOpenOptions { platforms: ['Android'] }) @Injectable() -export class Serial { +export class Serial extends IonicNativePlugin { /** * Request permission to connect to a serial device diff --git a/src/@ionic-native/plugins/shake/index.ts b/src/@ionic-native/plugins/shake/index.ts index a169c8796..1b1dc8880 100644 --- a/src/@ionic-native/plugins/shake/index.ts +++ b/src/@ionic-native/plugins/shake/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** * @name Shake @@ -26,7 +26,7 @@ import { Observable } from 'rxjs/Observable'; repo: 'https://github.com/leecrossley/cordova-plugin-shake' }) @Injectable() -export class Shake { +export class Shake extends IonicNativePlugin { /** * Watch for shake gesture * @param sensitivity {number} Optional sensitivity parameter. Defaults to 40 diff --git a/src/@ionic-native/plugins/sim/index.ts b/src/@ionic-native/plugins/sim/index.ts index dc3c5b985..7a2612a2c 100644 --- a/src/@ionic-native/plugins/sim/index.ts +++ b/src/@ionic-native/plugins/sim/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** @@ -41,7 +41,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android', 'iOS', 'Windows Phone'] }) @Injectable() -export class Sim { +export class Sim extends IonicNativePlugin { /** * Returns info from the SIM card. * @returns {Promise} diff --git a/src/@ionic-native/plugins/sms/index.ts b/src/@ionic-native/plugins/sms/index.ts index a0e804c30..b448b6b7c 100644 --- a/src/@ionic-native/plugins/sms/index.ts +++ b/src/@ionic-native/plugins/sms/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** @@ -56,7 +56,7 @@ export interface SmsOptionsAndroid { platforms: ['Android', 'iOS', 'Windows Phone 8'] }) @Injectable() -export class SMS { +export class SMS extends IonicNativePlugin { /** * Sends sms to a number diff --git a/src/@ionic-native/plugins/social-sharing/index.ts b/src/@ionic-native/plugins/social-sharing/index.ts index 9fbb2f8de..807786e9e 100644 --- a/src/@ionic-native/plugins/social-sharing/index.ts +++ b/src/@ionic-native/plugins/social-sharing/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** @@ -37,7 +37,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['iOS', 'Android', 'Windows Phone'] }) @Injectable() -export class SocialSharing { +export class SocialSharing extends IonicNativePlugin { /** * Shares using the share sheet * @param message {string} The message you would like to share. diff --git a/src/@ionic-native/plugins/speech-recognition/index.ts b/src/@ionic-native/plugins/speech-recognition/index.ts index d4f11eb99..d7996a4a8 100644 --- a/src/@ionic-native/plugins/speech-recognition/index.ts +++ b/src/@ionic-native/plugins/speech-recognition/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export type SpeechRecognitionListeningOptions = SpeechRecognitionListeningOptionsIOS | SpeechRecognitionListeningOptionsAndroid; @@ -101,7 +101,7 @@ export interface SpeechRecognitionListeningOptionsAndroid { platforms: ['Android', 'iOS'] }) @Injectable() -export class SpeechRecognition { +export class SpeechRecognition extends IonicNativePlugin { /** * Check feature available diff --git a/src/@ionic-native/plugins/spinner-dialog/index.ts b/src/@ionic-native/plugins/spinner-dialog/index.ts index c6847e5a1..9abc96289 100644 --- a/src/@ionic-native/plugins/spinner-dialog/index.ts +++ b/src/@ionic-native/plugins/spinner-dialog/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface SpinnerDialogIOSOptions { overlayOpacity?: number; @@ -34,7 +34,7 @@ export interface SpinnerDialogIOSOptions { platforms: ['Android', 'iOS', 'Windows Phone 8'] }) @Injectable() -export class SpinnerDialog { +export class SpinnerDialog extends IonicNativePlugin { /** * Shows the spinner dialog diff --git a/src/@ionic-native/plugins/splash-screen/index.ts b/src/@ionic-native/plugins/splash-screen/index.ts index 434ed162c..d4e9faa71 100644 --- a/src/@ionic-native/plugins/splash-screen/index.ts +++ b/src/@ionic-native/plugins/splash-screen/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** @@ -25,7 +25,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; repo: 'https://github.com/apache/cordova-plugin-splashscreen' }) @Injectable() -export class SplashScreen { +export class SplashScreen extends IonicNativePlugin { /** * Shows the splashscreen diff --git a/src/@ionic-native/plugins/sqlite-porter/index.ts b/src/@ionic-native/plugins/sqlite-porter/index.ts index a0477f968..975de38b4 100644 --- a/src/@ionic-native/plugins/sqlite-porter/index.ts +++ b/src/@ionic-native/plugins/sqlite-porter/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; /** @@ -46,7 +46,7 @@ import { Injectable } from '@angular/core'; platforms: ['Android', 'iOS', 'Tizen', 'BlackBerry 10'] }) @Injectable() -export class SQLitePorter { +export class SQLitePorter extends IonicNativePlugin { /** * Executes a set of SQL statements against the defined database. Can be used to import data defined in the SQL statements into the database, and may additionally include commands to create the table structure. diff --git a/src/@ionic-native/plugins/sqlite/index.ts b/src/@ionic-native/plugins/sqlite/index.ts index cc2fa322a..d72c1e90e 100644 --- a/src/@ionic-native/plugins/sqlite/index.ts +++ b/src/@ionic-native/plugins/sqlite/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaInstance, Plugin, CordovaCheck, InstanceProperty } from '@ionic-native/core'; +import { Cordova, CordovaInstance, Plugin, CordovaCheck, InstanceProperty, IonicNativePlugin } from '@ionic-native/core'; declare var sqlitePlugin; @@ -185,7 +185,7 @@ export class SQLiteObject { repo: 'https://github.com/litehelpers/Cordova-sqlite-storage' }) @Injectable() -export class SQLite { +export class SQLite extends IonicNativePlugin { /** * Open or create a SQLite database file. diff --git a/src/@ionic-native/plugins/status-bar/index.ts b/src/@ionic-native/plugins/status-bar/index.ts index aacfd1957..f0f6780d4 100644 --- a/src/@ionic-native/plugins/status-bar/index.ts +++ b/src/@ionic-native/plugins/status-bar/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, Plugin } from '@ionic-native/core'; +import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; declare var window; @@ -35,7 +35,7 @@ declare var window; platforms: ['iOS', 'Android', 'Windows Phone 8', 'Windows 8', 'Windows 10'] }) @Injectable() -export class StatusBar { +export class StatusBar extends IonicNativePlugin { /** * Set whether the status bar overlays the main app view. The default * is true. diff --git a/src/@ionic-native/plugins/stepcounter/index.ts b/src/@ionic-native/plugins/stepcounter/index.ts index d524fa8a6..efcb3a5b3 100644 --- a/src/@ionic-native/plugins/stepcounter/index.ts +++ b/src/@ionic-native/plugins/stepcounter/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Stepcounter * @description @@ -32,7 +32,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android'] }) @Injectable() -export class Stepcounter { +export class Stepcounter extends IonicNativePlugin { /** * Start the step counter diff --git a/src/@ionic-native/plugins/streaming-media/index.ts b/src/@ionic-native/plugins/streaming-media/index.ts index f48a20f42..ec32c3922 100644 --- a/src/@ionic-native/plugins/streaming-media/index.ts +++ b/src/@ionic-native/plugins/streaming-media/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface StreamingVideoOptions { successCallback?: Function; @@ -48,7 +48,7 @@ export interface StreamingAudioOptions { platforms: ['Android', 'iOS'] }) @Injectable() -export class StreamingMedia { +export class StreamingMedia extends IonicNativePlugin { /** * Streams a video * @param videoUrl {string} The URL of the video diff --git a/src/@ionic-native/plugins/stripe/index.ts b/src/@ionic-native/plugins/stripe/index.ts index d90c3b41d..d46dc9e46 100644 --- a/src/@ionic-native/plugins/stripe/index.ts +++ b/src/@ionic-native/plugins/stripe/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import {Plugin, Cordova} from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface StripeCardTokenParams { /** @@ -117,7 +117,7 @@ export interface StripeBankAccountParams { repo: 'https://github.com/zyramedia/cordova-plugin-stripe' }) @Injectable() -export class Stripe { +export class Stripe extends IonicNativePlugin { /** * Set publishable key diff --git a/src/@ionic-native/plugins/taptic-engine/index.ts b/src/@ionic-native/plugins/taptic-engine/index.ts index c58065f45..c9ad3e26b 100644 --- a/src/@ionic-native/plugins/taptic-engine/index.ts +++ b/src/@ionic-native/plugins/taptic-engine/index.ts @@ -1,4 +1,4 @@ -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; /** @@ -32,7 +32,7 @@ import { Injectable } from '@angular/core'; platforms: ['iOS'] }) @Injectable() -export class TapticEngine { +export class TapticEngine extends IonicNativePlugin { /** * Use selection feedback generators to indicate a change in selection. diff --git a/src/@ionic-native/plugins/text-to-speech/index.ts b/src/@ionic-native/plugins/text-to-speech/index.ts index 19b127c37..33f297655 100644 --- a/src/@ionic-native/plugins/text-to-speech/index.ts +++ b/src/@ionic-native/plugins/text-to-speech/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface TTSOptions { /** text to speak */ @@ -38,7 +38,7 @@ export interface TTSOptions { repo: 'https://github.com/vilic/cordova-plugin-tts' }) @Injectable() -export class TextToSpeech { +export class TextToSpeech extends IonicNativePlugin { /** * This function speaks diff --git a/src/@ionic-native/plugins/themeable-browser/index.ts b/src/@ionic-native/plugins/themeable-browser/index.ts index c4f651b22..8c9761bcc 100644 --- a/src/@ionic-native/plugins/themeable-browser/index.ts +++ b/src/@ionic-native/plugins/themeable-browser/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, CordovaInstance, InstanceCheck } from '@ionic-native/core'; +import { Plugin, CordovaInstance, InstanceCheck, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var cordova: any; @@ -226,7 +226,7 @@ export class ThemeableBrowserObject { repo: 'https://github.com/initialxy/cordova-plugin-themeablebrowser' }) @Injectable() -export class ThemeableBrowser { +export class ThemeableBrowser extends IonicNativePlugin { /** * Creates a browser instance diff --git a/src/@ionic-native/plugins/three-dee-touch/index.ts b/src/@ionic-native/plugins/three-dee-touch/index.ts index 7268f07fa..b955ab0c7 100644 --- a/src/@ionic-native/plugins/three-dee-touch/index.ts +++ b/src/@ionic-native/plugins/three-dee-touch/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; @@ -130,7 +130,7 @@ export interface ThreeDeeTouchForceTouch { platforms: ['iOS'] }) @Injectable() -export class ThreeDeeTouch { +export class ThreeDeeTouch extends IonicNativePlugin { /** * You need an iPhone 6S or some future tech to use the features of this plugin, so you can check at runtime if the user's device is supported. diff --git a/src/@ionic-native/plugins/toast/index.ts b/src/@ionic-native/plugins/toast/index.ts index f9ef0a793..4de12adc6 100644 --- a/src/@ionic-native/plugins/toast/index.ts +++ b/src/@ionic-native/plugins/toast/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface ToastOptions { @@ -68,7 +68,7 @@ export interface ToastOptions { platforms: ['Android', 'iOS', 'Windows Phone 8'] }) @Injectable() -export class Toast { +export class Toast extends IonicNativePlugin { /** * Show a native toast for the given duration at the specified position. diff --git a/src/@ionic-native/plugins/touch-id/index.ts b/src/@ionic-native/plugins/touch-id/index.ts index 24ebc3f52..d6551fbdc 100644 --- a/src/@ionic-native/plugins/touch-id/index.ts +++ b/src/@ionic-native/plugins/touch-id/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** @@ -51,7 +51,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['iOS'] }) @Injectable() -export class TouchID { +export class TouchID extends IonicNativePlugin { /** * Checks Whether TouchID is available or not. diff --git a/src/@ionic-native/plugins/transfer/index.ts b/src/@ionic-native/plugins/transfer/index.ts index b5dba36d7..2d063a117 100644 --- a/src/@ionic-native/plugins/transfer/index.ts +++ b/src/@ionic-native/plugins/transfer/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CordovaInstance, Plugin, InstanceCheck, checkAvailability } from '@ionic-native/core'; +import { CordovaInstance, Plugin, InstanceCheck, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; declare var FileTransfer; @@ -179,7 +179,7 @@ export interface FileTransferError { repo: 'https://github.com/apache/cordova-plugin-file-transfer' }) @Injectable() -export class Transfer { +export class Transfer extends IonicNativePlugin { /** * Error code rejected from upload with FileTransferError diff --git a/src/@ionic-native/plugins/twitter-connect/index.ts b/src/@ionic-native/plugins/twitter-connect/index.ts index 653e8e662..54e2eb8bd 100644 --- a/src/@ionic-native/plugins/twitter-connect/index.ts +++ b/src/@ionic-native/plugins/twitter-connect/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface TwitterConnectResponse { /** @@ -60,7 +60,7 @@ export interface TwitterConnectResponse { installVariables: ['FABRIC_KEY'] }) @Injectable() -export class TwitterConnect { +export class TwitterConnect extends IonicNativePlugin { /** * Logs in * @returns {Promise} returns a promise that resolves if logged in and rejects if failed to login diff --git a/src/@ionic-native/plugins/unique-device-id/index.ts b/src/@ionic-native/plugins/unique-device-id/index.ts index 1674c9689..7ebb05a78 100644 --- a/src/@ionic-native/plugins/unique-device-id/index.ts +++ b/src/@ionic-native/plugins/unique-device-id/index.ts @@ -1,4 +1,4 @@ -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; /** @@ -27,7 +27,7 @@ import { Injectable } from '@angular/core'; repo: 'https://github.com/Paldom/UniqueDeviceID' }) @Injectable() -export class UniqueDeviceID { +export class UniqueDeviceID extends IonicNativePlugin { /** * Gets a unique, cross-install, app-specific device id. diff --git a/src/@ionic-native/plugins/vibration/index.ts b/src/@ionic-native/plugins/vibration/index.ts index 354910869..54213e8fd 100644 --- a/src/@ionic-native/plugins/vibration/index.ts +++ b/src/@ionic-native/plugins/vibration/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** @@ -36,7 +36,7 @@ import { Cordova, Plugin } from '@ionic-native/core'; platforms: ['Android', 'iOS', 'Windows 8.1 Phone', 'Windows 8.1', 'Windows 10'] }) @Injectable() -export class Vibration { +export class Vibration extends IonicNativePlugin { /** * Vibrates the device for given amount of time. diff --git a/src/@ionic-native/plugins/video-editor/index.ts b/src/@ionic-native/plugins/video-editor/index.ts index 37293c02f..000c85f8b 100644 --- a/src/@ionic-native/plugins/video-editor/index.ts +++ b/src/@ionic-native/plugins/video-editor/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface TranscodeOptions { @@ -155,7 +155,7 @@ export interface VideoInfo { platforms: ['Android', 'iOS', 'Windows Phone 8'] }) @Injectable() -export class VideoEditor { +export class VideoEditor extends IonicNativePlugin { OptimizeForNetworkUse = { NO: 0, diff --git a/src/@ionic-native/plugins/video-player/index.ts b/src/@ionic-native/plugins/video-player/index.ts index 920a0229c..f38a6829c 100644 --- a/src/@ionic-native/plugins/video-player/index.ts +++ b/src/@ionic-native/plugins/video-player/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * Options for the video playback using the `play` function. @@ -51,7 +51,7 @@ export interface VideoOptions { platforms: ['Android'] }) @Injectable() -export class VideoPlayer { +export class VideoPlayer extends IonicNativePlugin { /** * Plays the video from the passed url. diff --git a/src/@ionic-native/plugins/web-intent/index.ts b/src/@ionic-native/plugins/web-intent/index.ts index 0a0bb3ebf..3811df694 100644 --- a/src/@ionic-native/plugins/web-intent/index.ts +++ b/src/@ionic-native/plugins/web-intent/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, Plugin } from '@ionic-native/core'; +import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var window; @@ -35,7 +35,7 @@ declare var window; platforms: ['Android'] }) @Injectable() -export class WebIntent { +export class WebIntent extends IonicNativePlugin { /** * Convenience constant for actions diff --git a/src/@ionic-native/plugins/youtube-video-player/index.ts b/src/@ionic-native/plugins/youtube-video-player/index.ts index b4e453291..8d84633e8 100644 --- a/src/@ionic-native/plugins/youtube-video-player/index.ts +++ b/src/@ionic-native/plugins/youtube-video-player/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Youtube Video Player * @description @@ -26,7 +26,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; platforms: ['Android', 'iOS'] }) @Injectable() -export class YoutubeVideoPlayer { +export class YoutubeVideoPlayer extends IonicNativePlugin { /** * Plays a YouTube video * @param videoId {string} Video ID diff --git a/src/@ionic-native/plugins/zbar/index.ts b/src/@ionic-native/plugins/zbar/index.ts index 5ac42e8fd..e508ebe9c 100644 --- a/src/@ionic-native/plugins/zbar/index.ts +++ b/src/@ionic-native/plugins/zbar/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface ZBarOptions { /** @@ -76,7 +76,7 @@ export interface ZBarOptions { platforms: ['Android', 'iOS'] }) @Injectable() -export class ZBar { +export class ZBar extends IonicNativePlugin { /** * Open the scanner diff --git a/src/@ionic-native/plugins/zeroconf/index.ts b/src/@ionic-native/plugins/zeroconf/index.ts index e2004b1e8..358c2a4a8 100644 --- a/src/@ionic-native/plugins/zeroconf/index.ts +++ b/src/@ionic-native/plugins/zeroconf/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface ZeroconfService { @@ -58,7 +58,7 @@ export interface ZeroconfResult { repo: 'https://github.com/becvert/cordova-plugin-zeroconf' }) @Injectable() -export class Zeroconf { +export class Zeroconf extends IonicNativePlugin { /** * Returns this device's hostname. * @return {Promise} diff --git a/src/@ionic-native/plugins/zip/index.ts b/src/@ionic-native/plugins/zip/index.ts index 50489ce2a..b6239da35 100644 --- a/src/@ionic-native/plugins/zip/index.ts +++ b/src/@ionic-native/plugins/zip/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Zip @@ -29,7 +29,7 @@ import { Plugin, Cordova } from '@ionic-native/core'; repo: 'https://github.com/MobileChromeApps/cordova-plugin-zip', }) @Injectable() -export class Zip { +export class Zip extends IonicNativePlugin { /** * Extracts files from a ZIP archive