Revert "refactor: optimize plugins for angular treeshaking"

This reverts commit 8b53c04dc5.
This commit is contained in:
Daniel Sogl 2019-02-20 17:37:39 +01:00
parent 6fde61d69c
commit fcda5ffcab
238 changed files with 245 additions and 735 deletions

View File

@ -301,9 +301,7 @@ export interface DataCaptureResult {
install: 'ionic cordova plugin add cordova-plugin-abbyy-rtr-sdk',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AbbyyRTR extends IonicNativePlugin {
/**
* Opens a modal dialog with controls for the Text Capture scenario.

View File

@ -95,9 +95,7 @@ export interface ActionSheetOptions {
repo: 'https://github.com/EddyVerbruggen/cordova-plugin-actionsheet',
platforms: ['Android', 'Browser', 'iOS', 'Windows', 'Windows Phone 8']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class ActionSheet extends IonicNativePlugin {
/**
* Convenience property to select an Android theme value

View File

@ -295,9 +295,7 @@ export enum AdjustLogLevel {
repo: 'https://github.com/adjust/cordova_sdk',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Adjust extends IonicNativePlugin {
/**
* This method initializes Adjust SDK

View File

@ -114,9 +114,7 @@ export interface AdMobFreeRewardVideoConfig {
repo: 'https://github.com/ratson/cordova-plugin-admob-free',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AdMobFree extends IonicNativePlugin {
/**
* Convenience object to get event names

View File

@ -72,9 +72,7 @@ export class RewardVideo {
pluginRef: 'admob',
repo: 'https://github.com/admob-plus/admob-plus',
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AdMob extends IonicNativePlugin {
banner = new Banner();
interstitial = new Interstitial();

View File

@ -140,9 +140,7 @@ export interface AdExtras {
repo: 'https://github.com/floatinghotpot/cordova-admob-pro',
platforms: ['Android', 'iOS', 'Windows Phone 8']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AdMobPro extends IonicNativePlugin {
AD_POSITION: {
NO_CHANGE: number;

View File

@ -239,9 +239,7 @@ export interface AdmobOptions {
repo: 'https://github.com/appfeel/admob-google-cordova',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Admob extends IonicNativePlugin {
/**
* This enum represents AdMob's supported ad sizes.

View File

@ -54,9 +54,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
platforms: ['Android', 'iOS'],
install: 'ionic cordova plugin add cordova-plugin-aes256-encryption'
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AES256 extends IonicNativePlugin {
/**
* This function used to perform the aes256 encryption

View File

@ -36,9 +36,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
installVariables: ['APP_ID'],
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Alipay extends IonicNativePlugin {
/**
* Open Alipay to perform App pay

View File

@ -60,9 +60,7 @@ import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-nati
repo: 'https://github.com/appfeel/analytics-google',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AnalyticsFirebase extends IonicNativePlugin {
/**
* This enum represents AnalyticsFirebase default events.

View File

@ -180,9 +180,7 @@ export interface AndroidExoPlayerControllerConfig {
repo: 'https://github.com/frontyard/cordova-plugin-exoplayer',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AndroidExoplayer extends IonicNativePlugin {
/**
* Show the player.

View File

@ -157,9 +157,7 @@ export interface AFADeleteOptions {
repo: 'https://github.com/mjwheatley/cordova-plugin-android-fingerprint-auth',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AndroidFingerprintAuth extends IonicNativePlugin {
/**
* Convenience property containing all possible errors

View File

@ -55,9 +55,7 @@ export enum AndroidSystemUiFlags {
repo: 'https://github.com/mesmotronic/cordova-plugin-fullscreen',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AndroidFullScreen extends IonicNativePlugin {
/**
* Is this plugin supported?

View File

@ -35,9 +35,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/NeoLSN/cordova-plugin-android-permissions',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AndroidPermissions extends IonicNativePlugin {
PERMISSION: any = {
ACCESS_CHECKIN_PROPERTIES: 'android.permission.ACCESS_CHECKIN_PROPERTIES',

View File

@ -39,9 +39,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/ohh2ahh/AppAvailability',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AppAvailability extends IonicNativePlugin {
/**

View File

@ -42,9 +42,7 @@ export interface StringMap {
'https://github.com/Microsoft/appcenter-sdk-cordova/tree/master/cordova-plugin-appcenter-analytics',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AppCenterAnalytics extends IonicNativePlugin {
/**
* Tracks an custom event.

View File

@ -66,9 +66,7 @@ export interface AppCenterCrashReportDevice {
'https://github.com/Microsoft/appcenter-sdk-cordova/tree/master/cordova-plugin-appcenter-crashes',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AppCenterCrashes extends IonicNativePlugin {
/**
* App Center Crashes provides you with an API to generate a test crash for easy testing of the SDK.

View File

@ -33,9 +33,7 @@ import { Observable } from 'rxjs';
'https://github.com/Microsoft/appcenter-sdk-cordova/tree/master/cordova-plugin-appcenter-push',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AppCenterPush extends IonicNativePlugin {
/**
* Subscribe to an event

View File

@ -42,9 +42,7 @@ export interface AppLauncherOptions {
repo: 'https://github.com/nchutchind/cordova-plugin-app-launcher',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AppLauncher extends IonicNativePlugin {
/**
* Check if any apps are installed that can launch via a specified URI or Package Name.

View File

@ -29,9 +29,7 @@ import { Injectable } from '@angular/core';
repo: 'https://github.com/tomloprod/cordova-plugin-appminimize',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AppMinimize extends IonicNativePlugin {
/**

View File

@ -35,9 +35,7 @@ import { Injectable } from '@angular/core';
'Windows Phone'
]
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AppPreferences extends IonicNativePlugin {
/**
* Get a preference value

View File

@ -175,9 +175,7 @@ export interface AppUrls {
repo: 'https://github.com/pushandplay/cordova-plugin-apprate',
platforms: ['Android', 'BlackBerry 10', 'iOS', 'Windows']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AppRate extends IonicNativePlugin {
/**
* Configure various settings for the Rating View.

View File

@ -47,9 +47,7 @@ export interface AppUpdateOptions {
repo: 'https://github.com/vaenow/cordova-plugin-app-update',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AppUpdate extends IonicNativePlugin {
/**
* Check and update

View File

@ -32,9 +32,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/whiteoctober/cordova-plugin-app-version',
platforms: ['Android', 'iOS', 'Windows']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AppVersion extends IonicNativePlugin {
/**

View File

@ -153,9 +153,7 @@ export interface ISelectedShippingContact {
repo: 'https://github.com/samkelleher/cordova-plugin-applepay',
platforms: ['iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class ApplePay extends IonicNativePlugin {
/**
* Detects if the current device supports Apple Pay and has any capable cards registered.

View File

@ -132,9 +132,7 @@ export interface CardPrimarySuffixData {
repo: 'https://github.com/tomavic/cordova-apple-wallet',
platforms: ['iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AppleWallet extends IonicNativePlugin {
/**
* Simple call to determine if the current device supports Apple Pay and has a supported card installed.

View File

@ -27,9 +27,7 @@ import { Observable } from 'rxjs';
repo: 'https://github.com/appodeal/appodeal-cordova-plugin',
platforms: ['iOS', 'Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Appodeal extends IonicNativePlugin {
// available types of advertisements
readonly AD_TYPES = {

View File

@ -77,9 +77,7 @@ export interface AppsflyerInviteOptions {
platforms: ['iOS', 'Android'],
install: 'Add to config.xml like stated on github and then start'
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Appsflyer extends IonicNativePlugin {
/**
* initialize the SDK

View File

@ -47,9 +47,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/clovelCed/cordova-plugin-audiomanagement',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class AudioManagement extends IonicNativePlugin {
/**
* Sets the `AudioManagement.AudioMode` for the device.

View File

@ -29,9 +29,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/ToniKorin/cordova-plugin-autostart',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Autostart extends IonicNativePlugin {
/**

View File

@ -59,9 +59,7 @@ export interface BackgroundFetchConfig {
repo: 'https://github.com/transistorsoft/cordova-plugin-background-fetch',
platforms: ['iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BackgroundFetch extends IonicNativePlugin {

View File

@ -545,9 +545,7 @@ export declare enum BackgroundGeolocationIOSActivity {
repo: 'https://github.com/mauron85/cordova-plugin-background-geolocation',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BackgroundGeolocation extends IonicNativePlugin {
/**
* Configure the plugin.

View File

@ -76,9 +76,7 @@ export interface BackgroundModeConfiguration {
repo: 'https://github.com/katzer/cordova-plugin-background-mode',
platforms: ['AmazonFire OS', 'Android', 'Browser', 'iOS', 'Windows']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BackgroundMode extends IonicNativePlugin {
/**
* Enable the background mode.

View File

@ -31,9 +31,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/mebibou/cordova-plugin-backlight',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Backlight extends IonicNativePlugin {
/**

View File

@ -28,9 +28,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/katzer/cordova-plugin-badge',
platforms: ['Android', 'Browser', 'iOS', 'Windows']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Badge extends IonicNativePlugin {
/**
* Clear the badge of the app icon.

View File

@ -108,9 +108,7 @@ export interface NotificationData {
repo: 'https://github.com/Ti-webdev/cordova-plugin-push-baidu.git',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BaiduPush extends IonicNativePlugin {
/**
* This method registers the device to Baidu Cloud Push services.

View File

@ -108,9 +108,7 @@ export interface BarcodeScanResult {
repo: 'https://github.com/phonegap/phonegap-plugin-barcodescanner',
platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'Windows']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BarcodeScanner extends IonicNativePlugin {
Encode: {
TEXT_TYPE: string;

View File

@ -39,9 +39,7 @@ export interface Base64ToGalleryOptions {
repo: 'https://github.com/Nexxa/cordova-base64-to-gallery',
platforms: ['Android', 'iOS', 'Windows Phone 8']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Base64ToGallery extends IonicNativePlugin {
/**
* Converts a base64 string to an image file in the device gallery

View File

@ -31,9 +31,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/hazemhagrass/phonegap-base64',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Base64 extends IonicNativePlugin {
/**

View File

@ -47,9 +47,7 @@ export interface BatteryStatusResponse {
repo: 'https://github.com/apache/cordova-plugin-battery-status',
platforms: ['iOS', 'Android', 'Windows', 'Browser']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BatteryStatus extends IonicNativePlugin {
/**
* Watch the change in battery level

View File

@ -182,9 +182,7 @@ export interface BLEScanOptions {
repo: 'https://github.com/don/cordova-plugin-ble-central',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BLE extends IonicNativePlugin {
/**
* Scan and discover BLE peripherals for the specified amount of time.

View File

@ -2749,9 +2749,7 @@ export interface UsdlCombinedRecognizerCtor extends RecognizerCtor<UsdlCombinedR
'ionic cordova plugin add blinkid-cordova --variable CAMERA_USAGE_DESCRIPTION="Enable your camera so that you can scan your ID to validate your account"',
platforms: ['iOS', 'Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BlinkId extends IonicNativePlugin {
/**
* Opens the camera dialog and attempts to scan a barcode/document

View File

@ -59,9 +59,7 @@ export interface BlinkUpWPSOptions {
repo: 'https://github.com/SensorShare/cordova-plugin-blinkup',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BlinkUp extends IonicNativePlugin {
/**
* startBlinkUp - starts the blinkup process

View File

@ -425,9 +425,7 @@ export interface AdapterInfo {
installVariables: [], // OPTIONAL the plugin requires variables
platforms: ['Android', 'iOS'] // Array of platforms supported, example: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BluetoothLE extends IonicNativePlugin {
/**
* @name initialize

View File

@ -37,9 +37,7 @@ import { Observable } from 'rxjs';
pluginRef: 'bluetoothSerial',
platforms: ['Android', 'iOS', 'Windows Phone 8']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BluetoothSerial extends IonicNativePlugin {
/**
* Connect to a Bluetooth device

View File

@ -204,9 +204,7 @@ export interface PaymentUIResult {
'ionic cordova plugin add https://github.com/taracque/cordova-plugin-braintree',
installVariables: []
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Braintree extends IonicNativePlugin {
/**
* Used to initialize the Braintree client. This function must be called before other methods can be used.

View File

@ -82,9 +82,7 @@ export interface BranchUniversalObject {
'https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking',
platforms: ['iOS', 'Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BranchIo extends IonicNativePlugin {
/**
* for development and debugging only

View File

@ -28,9 +28,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/mgcrea/cordova-plugin-brightness',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Brightness extends IonicNativePlugin {
/**
* Sets the brightness of the display.

View File

@ -30,9 +30,7 @@ import { Observable } from 'rxjs';
repo: 'https://github.com/bsorrentino/cordova-broadcaster',
platforms: ['Android', 'iOS', 'Browser']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Broadcaster extends IonicNativePlugin {
/**
* This function listen to an event sent from the native code

View File

@ -31,9 +31,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/google/cordova-plugin-browsertab',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class BrowserTab extends IonicNativePlugin {
/**
* Check if BrowserTab option is available

View File

@ -87,9 +87,7 @@ export interface NameOrOptions {
repo: 'https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Calendar extends IonicNativePlugin {
/**
* This function checks if we have permission to read/write from/to the calendar.

View File

@ -48,9 +48,7 @@ export interface CallDirectoryLog {
installVariables: ['EXT_NAME', 'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'],
platforms: ['iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class CallDirectory extends IonicNativePlugin {
/**

View File

@ -31,9 +31,7 @@ export interface CallLogObject {
repo: 'https://github.com/creacore-team/cordova-plugin-calllog',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class CallLog extends IonicNativePlugin {
/**
* This function return the call logs

View File

@ -29,9 +29,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/Rohfosho/CordovaCallNumberPlugin',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class CallNumber extends IonicNativePlugin {
/**
* Calls a phone number

View File

@ -138,9 +138,7 @@ export interface CameraPreviewPictureOptions {
'https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class CameraPreview extends IonicNativePlugin {
FOCUS_MODE = {
FIXED: 'fixed',

View File

@ -171,9 +171,7 @@ export enum Direction {
repo: 'https://github.com/apache/cordova-plugin-camera',
platforms: ['Android', 'Browser', 'iOS', 'Windows']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Camera extends IonicNativePlugin {
/**
* Constant for possible destination types

View File

@ -173,9 +173,7 @@ export interface CardIOResponse {
repo: 'https://github.com/card-io/card.io-Cordova-Plugin',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class CardIO extends IonicNativePlugin {
/**
* Check whether card scanning is currently available. (May vary by

View File

@ -52,9 +52,7 @@ export interface ChooserResult {
repo: 'https://github.com/cyph/cordova-plugin-chooser',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Chooser extends IonicNativePlugin {
/**
* Displays native prompt for user to select a file.

View File

@ -251,9 +251,7 @@ export interface CCKQuantityItem {
repo: 'https://github.com/sebastianbaar/cordova-plugin-classkit.git',
platforms: ['iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class ClassKit extends IonicNativePlugin {
/**
* Init contexts defined in XML file 'CCK-contexts.xml'

View File

@ -23,9 +23,7 @@ declare var clevertap: any;
repo: 'https://github.com/CleverTap/clevertap-cordova',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class CleverTap extends IonicNativePlugin {
/**
* notify device ready

View File

@ -36,9 +36,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/ihadeed/cordova-clipboard',
platforms: ['Android', 'iOS', 'Windows Phone 8']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Clipboard extends IonicNativePlugin {
/**
* Copies the given text

View File

@ -38,9 +38,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
installVariables: ['ANDROID_BACKUP_SERVICE_KEY'],
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class CloudSettings extends IonicNativePlugin {
/**
* Indicates if any stored cloud settings currently exist for the current user.

View File

@ -486,9 +486,7 @@ export interface DownloadProgress {
repo: 'https://github.com/Microsoft/cordova-plugin-code-push',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class CodePush extends IonicNativePlugin {
/**
* Get the current package information.

View File

@ -32,9 +32,7 @@ import { Observable } from 'rxjs';
repo: 'https://github.com/TobyEb/cordova-plugin-colored-browser-tabs',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class ColoredBrowserTabs extends IonicNativePlugin {
/**
* Call this method to open the tab

View File

@ -118,9 +118,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/couchbaselabs/Couchbase-Lite-PhoneGap-Plugin',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class CouchbaseLite extends IonicNativePlugin {
/**
* Get the database url

View File

@ -34,9 +34,7 @@ export interface CropOptions {
repo: 'https://github.com/jeduan/cordova-plugin-crop',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Crop extends IonicNativePlugin {
/**
* Crops an image

View File

@ -152,9 +152,7 @@ export interface DatePickerOptions {
repo: 'https://github.com/VitaliiBlagodir/cordova-plugin-datepicker',
platforms: ['Android', 'iOS', 'Windows']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class DatePicker extends IonicNativePlugin {
/**
* @hidden

View File

@ -41,9 +41,7 @@ import { Observable } from 'rxjs';
repo: 'https://github.com/akofman/cordova-plugin-dbmeter',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class DBMeter extends IonicNativePlugin {
/**
* Starts listening

View File

@ -93,9 +93,7 @@ export interface DeeplinkOptions {
],
platforms: ['Android', 'Browser', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Deeplinks extends IonicNativePlugin {
/**
* Define a set of paths to match against incoming deeplinks.

View File

@ -40,9 +40,7 @@ export interface AndroidAccount {
repo: 'https://github.com/danielsogl/cordova-device-accounts',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class DeviceAccounts extends IonicNativePlugin {
/**
* Gets all accounts registered on the Android Device

View File

@ -47,9 +47,7 @@ export interface DeviceFeedbackStatus {
repo: 'https://github.com/VVelda/device-feedback',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class DeviceFeedback extends IonicNativePlugin {
/**
* Provide sound feedback to user, nevertheless respect user's settings and current active device profile as native feedback do.

View File

@ -80,9 +80,7 @@ export interface DeviceMotionAccelerometerOptions {
'Windows Phone 8'
]
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class DeviceMotion extends IonicNativePlugin {
/**
* Get the current acceleration along the x, y, and z axes.

View File

@ -86,9 +86,7 @@ export interface DeviceOrientationCompassOptions {
'Windows Phone'
]
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class DeviceOrientation extends IonicNativePlugin {
/**
* Get the current compass heading.

View File

@ -26,9 +26,7 @@ declare const window: any;
repo: 'https://github.com/apache/cordova-plugin-device',
platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Device extends IonicNativePlugin {
/** Get the version of Cordova running on the device. */

View File

@ -41,9 +41,7 @@ import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-nati
repo: 'https://github.com/dpa99c/cordova-diagnostic-plugin',
platforms: ['Android', 'iOS', 'Windows']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Diagnostic extends IonicNativePlugin {
permission = {
READ_CALENDAR: 'READ_CALENDAR',

View File

@ -44,9 +44,7 @@ export interface DialogsPromptCallback {
repo: 'https://github.com/apache/cordova-plugin-dialogs',
platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Dialogs extends IonicNativePlugin {
/**
* Shows a custom alert or dialog box.

View File

@ -28,9 +28,7 @@ import { Injectable } from '@angular/core';
repo: 'https://bitbucket.org/zegeba/cordova-plugin-dns',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class DNS extends IonicNativePlugin {
/**
* Resolve hostnames into an underlying network address.

View File

@ -29,9 +29,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/iampossible/Cordova-DocPicker',
platforms: ['iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class DocumentPicker extends IonicNativePlugin {
/**
* Open a file

View File

@ -60,9 +60,7 @@ export interface DocumentViewerOptions {
repo: 'https://github.com/sitewaerts/cordova-plugin-document-viewer',
platforms: ['Android', 'iOS', 'Windows']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class DocumentViewer extends IonicNativePlugin {
/**

View File

@ -111,9 +111,7 @@ export interface DownloadRequest {
repo: 'https://github.com/Luka313/integrator-cordova-plugin-downloader.git',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Downloader extends IonicNativePlugin {
/**
* Starts a new download and returns location of the downloaded file on completion

View File

@ -116,9 +116,7 @@ export interface EmailComposerOptions {
repo: 'https://github.com/katzer/cordova-plugin-email-composer',
platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows', 'macOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class EmailComposer extends IonicNativePlugin {
/**
* Checks if the app has a permission to access email accounts information

View File

@ -44,9 +44,7 @@ export interface EstimoteBeaconRegion {
repo: 'https://github.com/evothings/phonegap-estimotebeacons',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class EstimoteBeacons extends IonicNativePlugin {
/** Proximity value */
ProximityUnknown = 0;

View File

@ -30,9 +30,7 @@ import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core';
'https://github.com/danielehrhardt/cordova-plugin-extended-device-information',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class ExtendedDeviceInformation extends IonicNativePlugin {
/**
* Get the device's memory size

View File

@ -40,9 +40,7 @@ export interface Attributes {
installVariables: ['FABRIC_API_KEY', 'FABRIC_API_SECRET'],
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Crashlytics extends IonicNativePlugin {
/**
* Add logging that will be sent with your crash data. This logging will not show up
@ -165,9 +163,7 @@ export class Crashlytics extends IonicNativePlugin {
installVariables: ['FABRIC_API_KEY', 'FABRIC_API_SECRET'],
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Answers extends IonicNativePlugin {
/**
* Sends the Purchase tracking event.

View File

@ -115,9 +115,7 @@ export interface FacebookLoginResponse {
installVariables: ['APP_ID', 'APP_NAME'],
platforms: ['Android', 'iOS', 'Browser']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class Facebook extends IonicNativePlugin {
EVENTS: {
EVENT_NAME_ACTIVATED_APP: 'fb_mobile_activate_app';

View File

@ -60,9 +60,7 @@ export interface NotificationData {
repo: 'https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FCM extends IonicNativePlugin {
/**
* Gets device's current registration id

View File

@ -28,9 +28,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/ihadeed/cordova-filechooser',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FileChooser extends IonicNativePlugin {
/**

View File

@ -28,9 +28,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/disusered/cordova-safe',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FileEncryption extends IonicNativePlugin {
/**
* Encrypt a file

View File

@ -27,9 +27,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/pwlin/cordova-plugin-file-opener2',
platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FileOpener extends IonicNativePlugin {
/**
* Open an file

View File

@ -30,9 +30,7 @@ declare const window: any;
repo: 'https://github.com/hiddentao/cordova-plugin-filepath',
platforms: ['Android']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FilePath extends IonicNativePlugin {
/**
* Resolve native path for given content URL/path.

View File

@ -37,9 +37,7 @@ export interface IOSFilePickerPosition {
repo: 'https://github.com/jcesarmobile/FilePicker-Phonegap-iOS-Plugin',
platforms: ['iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class IOSFilePicker extends IonicNativePlugin {
/**
* Open a file

View File

@ -189,9 +189,7 @@ export interface FileTransferError {
'Windows Phone'
]
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FileTransfer extends IonicNativePlugin {
/**
* Error code rejected from upload with FileTransferError

View File

@ -708,9 +708,7 @@ declare const window: Window;
repo: 'https://github.com/apache/cordova-plugin-file',
platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class File extends IonicNativePlugin {
/**
* Read-only directory where the application is installed.

View File

@ -63,9 +63,7 @@ export interface FingerprintOptions {
repo: 'https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FingerprintAIO extends IonicNativePlugin {
/**
* Check if fingerprint authentication is available

View File

@ -33,9 +33,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/chemerisuk/cordova-plugin-firebase-analytics',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FirebaseAnalytics extends IonicNativePlugin {
/**
* Logs an app event.

View File

@ -32,9 +32,7 @@ import { Observable } from 'rxjs';
installVariables: ['FIREBASE_AUTH_VERSION'],
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FirebaseAuthentication extends IonicNativePlugin {
/**
* Returns a JWT token used to identify the user to a Firebase service.

View File

@ -30,9 +30,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
repo: 'https://github.com/chemerisuk/cordova-plugin-firebase-config',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FirebaseConfig extends IonicNativePlugin {
/**
* Fetches remote config values with appropriate TTL and then activates them.

View File

@ -30,9 +30,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
installVariables: ['ANDROID_FIREBASE_CORE_VERSION'],
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FirebaseCrashlytics extends IonicNativePlugin {
/**
* Simply add the plugin to get the default Crashlytics functionality. Note that crashes and logged exceptions will only be reported when the application restarts. In order to log caught exceptions the following can be used:

View File

@ -56,9 +56,7 @@ export interface IDynamicLink {
installVariables: ['APP_DOMAIN', 'APP_PATH'],
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FirebaseDynamicLinks extends IonicNativePlugin {
/**
* Registers callback that is triggered on each dynamic link click.

View File

@ -38,9 +38,7 @@ export interface IFirebaseMessage {
repo: 'https://github.com/chemerisuk/cordova-plugin-firebase-messaging',
platforms: ['Android', 'iOS']
})
@Injectable({
providedIn: 'root'
})
@Injectable()
export class FirebaseMessaging extends IonicNativePlugin {
/**
* Called when a push message received while app is in foreground.

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