From 511a02d50b77c91edd64d1fb4b797efa5073e78e Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 16 May 2020 14:40:49 +0200 Subject: [PATCH] refactor(lib): run prettier --- DEVELOPER.md | 65 +- README.md | 62 +- gulpfile.js | 4 +- scripts/build/helpers.ts | 26 +- scripts/build/ngx.ts | 46 +- .../build/transformers/extract-injectables.ts | 2 +- scripts/build/transformers/imports.ts | 16 +- scripts/build/transformers/members.ts | 4 - scripts/build/transformers/methods.ts | 43 +- scripts/build/transformers/plugin-class.ts | 23 +- scripts/build/transformers/properties.ts | 19 +- scripts/build/transpile.ts | 31 +- scripts/docs-json/index.ts | 15 +- scripts/docs-json/readme.md | 2 +- scripts/docs/dgeni/configs/links.js | 2 +- scripts/docs/dgeni/configs/log.js | 2 +- scripts/docs/dgeni/configs/tag-defs.js | 5 +- .../docs/dgeni/configs/template-filters.js | 4 +- scripts/docs/dgeni/configs/template-tags.js | 2 +- scripts/docs/dgeni/dgeni-config.js | 114 ++- scripts/docs/dgeni/dgeni-readmes-config.js | 105 ++- scripts/docs/dgeni/filters/capital.js | 4 +- scripts/docs/dgeni/filters/code.js | 4 +- scripts/docs/dgeni/filters/dashify.js | 4 +- scripts/docs/dgeni/filters/dump.js | 4 +- scripts/docs/dgeni/processors/debug.js | 40 +- .../docs/dgeni/processors/hide-private-api.js | 4 +- scripts/docs/dgeni/processors/jekyll.js | 15 +- .../docs/dgeni/processors/mark-properties.js | 19 +- scripts/docs/dgeni/processors/npm-id.js | 6 +- .../docs/dgeni/processors/parse-optional.js | 6 +- scripts/docs/dgeni/processors/readmes.js | 4 +- .../processors/remove-private-members.js | 6 +- scripts/docs/dgeni/tag-defs/tag-defs.js | 18 +- .../docs/dgeni/templates/common.template.html | 349 +++----- .../dgeni/templates/native_menu.template.html | 8 +- .../docs/dgeni/templates/readme.template.md | 6 +- scripts/logger.ts | 2 +- scripts/tasks/build-es5.ts | 48 +- scripts/tasks/build-esm.ts | 17 +- scripts/tasks/build-ngx.ts | 8 +- scripts/tasks/publish.ts | 15 +- scripts/tsconfig.json | 4 +- src/@ionic-native/core/decorators/common.ts | 35 +- .../decorators/cordova-function-override.ts | 6 +- .../core/decorators/cordova-instance.ts | 7 +- src/@ionic-native/core/decorators/cordova.ts | 7 +- src/@ionic-native/core/ng1.ts | 2 +- src/@ionic-native/plugins/abbyy-rtr/index.ts | 2 +- .../plugins/action-sheet/index.ts | 4 +- src/@ionic-native/plugins/adjust/index.ts | 18 +- src/@ionic-native/plugins/admob-free/index.ts | 16 +- src/@ionic-native/plugins/admob-plus/index.ts | 126 +-- src/@ionic-native/plugins/admob-pro/index.ts | 26 +- src/@ionic-native/plugins/admob/index.ts | 18 +- src/@ionic-native/plugins/aes-256/index.ts | 3 +- src/@ionic-native/plugins/alipay/index.ts | 2 +- .../plugins/analytics-firebase/index.ts | 2 +- .../plugins/android-exoplayer/index.ts | 9 +- .../plugins/android-fingerprint-auth/index.ts | 4 +- .../plugins/android-full-screen/index.ts | 4 +- .../plugins/android-permissions/index.ts | 31 +- src/@ionic-native/plugins/anyline/index.ts | 2 +- .../plugins/app-availability/index.ts | 4 +- .../plugins/app-center-analytics/index.ts | 5 +- .../plugins/app-center-crashes/index.ts | 5 +- .../plugins/app-center-push/index.ts | 7 +- .../plugins/app-launcher/index.ts | 2 +- .../plugins/app-minimize/index.ts | 4 +- .../plugins/app-preferences/index.ts | 30 +- src/@ionic-native/plugins/app-rate/index.ts | 2 +- src/@ionic-native/plugins/app-update/index.ts | 4 +- .../plugins/app-version/index.ts | 21 +- src/@ionic-native/plugins/apple-pay/index.ts | 38 +- .../plugins/apple-wallet/index.ts | 2 +- src/@ionic-native/plugins/appodeal/index.ts | 54 +- src/@ionic-native/plugins/appsflyer/index.ts | 2 +- .../plugins/audio-management/index.ts | 14 +- src/@ionic-native/plugins/autostart/index.ts | 10 +- .../plugins/background-fetch/index.ts | 14 +- .../plugins/background-geolocation/index.ts | 58 +- .../plugins/background-mode/index.ts | 38 +- src/@ionic-native/plugins/backlight/index.ts | 5 +- src/@ionic-native/plugins/badge/index.ts | 2 +- src/@ionic-native/plugins/baidu-push/index.ts | 2 +- .../plugins/barcode-scanner/index.ts | 6 +- .../plugins/base64-to-gallery/index.ts | 9 +- src/@ionic-native/plugins/base64/index.ts | 4 +- .../plugins/battery-status/index.ts | 8 +- src/@ionic-native/plugins/biocatch/index.ts | 1 - .../plugins/biometric-wrapper/index.ts | 6 +- src/@ionic-native/plugins/ble/index.ts | 44 +- src/@ionic-native/plugins/blinkid/index.ts | 69 +- src/@ionic-native/plugins/blinkup/index.ts | 12 +- .../plugins/bluetooth-le/index.ts | 59 +- .../plugins/bluetooth-serial/index.ts | 40 +- src/@ionic-native/plugins/braintree/index.ts | 15 +- src/@ionic-native/plugins/branch-io/index.ts | 20 +- src/@ionic-native/plugins/brightness/index.ts | 2 +- .../plugins/broadcaster/index.ts | 4 +- .../plugins/browser-tab/index.ts | 2 +- src/@ionic-native/plugins/calendar/index.ts | 45 +- .../plugins/call-directory/index.ts | 6 +- src/@ionic-native/plugins/call-log/index.ts | 6 +- .../plugins/call-number/index.ts | 4 +- .../plugins/camera-preview/index.ts | 36 +- src/@ionic-native/plugins/camera/index.ts | 30 +- src/@ionic-native/plugins/card-io/index.ts | 2 +- src/@ionic-native/plugins/chooser/index.ts | 2 +- src/@ionic-native/plugins/class-kit/index.ts | 8 +- src/@ionic-native/plugins/clevertap/index.ts | 28 +- src/@ionic-native/plugins/clipboard/index.ts | 2 +- .../plugins/cloud-settings/index.ts | 7 +- src/@ionic-native/plugins/clover-go/index.ts | 13 +- src/@ionic-native/plugins/code-push/index.ts | 49 +- .../plugins/colored-browser-tabs/index.ts | 2 +- src/@ionic-native/plugins/contacts/index.ts | 26 +- .../plugins/couchbase-lite/index.ts | 4 +- src/@ionic-native/plugins/crop/index.ts | 4 +- .../plugins/date-picker/index.ts | 4 +- src/@ionic-native/plugins/db-meter/index.ts | 4 +- src/@ionic-native/plugins/deeplinks/index.ts | 19 +- .../plugins/device-accounts/index.ts | 2 +- .../plugins/device-feedback/index.ts | 2 +- .../plugins/device-motion/index.ts | 10 +- .../plugins/device-orientation/index.ts | 10 +- src/@ionic-native/plugins/device/index.ts | 4 +- src/@ionic-native/plugins/diagnostic/index.ts | 28 +- src/@ionic-native/plugins/dialogs/index.ts | 16 +- src/@ionic-native/plugins/dns/index.ts | 2 +- .../plugins/document-picker/index.ts | 2 +- .../plugins/document-scanner/index.ts | 7 +- .../plugins/document-viewer/index.ts | 26 +- src/@ionic-native/plugins/downloader/index.ts | 6 +- .../plugins/email-composer/index.ts | 31 +- .../plugins/emm-app-config/index.ts | 2 - .../plugins/estimote-beacons/index.ts | 35 +- .../extended-device-information/index.ts | 5 +- src/@ionic-native/plugins/fabric/index.ts | 31 +- src/@ionic-native/plugins/facebook/index.ts | 6 +- src/@ionic-native/plugins/fcm/index.ts | 6 +- .../plugins/file-chooser/index.ts | 12 +- .../plugins/file-encryption/index.ts | 2 +- .../plugins/file-opener/index.ts | 10 +- src/@ionic-native/plugins/file-path/index.ts | 2 +- .../plugins/file-picker/index.ts | 9 +- .../plugins/file-transfer/index.ts | 46 +- src/@ionic-native/plugins/file/index.ts | 148 +--- .../plugins/fingerprint-aio/index.ts | 4 +- .../plugins/firebase-analytics/index.ts | 2 +- .../plugins/firebase-authentication/index.ts | 12 +- .../plugins/firebase-crash/index.ts | 2 +- .../plugins/firebase-crashlytics/index.ts | 27 +- .../plugins/firebase-dynamic-links/index.ts | 4 +- .../plugins/firebase-vision/index.ts | 3 +- src/@ionic-native/plugins/firebase-x/index.ts | 128 ++- src/@ionic-native/plugins/firebase/index.ts | 29 +- src/@ionic-native/plugins/flashlight/index.ts | 7 +- .../plugins/flurry-analytics/index.ts | 28 +- .../plugins/foreground-service/index.ts | 7 +- src/@ionic-native/plugins/ftp/index.ts | 6 +- .../plugins/full-screen-image/index.ts | 3 +- .../plugins/gao-de-location/index.ts | 20 +- .../plugins/ge-tui-sdk-plugin/index.ts | 6 +- src/@ionic-native/plugins/geofence/index.ts | 28 +- .../plugins/geolocation/index.ts | 4 +- .../plugins/globalization/index.ts | 36 +- .../plugins/google-analytics/index.ts | 33 +- .../plugins/google-nearby/index.ts | 7 +- .../google-play-games-services/index.ts | 16 - .../plugins/google-plus/index.ts | 6 +- src/@ionic-native/plugins/gyroscope/index.ts | 14 +- src/@ionic-native/plugins/hce/index.ts | 8 +- .../plugins/header-color/index.ts | 6 +- src/@ionic-native/plugins/health-kit/index.ts | 2 +- src/@ionic-native/plugins/health/index.ts | 10 +- .../plugins/hot-code-push/index.ts | 47 +- src/@ionic-native/plugins/hotspot/index.ts | 33 +- src/@ionic-native/plugins/http/index.ts | 4 +- src/@ionic-native/plugins/httpd/index.ts | 4 +- .../plugins/hyper-track/index.ts | 10 +- .../plugins/iamport-cordova/index.ts | 83 +- src/@ionic-native/plugins/ibeacon/index.ts | 122 ++- .../plugins/image-picker/index.ts | 15 +- .../plugins/image-resizer/index.ts | 2 +- .../plugins/in-app-browser/index.ts | 68 +- .../plugins/in-app-purchase-2/index.ts | 34 +- .../plugins/in-app-purchase/index.ts | 23 +- .../plugins/in-app-review/index.ts | 2 +- .../plugins/index-app-content/index.ts | 9 +- src/@ionic-native/plugins/insomnia/index.ts | 5 +- src/@ionic-native/plugins/instagram/index.ts | 10 +- .../plugins/intel-security/index.ts | 18 +- src/@ionic-native/plugins/intercom/index.ts | 3 - .../plugins/ionic-webview/index.ts | 4 +- src/@ionic-native/plugins/is-debug/index.ts | 2 +- src/@ionic-native/plugins/janalytics/index.ts | 5 +- src/@ionic-native/plugins/jins-meme/index.ts | 15 +- src/@ionic-native/plugins/jumio/index.ts | 101 ++- src/@ionic-native/plugins/keyboard/index.ts | 31 +- .../plugins/keychain-touch-id/index.ts | 7 +- src/@ionic-native/plugins/keychain/index.ts | 15 +- .../plugins/kommunicate/index.ts | 48 +- src/@ionic-native/plugins/last-cam/index.ts | 12 +- .../plugins/launch-navigator/index.ts | 19 +- .../plugins/launch-review/index.ts | 4 +- src/@ionic-native/plugins/line-login/index.ts | 5 +- .../plugins/local-notifications/index.ts | 98 +-- .../plugins/location-accuracy/index.ts | 3 +- .../plugins/lottie-splash-screen/index.ts | 4 +- src/@ionic-native/plugins/luxand/index.ts | 8 +- .../plugins/magnetometer/index.ts | 11 +- src/@ionic-native/plugins/market/index.ts | 8 +- .../plugins/media-capture/index.ts | 36 +- src/@ionic-native/plugins/media/index.ts | 36 +- src/@ionic-native/plugins/metrix/index.ts | 304 +++---- src/@ionic-native/plugins/mixpanel/index.ts | 6 +- .../plugins/mlkit-translate/index.ts | 8 +- .../plugins/mobile-accessibility/index.ts | 55 +- .../plugins/mobile-messaging/index.ts | 25 +- src/@ionic-native/plugins/ms-adal/index.ts | 33 +- .../plugins/music-controls/index.ts | 6 +- .../plugins/native-audio/index.ts | 5 +- .../plugins/native-geocoder/index.ts | 19 +- .../plugins/native-keyboard/index.ts | 12 +- .../plugins/native-page-transitions/index.ts | 5 +- .../plugins/native-ringtones/index.ts | 3 +- .../plugins/native-storage/index.ts | 6 +- .../plugins/native-view/index.ts | 22 +- .../plugins/navigation-bar/index.ts | 9 +- .../plugins/network-interface/index.ts | 2 - src/@ionic-native/plugins/network/index.ts | 21 +- src/@ionic-native/plugins/nfc/index.ts | 66 +- src/@ionic-native/plugins/ocr/index.ts | 4 +- src/@ionic-native/plugins/onesignal/index.ts | 30 +- .../plugins/open-native-settings/index.ts | 2 +- src/@ionic-native/plugins/openalpr/index.ts | 4 +- src/@ionic-native/plugins/paypal/index.ts | 17 +- .../plugins/pdf-generator/index.ts | 4 +- src/@ionic-native/plugins/pedometer/index.ts | 11 +- .../phonegap-local-notification/index.ts | 18 +- .../plugins/photo-library/index.ts | 70 +- .../plugins/photo-viewer/index.ts | 2 +- src/@ionic-native/plugins/pin-check/index.ts | 2 +- src/@ionic-native/plugins/pin-dialog/index.ts | 10 +- src/@ionic-native/plugins/pinterest/index.ts | 61 +- .../plugins/power-management/index.ts | 2 +- .../plugins/preview-any-file/index.ts | 2 +- src/@ionic-native/plugins/printer/index.ts | 30 +- .../plugins/pspdfkit-cordova/index.ts | 808 +++++++++--------- src/@ionic-native/plugins/purchases/index.ts | 54 +- src/@ionic-native/plugins/push/index.ts | 22 +- .../plugins/pushape-push/index.ts | 15 +- src/@ionic-native/plugins/qqsdk/index.ts | 20 +- src/@ionic-native/plugins/qr-scanner/index.ts | 18 +- src/@ionic-native/plugins/quikkly/index.ts | 7 +- .../plugins/regula-document-reader/index.ts | 4 +- src/@ionic-native/plugins/rollbar/index.ts | 7 +- .../plugins/safari-view-controller/index.ts | 4 +- .../plugins/screen-orientation/index.ts | 13 +- src/@ionic-native/plugins/screenshot/index.ts | 56 +- .../plugins/secure-storage-echo/index.ts | 26 +- .../plugins/secure-storage/index.ts | 12 +- src/@ionic-native/plugins/sensors/index.ts | 2 - src/@ionic-native/plugins/serial/index.ts | 6 +- .../plugins/service-discovery/index.ts | 4 +- src/@ionic-native/plugins/shake/index.ts | 4 +- .../plugins/shop-checkout/index.ts | 3 +- .../plugins/sign-in-with-apple/index.ts | 4 +- src/@ionic-native/plugins/sim/index.ts | 7 +- .../plugins/siri-shortcuts/index.ts | 2 +- src/@ionic-native/plugins/smartlook/index.ts | 3 +- .../plugins/sms-retriever/index.ts | 18 +- src/@ionic-native/plugins/sms/index.ts | 12 +- .../plugins/social-sharing/index.ts | 74 +- .../plugins/speech-recognition/index.ts | 8 +- src/@ionic-native/plugins/speechkit/index.ts | 20 +- .../plugins/spinner-dialog/index.ts | 14 +- .../plugins/splash-screen/index.ts | 15 +- .../plugins/spotify-auth/index.ts | 8 +- .../plugins/sqlite-db-copy/index.ts | 26 +- .../plugins/sqlite-porter/index.ts | 14 +- src/@ionic-native/plugins/sqlite/index.ts | 25 +- .../plugins/ssh-connect/index.ts | 3 +- src/@ionic-native/plugins/star-prnt/index.ts | 92 +- src/@ionic-native/plugins/status-bar/index.ts | 27 +- .../plugins/stepcounter/index.ts | 3 +- .../plugins/streaming-media/index.ts | 2 +- src/@ionic-native/plugins/stripe/index.ts | 14 +- src/@ionic-native/plugins/sum-up/index.ts | 6 +- .../plugins/taptic-engine/index.ts | 6 +- .../plugins/tealium-adidentifier/index.ts | 2 +- .../plugins/tealium-installreferrer/index.ts | 2 +- src/@ionic-native/plugins/tealium/index.ts | 38 +- .../plugins/text-to-speech/index.ts | 6 +- .../plugins/theme-detection/index.ts | 4 +- .../plugins/themeable-browser/index.ts | 33 +- .../plugins/three-dee-touch/index.ts | 12 +- src/@ionic-native/plugins/toast/index.ts | 18 +- src/@ionic-native/plugins/touch-id/index.ts | 10 +- .../plugins/twitter-connect/index.ts | 5 +- src/@ionic-native/plugins/uid/index.ts | 3 +- .../plugins/unique-device-id/index.ts | 4 +- .../plugins/unvired-cordova-sdk/index.ts | 57 +- src/@ionic-native/plugins/uptime/index.ts | 2 +- .../plugins/urbanairship/index.ts | 9 +- .../plugins/usabilla-cordova-sdk/index.ts | 22 +- src/@ionic-native/plugins/user-agent/index.ts | 4 +- src/@ionic-native/plugins/vibes/index.ts | 13 +- src/@ionic-native/plugins/vibration/index.ts | 9 +- .../plugins/video-capture-plus/index.ts | 9 +- .../plugins/video-editor/index.ts | 14 +- .../plugins/video-player/index.ts | 2 +- src/@ionic-native/plugins/web-intent/index.ts | 16 +- src/@ionic-native/plugins/web-server/index.ts | 8 +- .../plugins/web-socket-server/index.ts | 10 +- src/@ionic-native/plugins/webengage/index.ts | 8 +- src/@ionic-native/plugins/wechat/index.ts | 4 +- .../plugins/wheel-selector/index.ts | 6 +- .../plugins/wifi-wizard-2/index.ts | 74 +- src/@ionic-native/plugins/wonderpush/index.ts | 13 +- .../plugins/youtube-video-player/index.ts | 7 +- src/@ionic-native/plugins/zbar/index.ts | 4 +- src/@ionic-native/plugins/zeroconf/index.ts | 12 +- src/@ionic-native/plugins/zip/index.ts | 6 +- src/@ionic-native/plugins/zoom/index.ts | 47 +- 326 files changed, 3079 insertions(+), 4092 deletions(-) diff --git a/DEVELOPER.md b/DEVELOPER.md index 40f053b16..1e5efac3c 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -2,15 +2,14 @@ This is a short guide on creating new plugin wrappers for Ionic Native. - ## Creating Plugin Wrappers First, let's start by creating a new plugin wrapper from template. - + ``` // Call this command, and replace PluginName with the name of the plugin you wish to add // Make sure to capitalize the first letter, or use CamelCase if necessary. - + gulp plugin:create -n PluginName // add -m flag to get a minimal template to start with @@ -71,7 +70,7 @@ export class Geolocation { Here, `plugin` is the name of the plugin package on npm and used when calling `cordova plugin add`. -`pluginRef` refers to the where on `window` the underlying Cordova plugin is normally exposed. For example, in the case of the Cordova Geolocation plugin, normally you would make calls like `window.navigator.geolocation.getCurrentPosition({}, success, error)`, so the `pluginRef` in this case is `navigator.geolocation`. +`pluginRef` refers to the where on `window` the underlying Cordova plugin is normally exposed. For example, in the case of the Cordova Geolocation plugin, normally you would make calls like `window.navigator.geolocation.getCurrentPosition({}, success, error)`, so the `pluginRef` in this case is `navigator.geolocation`. #### Class Methods @@ -86,7 +85,7 @@ Let's take a look at `getCurrentPosition` first. It's just a stub. The `return` is only there to keep the TypeScript type-checker from complaining since we indicate that `getCurrentPosition` returns a `Promise`. -By default, the `@Cordova` decorator wraps the plugin callbacks in a Promise that resolves when the success callback is called and rejects when the error callback is called. It also ensures that Cordova and the underlying plugin are available, and prints helpful diagnostics if they aren't. +By default, the `@Cordova` decorator wraps the plugin callbacks in a Promise that resolves when the success callback is called and rejects when the error callback is called. It also ensures that Cordova and the underlying plugin are available, and prints helpful diagnostics if they aren't. Next, let's look at the `watchPosition` method. @@ -103,7 +102,7 @@ The `@Cordova` decorator has a few more options now. `observable` indicates that this method may call its callbacks multiple times, so `@Cordova` wraps it in an [`Observable`](https://github.com/ionic-team/ionic-native#promises-and-observables) instead of a Promise. -`callbackOrder` refers to the method signature of the underlying Cordova plugin, and tells Ionic Native which arguments are the callbacks to map to the wrapping Promise or Observable. In this case, the signature is [`watchPosition(success, error, options)`](https://github.com/apache/cordova-plugin-geolocation#navigatorgeolocationwatchposition), so we need to tell `@Cordova` that the callbacks are the first arguments, not the last arguments. For rare cases, you can also specify the options `successIndex` and `errorIndex` to indicate where in the argument list the callbacks are located. +`callbackOrder` refers to the method signature of the underlying Cordova plugin, and tells Ionic Native which arguments are the callbacks to map to the wrapping Promise or Observable. In this case, the signature is [`watchPosition(success, error, options)`](https://github.com/apache/cordova-plugin-geolocation#navigatorgeolocationwatchposition), so we need to tell `@Cordova` that the callbacks are the first arguments, not the last arguments. For rare cases, you can also specify the options `successIndex` and `errorIndex` to indicate where in the argument list the callbacks are located. `clearFunction` is used in conjunction with the `observable` option and indicates the function to be called when the Observable is disposed. @@ -126,42 +125,48 @@ We have very precise rules over how our git commit messages can be formatted. Th `type(scope): subject` #### Type + Must be one of the following: -* **fix**: A bug fix -* **feat**: A new feature -* **docs**: Documentation only changes -* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) -* **refactor**: A code change that neither fixes a bug nor adds a feature -* **perf**: A code change that improves performance -* **test**: Adding missing tests -* **chore**: Changes to the build process or auxiliary tools and libraries such as documentation generation +- **fix**: A bug fix +- **feat**: A new feature +- **docs**: Documentation only changes +- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) +- **refactor**: A code change that neither fixes a bug nor adds a feature +- **perf**: A code change that improves performance +- **test**: Adding missing tests +- **chore**: Changes to the build process or auxiliary tools and libraries such as documentation generation #### Scope + The scope could be anything specifying place of the commit change. For example, the name of the plugin being changed #### Subject + The subject contains succinct description of the change: -* use the imperative, present tense: "change" not "changed" nor "changes" -* do not capitalize first letter -* do not place a period (.) at the end -* entire length of the commit message must not go over 50 characters - +- use the imperative, present tense: "change" not "changed" nor "changes" +- do not capitalize first letter +- do not place a period (.) at the end +- entire length of the commit message must not go over 50 characters ### Ionic Native Decorators #### Plugin + A decorator to wrap the main plugin class, and any other classes that will use `@Cordova` or `@CordovaProperty` decorators. This decorator accepts the following configuration: -- *pluginName*: Plugin name, this should match the class name -- *plugin*: The plugin's NPM package, or Github URL if NPM is not available. -- *pluginRef*: The plugin object reference. Example: 'cordova.file'. -- *repo*: The plugin's Github Repository URL -- *install*: (optional) Install command. This is used in case a plugin has a custom install command (takes variables). -- *platforms*: An array of strings indicating the supported platforms. + +- _pluginName_: Plugin name, this should match the class name +- _plugin_: The plugin's NPM package, or Github URL if NPM is not available. +- _pluginRef_: The plugin object reference. Example: 'cordova.file'. +- _repo_: The plugin's Github Repository URL +- _install_: (optional) Install command. This is used in case a plugin has a custom install command (takes variables). +- _platforms_: An array of strings indicating the supported platforms. #### Cordova + Checks if the plugin and the method are available before executing. By default, the decorator will wrap the callbacks of the function and return a Promise. This decorator takes the following configuration options: + - **observable**: set to true to return an Observable - **clearFunction**: an optional name of a method to clear the observable we returned - **clearWithArgs**: This can be used if clearFunction is set. Set this to true to call the clearFunction with the same arguments used in the initial function. @@ -179,6 +184,7 @@ Checks if the plugin and the method are available before executing. By default, - **platforms**: array of strings indicating supported platforms. Specify this if the supported platforms doesn't match the plugin's supported platforms. Example: + ```ts @Cordova() someMethod(): Promise { return; } @@ -188,20 +194,25 @@ syncMethod(): number { } ``` #### CordovaProperty + Checks if the plugin and property exist before getting/setting the property's value Example: + ```ts @CordovaProperty() someProperty: string; ``` #### CordovaCheck -Checks if the plugin exists before performing a custom written method. By default, the method will return a promise that will reject with an error if the plugin is not available. This wrapper accepts two optional configurations: + +Checks if the plugin exists before performing a custom written method. By default, the method will return a promise that will reject with an error if the plugin is not available. This wrapper accepts two optional configurations: + - **observable**: set to true to return an empty Observable if the plugin isn't available - **sync**: set to true to return nothing if the plugin isn't available Example: + ```ts @CordovaCheck() someMethod(): Promise { @@ -210,9 +221,11 @@ someMethod(): Promise { ``` #### CordovaFunctionOverride + Wrap a stub function in a call to a Cordova plugin, checking if both Cordova and the required plugin are installed. Example: + ```ts @CordovaFunctionOverride() someMethod(): Observable { return; } diff --git a/README.md b/README.md index e45b2689b..96e8e8532 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,8 @@ For the full Ionic Native documentation, please visit [https://ionicframework.co ### Basic Usage #### Ionic/Angular apps -To use a plugin, import and add the plugin provider to your `@NgModule`, and then inject it where you wish to use it. + +To use a plugin, import and add the plugin provider to your `@NgModule`, and then inject it where you wish to use it. Make sure to import the injectable class from the `/ngx` directory as shown in the following examples: ```typescript @@ -98,7 +99,7 @@ npm install phonegap-plugin-barcodescanner ionic cap sync ``` -Import the plugin object then use its static methods: +Import the plugin object then use its static methods: ```typescript import { BarcodeScanner } from '@ionic-native/barcode-scanner'; @@ -124,60 +125,62 @@ const Tab1: React.FC = () => { ``` #### ES2015+/TypeScript + These modules can work in any ES2015+/TypeScript app (including Angular/Ionic apps). To use any plugin, import the class from the appropriate package, and use it's static methods. + ```js import { Camera } from '@ionic-native/camera'; document.addEventListener('deviceready', () => { Camera.getPicture() - .then((data) => console.log('Took a picture!', data)) - .catch((e) => console.log('Error occurred while taking a picture', e)); + .then(data => console.log('Took a picture!', data)) + .catch(e => console.log('Error occurred while taking a picture', e)); }); ``` #### AngularJS + Ionic Native generates an AngularJS module in runtime and prepares a service for each plugin. To use the plugins in your AngularJS app: + 1. Download the latest bundle from the [Github releases](https://github.com/ionic-team/ionic-native/releases) page. 2. Include it in `index.html` before your app's code. 3. Inject `ionic.native` module in your app. 4. Inject any plugin you would like to use with a `$cordova` prefix. ```js -angular.module('myApp', ['ionic.native']) - .controller('MyPageController', function($cordovaCamera) { - $cordovaCamera.getPicture() - .then( - function(data) { - console.log('Took a picture!', data); - }, - function(err) { - console.log('Error occurred while taking a picture', err); - } - ); - }); +angular.module('myApp', ['ionic.native']).controller('MyPageController', function ($cordovaCamera) { + $cordovaCamera.getPicture().then( + function (data) { + console.log('Took a picture!', data); + }, + function (err) { + console.log('Error occurred while taking a picture', err); + } + ); +}); ``` #### Vanilla JS + To use Ionic Native in any other setup: + 1. Download the latest bundle from the [Github releases](https://github.com/ionic-team/ionic-native/releases) page. 2. Include it in `index.html` before your app's code. 3. Access any plugin using the global `IonicNative` variable. ```js -document.addEventListener('deviceready', function() { - IonicNative.Camera.getPicture() - .then( - function(data) { - console.log('Took a picture!', data); - }, - function(err) { - console.log('Error occurred while taking a picture', err); - } - ); +document.addEventListener('deviceready', function () { + IonicNative.Camera.getPicture().then( + function (data) { + console.log('Took a picture!', data); + }, + function (err) { + console.log('Error occurred while taking a picture', err); + } + ); }); ``` - ### Mocking and Browser Development (Ionic/Angular apps only) Ionic Native makes it possible to mock plugins and develop nearly the entirety of your app in the browser or in `ionic serve`. @@ -237,8 +240,8 @@ class CameraMock extends Camera { entryComponents: [MyApp, HomePage], providers: [ { provide: ErrorHandler, useClass: IonicErrorHandler }, - { provide: Camera, useClass: CameraMock } - ] + { provide: Camera, useClass: CameraMock }, + ], }) export class AppModule {} ``` @@ -253,7 +256,6 @@ Spent way too long diagnosing an issue only to realize a plugin wasn't firing or Let us know or submit a PR! Take a look at [the Developer Guide](https://github.com/ionic-team/ionic-native/blob/master/DEVELOPER.md) for more on how to contribute. :heart: - # Credits Ibby Hadeed - [@ihadeed](https://github.com/ihadeed) diff --git a/gulpfile.js b/gulpfile.js index 98916148d..ba08dc2ec 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -11,7 +11,7 @@ const flagConfig = { string: ['port', 'version', 'ngVersion', 'animations'], boolean: ['dry-run'], alias: { p: 'port', v: 'version', a: 'ngVersion' }, - default: { port: 8000 } + default: { port: 8000 }, }, flags = minimist(process.argv.slice(2), flagConfig); @@ -24,7 +24,7 @@ gulp.task('lint', () => { .pipe( tslint({ formatter: 'verbose', - configuration: 'tslint.json' + configuration: 'tslint.json', }) ) .pipe(tslint.report()); diff --git a/scripts/build/helpers.ts b/scripts/build/helpers.ts index 4ffb6efc0..bd0aea20c 100644 --- a/scripts/build/helpers.ts +++ b/scripts/build/helpers.ts @@ -18,7 +18,11 @@ export function getDecorator(node: ts.Node, index = 0): ts.Decorator { } export function hasDecorator(decoratorName: string, node: ts.Node): boolean { - return node.decorators && node.decorators.length && node.decorators.findIndex(d => getDecoratorName(d) === decoratorName) > -1; + return ( + node.decorators && + node.decorators.length && + node.decorators.findIndex(d => getDecoratorName(d) === decoratorName) > -1 + ); } export function getDecoratorName(decorator: any) { @@ -96,9 +100,11 @@ export function convertValueToLiteral(val: any) { * @returns Typescript Object Literal Expression */ function objectToObjectLiteral(obj: { [key: string]: any }): ts.ObjectLiteralExpression { - const newProperties: ts.ObjectLiteralElementLike[] = Object.keys(obj).map((key: string): ts.ObjectLiteralElementLike => { - return ts.createPropertyAssignment(ts.createLiteral(key), convertValueToLiteral(obj[key]) as ts.Expression); - }); + const newProperties: ts.ObjectLiteralElementLike[] = Object.keys(obj).map( + (key: string): ts.ObjectLiteralElementLike => { + return ts.createPropertyAssignment(ts.createLiteral(key), convertValueToLiteral(obj[key]) as ts.Expression); + } + ); return ts.createObjectLiteral(newProperties); } @@ -116,10 +122,14 @@ function arrayToArrayLiteral(list: any[]): ts.ArrayLiteralExpression { export function getMethodsForDecorator(decoratorName: string) { switch (decoratorName) { - case 'CordovaProperty': return ['cordovaPropertyGet', 'cordovaPropertySet']; - case 'InstanceProperty': return ['instancePropertyGet', 'instancePropertySet']; - case 'CordovaCheck': return ['checkAvailability']; - case 'InstanceCheck': return ['instanceAvailability']; + case 'CordovaProperty': + return ['cordovaPropertyGet', 'cordovaPropertySet']; + case 'InstanceProperty': + return ['instancePropertyGet', 'instancePropertySet']; + case 'CordovaCheck': + return ['checkAvailability']; + case 'InstanceCheck': + return ['instanceAvailability']; } return [camelCase(decoratorName)]; diff --git a/scripts/build/ngx.ts b/scripts/build/ngx.ts index 4d377fcc8..8f26ae780 100644 --- a/scripts/build/ngx.ts +++ b/scripts/build/ngx.ts @@ -27,7 +27,7 @@ export function getProgram(rootNames: string[] = createSourceFiles()) { return createProgram({ rootNames, options, - host + host, }); } @@ -37,7 +37,7 @@ export function transpileNgxCore() { emitFlags: EmitFlags.Metadata, emitCallback: ({ program, writeFile, customTransformers, cancellationToken, targetSourceFile }) => { return program.emit(targetSourceFile, writeFile, cancellationToken, true, customTransformers); - } + }, }); } @@ -45,11 +45,8 @@ export function transpileNgx() { getProgram().emit({ emitFlags: EmitFlags.Metadata, customTransformers: { - beforeTs: [ - importsTransformer(true), - pluginClassTransformer(true) - ] - } + beforeTs: [importsTransformer(true), pluginClassTransformer(true)], + }, }); } @@ -60,28 +57,31 @@ export function generateDeclarationFiles() { // remove reference to @ionic-native/core decorators export function modifyMetadata() { debugger; - PLUGIN_PATHS.map(p => p.replace(path.join(ROOT, 'src'), path.join(ROOT, 'dist')).replace('index.ts', 'ngx/index.metadata.json')) - .forEach(p => { - const content = fs.readJSONSync(p); - let _prop: { members: { [x: string]: any[]; }; }; - for (const prop in content[0].metadata) { - _prop = content[0].metadata[prop]; - removeIonicNativeDecorators(_prop); + PLUGIN_PATHS.map(p => + p.replace(path.join(ROOT, 'src'), path.join(ROOT, 'dist')).replace('index.ts', 'ngx/index.metadata.json') + ).forEach(p => { + const content = fs.readJSONSync(p); + let _prop: { members: { [x: string]: any[] } }; + for (const prop in content[0].metadata) { + _prop = content[0].metadata[prop]; + removeIonicNativeDecorators(_prop); - if (_prop.members) { - for (const memberProp in _prop.members) { - removeIonicNativeDecorators(_prop.members[memberProp][0]); - } + if (_prop.members) { + for (const memberProp in _prop.members) { + removeIonicNativeDecorators(_prop.members[memberProp][0]); } } + } - fs.writeJSONSync(p, content); - }); + fs.writeJSONSync(p, content); + }); } function removeIonicNativeDecorators(node: any) { if (node.decorators && node.decorators.length) { - node.decorators = node.decorators.filter((d: { expression: { module: string; }; }) => d.expression.module !== '@ionic-native/core'); + node.decorators = node.decorators.filter( + (d: { expression: { module: string } }) => d.expression.module !== '@ionic-native/core' + ); } if (node.decorators && !node.decorators.length) delete node.decorators; @@ -102,7 +102,5 @@ function createSourceFiles(): string[] { } export function cleanupNgx() { - PLUGIN_PATHS.forEach((indexPath: string) => - rimraf.sync(indexPath.replace('index.ts', 'ngx')) - ); + PLUGIN_PATHS.forEach((indexPath: string) => rimraf.sync(indexPath.replace('index.ts', 'ngx'))); } diff --git a/scripts/build/transformers/extract-injectables.ts b/scripts/build/transformers/extract-injectables.ts index 34366ada9..446550491 100644 --- a/scripts/build/transformers/extract-injectables.ts +++ b/scripts/build/transformers/extract-injectables.ts @@ -37,7 +37,7 @@ export function extractInjectables() { injectableClasses.push({ file: tsSourceFile.path, className: (node as ts.ClassDeclaration).name.text, - dirName: tsSourceFile.path.split(/[\\\/]+/).reverse()[1] + dirName: tsSourceFile.path.split(/[\\\/]+/).reverse()[1], }); } }, diff --git a/scripts/build/transformers/imports.ts b/scripts/build/transformers/imports.ts index 0dcb8b368..befdf5653 100644 --- a/scripts/build/transformers/imports.ts +++ b/scripts/build/transformers/imports.ts @@ -4,7 +4,9 @@ import { getMethodsForDecorator } from '../helpers'; function transformImports(file: ts.SourceFile, ctx: ts.TransformationContext, ngcBuild?: boolean) { // remove angular imports if (!ngcBuild) { - file.statements = (file.statements as any).filter((s: any) => !(s.kind === ts.SyntaxKind.ImportDeclaration && s.moduleSpecifier.text === '@angular/core')); + file.statements = (file.statements as any).filter( + (s: any) => !(s.kind === ts.SyntaxKind.ImportDeclaration && s.moduleSpecifier.text === '@angular/core') + ); } // find the @ionic-native/core import statement @@ -19,9 +21,9 @@ function transformImports(file: ts.SourceFile, ctx: ts.TransformationContext, ng const decoratorRegex: RegExp = /@([a-zA-Z]+)\(/g; - const ignored: string [] = ['Plugin', 'Component', 'Injectable']; + const ignored: string[] = ['Plugin', 'Component', 'Injectable']; - const keep: string [] = ['getPromise', 'checkAvailability']; + const keep: string[] = ['getPromise', 'checkAvailability']; let m; @@ -35,17 +37,17 @@ function transformImports(file: ts.SourceFile, ctx: ts.TransformationContext, ng if (decorators.length) { let methods = []; - decorators.forEach(d => methods = getMethodsForDecorator(d).concat(methods)); + decorators.forEach(d => (methods = getMethodsForDecorator(d).concat(methods))); const methodElements = methods.map(m => ts.createIdentifier(m)); - const methodNames = methodElements.map((el) => el.escapedText); + const methodNames = methodElements.map(el => el.escapedText); importStatement.importClause.namedBindings.elements = [ ts.createIdentifier('IonicNativePlugin'), ...methodElements, ...importStatement.importClause.namedBindings.elements.filter( el => keep.indexOf(el.name.text) !== -1 && methodNames.indexOf(el.name.text) === -1 - ) + ), ]; if (ngcBuild) { @@ -53,7 +55,7 @@ function transformImports(file: ts.SourceFile, ctx: ts.TransformationContext, ng binding => { if (binding.escapedText) { binding.name = { - text: binding.escapedText + text: binding.escapedText, }; } return binding; diff --git a/scripts/build/transformers/members.ts b/scripts/build/transformers/members.ts index 00aa7d959..cb212386b 100644 --- a/scripts/build/transformers/members.ts +++ b/scripts/build/transformers/members.ts @@ -31,7 +31,3 @@ export function transformMembers(cls: ts.ClassDeclaration) { return members; } - - - - diff --git a/scripts/build/transformers/methods.ts b/scripts/build/transformers/methods.ts index 7ae07c5f6..e471cc15d 100644 --- a/scripts/build/transformers/methods.ts +++ b/scripts/build/transformers/methods.ts @@ -1,6 +1,12 @@ import * as ts from 'typescript'; import { Logger } from '../../logger'; -import { convertValueToLiteral, getDecorator, getDecoratorArgs, getDecoratorName, getMethodsForDecorator } from '../helpers'; +import { + convertValueToLiteral, + getDecorator, + getDecoratorArgs, + getDecoratorName, + getMethodsForDecorator, +} from '../helpers'; export function transformMethod(method: ts.MethodDeclaration) { if (!method) return; @@ -10,11 +16,17 @@ export function transformMethod(method: ts.MethodDeclaration) { decoratorArgs = getDecoratorArgs(decorator); try { - return ts.createMethod(undefined, undefined, undefined, method.name, undefined, method.typeParameters, method.parameters, method.type, ts.createBlock([ - ts.createReturn( - getMethodBlock(method, decoratorName, decoratorArgs) - ) - ])); + return ts.createMethod( + undefined, + undefined, + undefined, + method.name, + undefined, + method.typeParameters, + method.parameters, + method.type, + ts.createBlock([ts.createReturn(getMethodBlock(method, decoratorName, decoratorArgs))]) + ); } catch (e) { Logger.error('Error transforming method: ' + (method.name as any).text); Logger.error(e.message); @@ -28,22 +40,23 @@ function getMethodBlock(method: ts.MethodDeclaration, decoratorName: string, dec case 'CordovaCheck': case 'InstanceCheck': // TODO remove function wrapper - return ts.createImmediatelyInvokedArrowFunction([ts.createIf( - ts.createBinary( - ts.createCall(ts.createIdentifier(decoratorMethod), undefined, [ts.createThis()]), - ts.SyntaxKind.EqualsEqualsEqualsToken, - ts.createTrue() + return ts.createImmediatelyInvokedArrowFunction([ + ts.createIf( + ts.createBinary( + ts.createCall(ts.createIdentifier(decoratorMethod), undefined, [ts.createThis()]), + ts.SyntaxKind.EqualsEqualsEqualsToken, + ts.createTrue() + ), + method.body ), - method.body - )]); + ]); default: return ts.createCall(ts.createIdentifier(decoratorMethod), undefined, [ ts.createThis(), ts.createLiteral((method.name as any).text), convertValueToLiteral(decoratorArgs), - ts.createIdentifier('arguments') + ts.createIdentifier('arguments'), ]); } - } diff --git a/scripts/build/transformers/plugin-class.ts b/scripts/build/transformers/plugin-class.ts index ec0e4f3e5..1862ffc1b 100644 --- a/scripts/build/transformers/plugin-class.ts +++ b/scripts/build/transformers/plugin-class.ts @@ -1,12 +1,7 @@ import * as ts from 'typescript'; import { Logger } from '../../logger'; -import { - convertValueToLiteral, - getDecorator, - getDecoratorArgs, - getDecoratorName -} from '../helpers'; +import { convertValueToLiteral, getDecorator, getDecoratorArgs, getDecoratorName } from '../helpers'; import { transformMembers } from './members'; function transformClass(cls: any, ngcBuild?: boolean) { @@ -48,17 +43,15 @@ function transformClass(cls: any, ngcBuild?: boolean) { return cls; } -function transformClasses( - file: ts.SourceFile, - ctx: ts.TransformationContext, - ngcBuild?: boolean -) { +function transformClasses(file: ts.SourceFile, ctx: ts.TransformationContext, ngcBuild?: boolean) { Logger.silly('Transforming file: ' + file.fileName); return ts.visitEachChild( file, node => { - if (node.kind !== ts.SyntaxKind.ClassDeclaration - || (node.modifiers && node.modifiers.find(v => v.kind === ts.SyntaxKind.DeclareKeyword))) { + if ( + node.kind !== ts.SyntaxKind.ClassDeclaration || + (node.modifiers && node.modifiers.find(v => v.kind === ts.SyntaxKind.DeclareKeyword)) + ) { return node; } return transformClass(node, ngcBuild); @@ -67,9 +60,7 @@ function transformClasses( ); } -export function pluginClassTransformer( - ngcBuild?: boolean -): ts.TransformerFactory { +export function pluginClassTransformer(ngcBuild?: boolean): ts.TransformerFactory { return (ctx: ts.TransformationContext) => { return tsSourceFile => { if (tsSourceFile.fileName.indexOf('src/@ionic-native/plugins') > -1) diff --git a/scripts/build/transformers/properties.ts b/scripts/build/transformers/properties.ts index 91af8f0fa..945665780 100644 --- a/scripts/build/transformers/properties.ts +++ b/scripts/build/transformers/properties.ts @@ -32,9 +32,9 @@ export function transformProperty(members: any[], index: number) { ts.createReturn( ts.createCall(ts.createIdentifier(type + 'PropertyGet'), undefined, [ ts.createThis(), - ts.createLiteral((property.name as any).text) + ts.createLiteral((property.name as any).text), ]) - ) + ), ]) ); @@ -42,24 +42,15 @@ export function transformProperty(members: any[], index: number) { undefined, undefined, property.name, - [ - ts.createParameter( - undefined, - undefined, - undefined, - 'value', - undefined, - property.type - ) - ], + [ts.createParameter(undefined, undefined, undefined, 'value', undefined, property.type)], ts.createBlock([ ts.createStatement( ts.createCall(ts.createIdentifier(type + 'PropertySet'), undefined, [ ts.createThis(), ts.createLiteral((property.name as any).text), - ts.createIdentifier('value') + ts.createIdentifier('value'), ]) - ) + ), ]) ); diff --git a/scripts/build/transpile.ts b/scripts/build/transpile.ts index 23aa050ec..5f1c2490d 100644 --- a/scripts/build/transpile.ts +++ b/scripts/build/transpile.ts @@ -13,22 +13,16 @@ export function getCompilerHost() { } export function getProgram(declaration = false, pluginPaths: string[] = PLUGIN_PATHS) { - const compilerOptions: ts.CompilerOptions = clone(COMPILER_OPTIONS); - compilerOptions.declaration = declaration; - compilerOptions.moduleResolution = ts.ModuleResolutionKind.NodeJs; - compilerOptions.target = ts.ScriptTarget.ES5; - compilerOptions.module = ts.ModuleKind.ES2015; - compilerOptions.inlineSourceMap = true; - compilerOptions.inlineSources = true; - compilerOptions.lib = [ - 'lib.dom.d.ts', - 'lib.es5.d.ts', - 'lib.es2015.d.ts', - 'lib.es2016.d.ts', - 'lib.es2017.d.ts' - ]; + const compilerOptions: ts.CompilerOptions = clone(COMPILER_OPTIONS); + compilerOptions.declaration = declaration; + compilerOptions.moduleResolution = ts.ModuleResolutionKind.NodeJs; + compilerOptions.target = ts.ScriptTarget.ES5; + compilerOptions.module = ts.ModuleKind.ES2015; + compilerOptions.inlineSourceMap = true; + compilerOptions.inlineSources = true; + compilerOptions.lib = ['lib.dom.d.ts', 'lib.es5.d.ts', 'lib.es2015.d.ts', 'lib.es2016.d.ts', 'lib.es2017.d.ts']; - return ts.createProgram(pluginPaths, compilerOptions, getCompilerHost()); + return ts.createProgram(pluginPaths, compilerOptions, getCompilerHost()); } export function generateDeclarations(sourceFiles?: string[]) { @@ -37,15 +31,10 @@ export function generateDeclarations(sourceFiles?: string[]) { export function transpile() { const emitResult = getProgram().emit(undefined, getCompilerHost().writeFile, undefined, false, { - before: [ - extractInjectables(), - importsTransformer(), - pluginClassTransformer(), - ] + before: [extractInjectables(), importsTransformer(), pluginClassTransformer()], }); emitInjectableClasses(); return emitResult; } - diff --git a/scripts/docs-json/index.ts b/scripts/docs-json/index.ts index f09bdd309..6f1d287b3 100644 --- a/scripts/docs-json/index.ts +++ b/scripts/docs-json/index.ts @@ -43,7 +43,7 @@ async function run(pluginsDir: string) { async function generateTypedoc(root: string, outputPath = typedocTmp) { const pluginDirs = await fs.readdir(root); - const paths = pluginDirs.map((dir) => resolve(root, dir, 'index.ts')); + const paths = pluginDirs.map(dir => resolve(root, dir, 'index.ts')); typedoc.generateJson(paths, outputPath); return fs.readJson(outputPath); } @@ -51,9 +51,7 @@ async function generateTypedoc(root: string, outputPath = typedocTmp) { function processPlugin(pluginModule): Plugin { const pluginClass = pluginModule.children.find(isPlugin); const decorator = getPluginDecorator(pluginClass); - const packageName = `@ionic-native/${basename( - dirname(pluginModule.originalName) - )}`; + const packageName = `@ionic-native/${basename(dirname(pluginModule.originalName))}`; const displayName = getTag(pluginClass, 'name'); const usage = getTag(pluginClass, 'usage'); const description = getTag(pluginClass, 'description'); @@ -78,14 +76,14 @@ function processPlugin(pluginModule): Plugin { */ const getPluginDecorator = (child: any) => { if (isPlugin(child)) { - const decorator = child.decorators.find((d) => d.name === 'Plugin'); + const decorator = child.decorators.find(d => d.name === 'Plugin'); return runInNewContext(`(${decorator.arguments.config})`); } }; const getTag = (child: any, tagName: string): string => { if (hasTags(child)) { - const tag = child.comment.tags.find((t) => t.tag === tagName); + const tag = child.comment.tags.find(t => t.tag === tagName); if (tag) { return tag.text; } @@ -100,9 +98,8 @@ const isPlugin = (child: any): boolean => isClass(child) && hasTags(child) && Array.isArray(child.decorators) && - child.decorators.some((d) => d.name === 'Plugin'); + child.decorators.some(d => d.name === 'Plugin'); const hasPlugin = (child: any): boolean => child.children.some(isPlugin); -const hasTags = (child: any): boolean => - child.comment && Array.isArray(child.comment.tags); +const hasTags = (child: any): boolean => child.comment && Array.isArray(child.comment.tags); diff --git a/scripts/docs-json/readme.md b/scripts/docs-json/readme.md index d714be83c..3b401b39e 100644 --- a/scripts/docs-json/readme.md +++ b/scripts/docs-json/readme.md @@ -1,3 +1,3 @@ # docs-json -This script reads and generates [typedoc](https://github.com/TypeStrong/typedoc) data for each of the plugins in `src/@ionic-native/plugins`. That data is then formatted and output as `plugins.json` in this directory. \ No newline at end of file +This script reads and generates [typedoc](https://github.com/TypeStrong/typedoc) data for each of the plugins in `src/@ionic-native/plugins`. That data is then formatted and output as `plugins.json` in this directory. diff --git a/scripts/docs/dgeni/configs/links.js b/scripts/docs/dgeni/configs/links.js index 65c8aa897..361b932c8 100644 --- a/scripts/docs/dgeni/configs/links.js +++ b/scripts/docs/dgeni/configs/links.js @@ -1,3 +1,3 @@ -module.exports = function(getLinkInfo) { +module.exports = function (getLinkInfo) { getLinkInfo.useFirstAmbiguousLink = false; }; diff --git a/scripts/docs/dgeni/configs/log.js b/scripts/docs/dgeni/configs/log.js index 91d24552f..cf20f3b26 100644 --- a/scripts/docs/dgeni/configs/log.js +++ b/scripts/docs/dgeni/configs/log.js @@ -1,3 +1,3 @@ -module.exports = function(log) { +module.exports = function (log) { log.level = 'error'; //'silly', 'debug', 'info', 'warn', 'error' }; diff --git a/scripts/docs/dgeni/configs/tag-defs.js b/scripts/docs/dgeni/configs/tag-defs.js index b7a49c6d9..ae47967b0 100644 --- a/scripts/docs/dgeni/configs/tag-defs.js +++ b/scripts/docs/dgeni/configs/tag-defs.js @@ -1,4 +1,3 @@ -module.exports = function(parseTagsProcessor) { - parseTagsProcessor.tagDefinitions = parseTagsProcessor.tagDefinitions - .concat(require('../tag-defs/tag-defs')); +module.exports = function (parseTagsProcessor) { + parseTagsProcessor.tagDefinitions = parseTagsProcessor.tagDefinitions.concat(require('../tag-defs/tag-defs')); }; diff --git a/scripts/docs/dgeni/configs/template-filters.js b/scripts/docs/dgeni/configs/template-filters.js index 6d5ea1c11..83f6a3d14 100644 --- a/scripts/docs/dgeni/configs/template-filters.js +++ b/scripts/docs/dgeni/configs/template-filters.js @@ -1,4 +1,4 @@ -module.exports = function(templateEngine) { +module.exports = function (templateEngine) { // Nunjucks and Angular conflict in their template bindings so change the Nunjucks // Also conflict with Jekyll templateEngine.config.tags = { @@ -7,6 +7,6 @@ module.exports = function(templateEngine) { blockStart: '<@', blockEnd: '@>', commentStart: '<#', - commentEnd: '#>' + commentEnd: '#>', }; }; diff --git a/scripts/docs/dgeni/configs/template-tags.js b/scripts/docs/dgeni/configs/template-tags.js index e2297158c..53c8a8887 100644 --- a/scripts/docs/dgeni/configs/template-tags.js +++ b/scripts/docs/dgeni/configs/template-tags.js @@ -1,4 +1,4 @@ -module.exports = function(templateEngine) { +module.exports = function (templateEngine) { // add custom filters to nunjucks templateEngine.filters.push( require('../filters/capital'), diff --git a/scripts/docs/dgeni/dgeni-config.js b/scripts/docs/dgeni/dgeni-config.js index 13d93e7cf..0780dbe8a 100644 --- a/scripts/docs/dgeni/dgeni-config.js +++ b/scripts/docs/dgeni/dgeni-config.js @@ -1,4 +1,4 @@ -"use strict"; +'use strict'; const Package = require('dgeni').Package, jsdocPackage = require('dgeni-packages/jsdoc'), nunjucksPackage = require('dgeni-packages/nunjucks'), @@ -8,72 +8,68 @@ const Package = require('dgeni').Package, config = require('../config.json'); module.exports = currentVersion => { + return ( + new Package('ionic-native-docs', [jsdocPackage, nunjucksPackage, typescriptPackage, linksPackage]) - return new Package('ionic-native-docs', [jsdocPackage, nunjucksPackage, typescriptPackage, linksPackage]) + .processor(require('./processors/remove-private-members')) + .processor(require('./processors/hide-private-api')) + .processor(require('./processors/parse-optional')) + .processor(require('./processors/mark-properties')) + .processor(require('./processors/npm-id')) + .processor(require('./processors/jekyll')) - .processor(require('./processors/remove-private-members')) - .processor(require('./processors/hide-private-api')) - .processor(require('./processors/parse-optional')) - .processor(require('./processors/mark-properties')) - .processor(require('./processors/npm-id')) - .processor(require('./processors/jekyll')) + .config(require('./configs/log')) + .config(require('./configs/template-filters')) + .config(require('./configs/template-tags')) + .config(require('./configs/tag-defs')) + .config(require('./configs/links')) - .config(require('./configs/log')) - .config(require('./configs/template-filters')) - .config(require('./configs/template-tags')) - .config(require('./configs/tag-defs')) - .config(require('./configs/links')) + .config(function (renderDocsProcessor, computePathsProcessor) { + currentVersion = { + href: '/' + config.v2DocsDir.replace('content/', ''), + folder: '', + name: currentVersion, + }; - .config(function(renderDocsProcessor, computePathsProcessor) { + renderDocsProcessor.extraData.version = { + list: [currentVersion], + current: currentVersion, + latest: currentVersion, + }; - currentVersion = { - href: '/' + config.v2DocsDir.replace('content/', ''), - folder: '', - name: currentVersion - }; + computePathsProcessor.pathTemplates = [ + { + docTypes: ['class'], + getOutputPath: doc => 'content/' + config.v2DocsDir + '/' + doc.name + '/index.md', + }, + ]; + }) - renderDocsProcessor.extraData.version = { - list: [currentVersion], - current: currentVersion, - latest: currentVersion - }; + //configure file reading + .config(function (readFilesProcessor, readTypeScriptModules) { + // Don't run unwanted processors since we are not using the normal file reading processor + readFilesProcessor.$enabled = false; + readFilesProcessor.basePath = path.resolve(__dirname, '../../..'); - computePathsProcessor.pathTemplates = [{ - docTypes: ['class'], - getOutputPath: doc => 'content/' + config.v2DocsDir + '/' + doc.name + '/index.md' - }]; + readTypeScriptModules.basePath = path.resolve(__dirname, '../../..'); + readTypeScriptModules.sourceFiles = ['./src/@ionic-native/plugins/**/*.ts']; + }) - }) + // Configure file writing + .config(function (writeFilesProcessor) { + writeFilesProcessor.outputFolder = '../ionic-site/'; + }) - //configure file reading - .config(function(readFilesProcessor, readTypeScriptModules) { - - // Don't run unwanted processors since we are not using the normal file reading processor - readFilesProcessor.$enabled = false; - readFilesProcessor.basePath = path.resolve(__dirname, '../../..'); - - readTypeScriptModules.basePath = path.resolve(__dirname, '../../..'); - readTypeScriptModules.sourceFiles = [ - './src/@ionic-native/plugins/**/*.ts' - ]; - }) - - // Configure file writing - .config(function(writeFilesProcessor) { - writeFilesProcessor.outputFolder = '../ionic-site/'; - }) - - // Configure rendering - .config(function(templateFinder) { - - templateFinder.templateFolders.unshift(path.resolve(__dirname, 'templates')); - - // Specify how to match docs to templates. - templateFinder.templatePatterns = [ - '${ doc.template }', - '${ doc.docType }.template.html', - 'common.template.html' - ]; - }); + // Configure rendering + .config(function (templateFinder) { + templateFinder.templateFolders.unshift(path.resolve(__dirname, 'templates')); + // Specify how to match docs to templates. + templateFinder.templatePatterns = [ + '${ doc.template }', + '${ doc.docType }.template.html', + 'common.template.html', + ]; + }) + ); }; diff --git a/scripts/docs/dgeni/dgeni-readmes-config.js b/scripts/docs/dgeni/dgeni-readmes-config.js index 6fd057cef..eaf0e80c8 100644 --- a/scripts/docs/dgeni/dgeni-readmes-config.js +++ b/scripts/docs/dgeni/dgeni-readmes-config.js @@ -1,4 +1,4 @@ -"use strict"; +'use strict'; const Package = require('dgeni').Package, jsdocPackage = require('dgeni-packages/jsdoc'), nunjucksPackage = require('dgeni-packages/nunjucks'), @@ -8,68 +8,63 @@ const Package = require('dgeni').Package, config = require('../config.json'); module.exports = currentVersion => { + return ( + new Package('ionic-native-readmes', [jsdocPackage, nunjucksPackage, typescriptPackage, linksPackage]) - return new Package('ionic-native-readmes', [jsdocPackage, nunjucksPackage, typescriptPackage, linksPackage]) + .processor(require('./processors/readmes')) + .processor(require('./processors/remove-private-members')) + .processor(require('./processors/hide-private-api')) + .processor(require('./processors/npm-id')) - .processor(require('./processors/readmes')) - .processor(require('./processors/remove-private-members')) - .processor(require('./processors/hide-private-api')) - .processor(require('./processors/npm-id')) + .config(require('./configs/log')) + .config(require('./configs/template-filters')) + .config(require('./configs/template-tags')) + .config(require('./configs/tag-defs')) + .config(require('./configs/links')) - .config(require('./configs/log')) - .config(require('./configs/template-filters')) - .config(require('./configs/template-tags')) - .config(require('./configs/tag-defs')) - .config(require('./configs/links')) + .config(function (renderDocsProcessor, computePathsProcessor) { + currentVersion = { + href: '/' + config.v2DocsDir.replace('content/', ''), + folder: '', + name: currentVersion, + }; + renderDocsProcessor.extraData.version = { + list: [currentVersion], + current: currentVersion, + latest: currentVersion, + }; - .config(function(renderDocsProcessor, computePathsProcessor) { + computePathsProcessor.pathTemplates = [ + { + docTypes: ['class'], + getOutputPath: doc => + doc.originalModule.replace(config.pluginDir + '/', '').replace(/\/index$/, '/README.md'), + }, + ]; + }) - currentVersion = { - href: '/' + config.v2DocsDir.replace('content/', ''), - folder: '', - name: currentVersion - }; + //configure file reading + .config(function (readFilesProcessor, readTypeScriptModules) { + // Don't run unwanted processors since we are not using the normal file reading processor + readFilesProcessor.$enabled = false; + readFilesProcessor.basePath = path.resolve(__dirname, '../../..'); - renderDocsProcessor.extraData.version = { - list: [currentVersion], - current: currentVersion, - latest: currentVersion - }; + readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../../..')); + readTypeScriptModules.sourceFiles = ['./src/@ionic-native/plugins/**/*.ts']; + }) - computePathsProcessor.pathTemplates = [{ - docTypes: ['class'], - getOutputPath: doc => doc.originalModule.replace(config.pluginDir + '/', '') - .replace(/\/index$/, '/README.md') - }]; + // Configure file writing + .config(function (writeFilesProcessor) { + writeFilesProcessor.outputFolder = './dist/@ionic-native/'; + }) - }) - - //configure file reading - .config(function(readFilesProcessor, readTypeScriptModules) { - // Don't run unwanted processors since we are not using the normal file reading processor - readFilesProcessor.$enabled = false; - readFilesProcessor.basePath = path.resolve(__dirname, '../../..'); - - readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../../..')); - readTypeScriptModules.sourceFiles = ['./src/@ionic-native/plugins/**/*.ts']; - }) - - // Configure file writing - .config(function(writeFilesProcessor) { - writeFilesProcessor.outputFolder = './dist/@ionic-native/'; - }) - - // Configure rendering - .config(function(templateFinder) { - templateFinder.templateFolders.unshift(path.resolve(__dirname, 'templates')); - - // Specify how to match docs to templates. - templateFinder.templatePatterns = [ - '${ doc.template }', - '${ doc.docType }.template.md', - 'readme.template.md' - ]; - }); + // Configure rendering + .config(function (templateFinder) { + templateFinder.templateFolders.unshift(path.resolve(__dirname, 'templates')); + // Specify how to match docs to templates. + templateFinder.templatePatterns = ['${ doc.template }', '${ doc.docType }.template.md', 'readme.template.md']; + }) + ); }; diff --git a/scripts/docs/dgeni/filters/capital.js b/scripts/docs/dgeni/filters/capital.js index d9eec85bd..038c2bc29 100644 --- a/scripts/docs/dgeni/filters/capital.js +++ b/scripts/docs/dgeni/filters/capital.js @@ -1,5 +1,5 @@ -"use strict"; +'use strict'; module.exports = { name: 'capital', - process: str => str? str.charAt(0).toUpperCase() + str.substring(1) : '' + process: str => (str ? str.charAt(0).toUpperCase() + str.substring(1) : ''), }; diff --git a/scripts/docs/dgeni/filters/code.js b/scripts/docs/dgeni/filters/code.js index 6c95af580..0ae001b3f 100644 --- a/scripts/docs/dgeni/filters/code.js +++ b/scripts/docs/dgeni/filters/code.js @@ -1,4 +1,4 @@ -"use strict"; +'use strict'; const encoder = new require('node-html-encoder').Encoder(); function code(str, inline, lang) { @@ -20,5 +20,5 @@ function code(str, inline, lang) { module.exports = { name: 'code', - process: (str, lang) => code(str, true, lang) + process: (str, lang) => code(str, true, lang), }; diff --git a/scripts/docs/dgeni/filters/dashify.js b/scripts/docs/dgeni/filters/dashify.js index 4feee6936..5eff4638f 100644 --- a/scripts/docs/dgeni/filters/dashify.js +++ b/scripts/docs/dgeni/filters/dashify.js @@ -1,5 +1,5 @@ -"use strict"; +'use strict'; module.exports = { name: 'dashify', - process: str => str? str.replace(/\s/g, '-') : '' + process: str => (str ? str.replace(/\s/g, '-') : ''), }; diff --git a/scripts/docs/dgeni/filters/dump.js b/scripts/docs/dgeni/filters/dump.js index aaefa0567..539c10bce 100644 --- a/scripts/docs/dgeni/filters/dump.js +++ b/scripts/docs/dgeni/filters/dump.js @@ -1,5 +1,5 @@ -"use strict"; +'use strict'; module.exports = { name: 'dump', - process: obj => console.log(obj) + process: obj => console.log(obj), }; diff --git a/scripts/docs/dgeni/processors/debug.js b/scripts/docs/dgeni/processors/debug.js index ebf0bf45f..cc1f6af68 100644 --- a/scripts/docs/dgeni/processors/debug.js +++ b/scripts/docs/dgeni/processors/debug.js @@ -1,43 +1,39 @@ -"use strict"; -module.exports = function test(){ +'use strict'; +module.exports = function test() { return { name: 'debug', $runBefore: ['rendering-docs'], - $process: function(docs){ - docs.forEach(function(doc){ - if (doc.name == "Camera"){ - + $process: function (docs) { + docs.forEach(function (doc) { + if (doc.name == 'Camera') { console.log(doc.tags); - doc.tags.forEach(function(tag){ - if(tag.tagName == 'classes'){ - + doc.tags.forEach(function (tag) { + if (tag.tagName == 'classes') { } }); - doc.moduleDoc.exports.forEach(function(d,i){ - if(d.name === 'CameraOptions') { + doc.moduleDoc.exports.forEach(function (d, i) { + if (d.name === 'CameraOptions') { console.log('Name: ' + d.name); console.log('Type: ' + d.docType); console.log('First member: ', d.members[0]); } }); - var exports = doc.exportSymbol.parent.exports; - for(var p in exports) { - if(p == 'CameraOptions') - { + for (var p in exports) { + if (p == 'CameraOptions') { var x = exports[p]; console.log(x.members.quality); } } - doc.members.forEach(function(method){ - if (method.name === "getPicture") { + doc.members.forEach(function (method) { + if (method.name === 'getPicture') { console.log(method); } - }) + }); } - }) - } - } -} + }); + }, + }; +}; diff --git a/scripts/docs/dgeni/processors/hide-private-api.js b/scripts/docs/dgeni/processors/hide-private-api.js index 80809bad3..9b3722947 100644 --- a/scripts/docs/dgeni/processors/hide-private-api.js +++ b/scripts/docs/dgeni/processors/hide-private-api.js @@ -1,9 +1,9 @@ -"use strict"; +'use strict'; module.exports = function removePrivateApi() { return { name: 'remove-private-api', description: 'Prevent the private apis from being rendered', $runBefore: ['rendering-docs'], - $process: docs => docs.filter(doc => !doc.private && (!doc.tags || !doc.tags.tagsByName.get('hidden'))) + $process: docs => docs.filter(doc => !doc.private && (!doc.tags || !doc.tags.tagsByName.get('hidden'))), }; }; diff --git a/scripts/docs/dgeni/processors/jekyll.js b/scripts/docs/dgeni/processors/jekyll.js index 4d800065b..de29fdb04 100644 --- a/scripts/docs/dgeni/processors/jekyll.js +++ b/scripts/docs/dgeni/processors/jekyll.js @@ -1,4 +1,4 @@ -"use strict"; +'use strict'; module.exports = function jekyll(renderDocsProcessor) { return { name: 'jekyll', @@ -6,7 +6,6 @@ module.exports = function jekyll(renderDocsProcessor) { $runAfter: ['paths-computed'], $runBefore: ['rendering-docs'], $process: docs => { - // pretty up and sort the docs object for menu generation docs = docs.filter(doc => (!!doc.name && !!doc.outputPath) || doc.docType === 'index-page'); @@ -20,7 +19,7 @@ module.exports = function jekyll(renderDocsProcessor) { const textA = a.name ? a.name.toUpperCase() : '', textB = b.name ? b.name.toUpperCase() : ''; - return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; + return textA < textB ? -1 : textA > textB ? 1 : 0; }); docs.forEach(doc => { @@ -29,11 +28,9 @@ module.exports = function jekyll(renderDocsProcessor) { } doc.outputPath = doc.outputPath.toLowerCase().replace(/\s/g, '-'); - doc.URL = doc.outputPath.replace('docs//', 'docs/') - .replace('/index.md', '') - .replace('content/', ''); + doc.URL = doc.outputPath.replace('docs//', 'docs/').replace('/index.md', '').replace('content/', ''); // add trailing slash to plugin pages - if(!doc.URL.endsWith("/") && !doc.URL.endsWith(".html")) { + if (!doc.URL.endsWith('/') && !doc.URL.endsWith('.html')) { doc.URL = doc.URL + '/'; } @@ -57,10 +54,10 @@ module.exports = function jekyll(renderDocsProcessor) { docType: 'nativeMenu', id: 'native_menu', template: 'native_menu.template.html', - outputPath: 'content/_includes/fluid/native_menu.html' + outputPath: 'content/_includes/fluid/native_menu.html', }); return docs; - } + }, }; }; diff --git a/scripts/docs/dgeni/processors/mark-properties.js b/scripts/docs/dgeni/processors/mark-properties.js index ed132d48e..30de1072f 100644 --- a/scripts/docs/dgeni/processors/mark-properties.js +++ b/scripts/docs/dgeni/processors/mark-properties.js @@ -1,15 +1,16 @@ -"use strict"; +'use strict'; module.exports = function markProperties() { return { name: 'mark-properties', $runBefore: ['rendering-docs'], - $process: docs => docs.map(doc => { - for (let i in doc.members) { - if (doc.members.hasOwnProperty(i) && typeof doc.members[i].parameters === 'undefined') { - doc.members[i].isProperty = true; + $process: docs => + docs.map(doc => { + for (let i in doc.members) { + if (doc.members.hasOwnProperty(i) && typeof doc.members[i].parameters === 'undefined') { + doc.members[i].isProperty = true; + } } - } - return doc; - }) - } + return doc; + }), + }; }; diff --git a/scripts/docs/dgeni/processors/npm-id.js b/scripts/docs/dgeni/processors/npm-id.js index e1be42db1..ac6f30a75 100644 --- a/scripts/docs/dgeni/processors/npm-id.js +++ b/scripts/docs/dgeni/processors/npm-id.js @@ -1,4 +1,4 @@ -"use strict"; +'use strict'; module.exports = function npmId(renderDocsProcessor) { return { name: 'npm-id', @@ -6,7 +6,7 @@ module.exports = function npmId(renderDocsProcessor) { $runBefore: ['rendering-docs'], $process: docs => { // pretty up and sort the docs object for menu generation - docs = docs.filter(function(doc) { + docs = docs.filter(function (doc) { return (!!doc.name && !!doc.outputPath) || doc.docType === 'index-page'; }); @@ -15,6 +15,6 @@ module.exports = function npmId(renderDocsProcessor) { }); return docs; - } + }, }; }; diff --git a/scripts/docs/dgeni/processors/parse-optional.js b/scripts/docs/dgeni/processors/parse-optional.js index 28f9f4581..ffd2c7a06 100644 --- a/scripts/docs/dgeni/processors/parse-optional.js +++ b/scripts/docs/dgeni/processors/parse-optional.js @@ -1,4 +1,4 @@ -"use strict"; +'use strict'; module.exports = function parseOptional() { return { $runBefore: ['rendering-docs'], @@ -17,6 +17,6 @@ module.exports = function parseOptional() { } }); return docs; - } - } + }, + }; }; diff --git a/scripts/docs/dgeni/processors/readmes.js b/scripts/docs/dgeni/processors/readmes.js index 43b289a2e..3d141a5e1 100644 --- a/scripts/docs/dgeni/processors/readmes.js +++ b/scripts/docs/dgeni/processors/readmes.js @@ -1,4 +1,4 @@ -"use strict"; +'use strict'; module.exports = function readmes(renderDocsProcessor) { return { name: 'readmes', @@ -14,6 +14,6 @@ module.exports = function readmes(renderDocsProcessor) { }); return docs; - } + }, }; }; diff --git a/scripts/docs/dgeni/processors/remove-private-members.js b/scripts/docs/dgeni/processors/remove-private-members.js index 2c360d9e6..703fb29bd 100644 --- a/scripts/docs/dgeni/processors/remove-private-members.js +++ b/scripts/docs/dgeni/processors/remove-private-members.js @@ -1,4 +1,4 @@ -"use strict"; +'use strict'; module.exports = function removePrivateMembers() { return { name: 'remove-private-members', @@ -7,7 +7,6 @@ module.exports = function removePrivateMembers() { $runBefore: ['rendering-docs'], $process: docs => { docs.forEach(doc => { - if (doc.members) { doc.members = doc.members.filter(member => !member.tags.tagsByName.get('hidden')); } @@ -15,10 +14,9 @@ module.exports = function removePrivateMembers() { if (doc.statics) { doc.statics = doc.statics.filter(staticMethod => !staticMethod.tags.tagsByName.get('hidden')); } - }); return docs; - } + }, }; }; diff --git a/scripts/docs/dgeni/tag-defs/tag-defs.js b/scripts/docs/dgeni/tag-defs/tag-defs.js index d311b2dff..3192824de 100644 --- a/scripts/docs/dgeni/tag-defs/tag-defs.js +++ b/scripts/docs/dgeni/tag-defs/tag-defs.js @@ -1,11 +1,11 @@ -"use strict"; +'use strict'; module.exports = [ - {'name': 'advanced'}, - {'name': 'demo'}, - {'name': 'beta', transforms: (doc, tag, value) => typeof value !== 'undefined'}, // make the value true or undefined instead of '' or undefined - {'name': 'usage'}, - {'name': 'hidden'}, // hide from docs - {'name': 'classes'}, // related classes - {'name': 'interfaces'}, // related interfaces - {'name': 'paid', transforms: (doc, tag, value) => typeof value !== 'undefined'} // paid plugin, set value to true + { name: 'advanced' }, + { name: 'demo' }, + { name: 'beta', transforms: (doc, tag, value) => typeof value !== 'undefined' }, // make the value true or undefined instead of '' or undefined + { name: 'usage' }, + { name: 'hidden' }, // hide from docs + { name: 'classes' }, // related classes + { name: 'interfaces' }, // related interfaces + { name: 'paid', transforms: (doc, tag, value) => typeof value !== 'undefined' }, // paid plugin, set value to true ]; diff --git a/scripts/docs/dgeni/templates/common.template.html b/scripts/docs/dgeni/templates/common.template.html index 7228ca862..6c7043cae 100644 --- a/scripts/docs/dgeni/templates/common.template.html +++ b/scripts/docs/dgeni/templates/common.template.html @@ -11,172 +11,124 @@ doc: "<$ doc.name $>" docType: "<$ doc.docType $>" --- -<@- macro interfaceTable(interface) -@> -<@ for export in doc.moduleDoc.exports -@> -<@ if export.name == interface @> - +<@- macro interfaceTable(interface) -@> <@ for export in doc.moduleDoc.exports -@> <@ if export.name == interface @> +
- - - - - + + + + + - <@ for param in export.members @> - - - - - - <@ endfor @> + <@ for param in export.members @> + + + + + + <@ endfor @>
ParamTypeDetails
ParamTypeDetails
- <$ param.name $> - - <$ param.returnType | escape $> - - <$ param.description | marked $> - <@ if param.optional @>(optional)<@ endif @> -
+ <$ param.name $> + + <$ param.returnType | escape $> + + <$ param.description | marked $> <@ if param.optional @>(optional)<@ endif @> +
-<@ endif @> -<@- endfor @> -<@- endmacro -@> - -<@- macro githubViewLink(doc) -@> -<$ doc.fileInfo.relativePath $> (line <$ doc.location.start.line+1 $>) -<@- endmacro -@> - -<@- macro paramTable(params, isDirective) -@> - +<@ endif @> <@- endfor @> <@- endmacro -@> <@- macro githubViewLink(doc) -@> +<$ doc.fileInfo.relativePath $> (line <$ doc.location.start.line+1 $>) +<@- endmacro -@> <@- macro paramTable(params, isDirective) -@> +
- - - - - + + + + + - <@- for param in params @> - - - - - - <@ endfor -@> + <@- for param in params @> + + + + + + <@ endfor -@>
<@ if isDirective @>Attr<@ else @>Param<@ endif @>TypeDetails
<@ if isDirective @>Attr<@ else @>Param<@ endif @>TypeDetails
- <$ param.name $> - <@- if param.alias @>| <$ param.alias $><@ endif -@> - - <$ typeList(param.typeList) $> - - <$ param.description | marked $> - <@- if param.defaultValue @>

(default: <$ param.defaultValue $>)

<@ endif -@> -
+ <$ param.name $> <@- if param.alias @>| <$ param.alias $><@ endif -@> + + <$ typeList(param.typeList) $> + + <$ param.description | marked $> <@- if param.defaultValue @> +

(default: <$ param.defaultValue $>)

+ <@ endif -@> +
-<@- endmacro -@> - -<@- macro functionSyntax(fn) @> - <@- set sep = joiner(', ') -@> - <$ fn.name $><@- if not fn.isProperty @>(<@ endif -@><@- for param in fn.params @><$ sep() $> - <@- if param.type.optional @>[<@- endif -@> - <$ param.name $> - <@- if param.type.optional -@>]<@- endif -@> - <@- endfor -@><@- if not fn.isProperty @>)<@- endif -@> -<@- endmacro -@> - -<@- macro typeList(types) -@> -<@ set separator = joiner("|") @> -<@- for type in types @><$ separator() $><$ type | code $><@ endfor -@> -<@- endmacro -@> - -<@- macro typeInfo(fn) -@> -<$ typeList(fn.typeList) $> <$ fn.description $> -<@- endmacro -@> - -<@- macro documentPlatforms(method) -@> -<@- if method.decorators @> -<@ for prop in method.decorators[0].argumentInfo @> -<@ if prop.platforms @> +<@- endmacro -@> <@- macro functionSyntax(fn) @> <@- set sep = joiner(', ') -@> +<$ fn.name $><@- if not fn.isProperty @>(<@ endif -@><@- for param in fn.params @><$ sep() $> <@- if + param.type.optional @>[<@- endif -@> <$ param.name $> <@- if param.type.optional -@>]<@- endif -@> <@- endfor -@><@- + if not fn.isProperty @>)<@- endif -@> +<@- endmacro -@> <@- macro typeList(types) -@> <@ set separator = joiner("|") @> <@- for type in types @><$ separator() +$><$ type | code $><@ endfor -@> <@- endmacro -@> <@- macro typeInfo(fn) -@> <$ typeList(fn.typeList) $> <$ +fn.description $> <@- endmacro -@> <@- macro documentPlatforms(method) -@> <@- if method.decorators @> <@ for prop in +method.decorators[0].argumentInfo @> <@ if prop.platforms @>

Platforms: <@- for platform in prop.platforms -@> - <$ platform $>  - <@- endfor -@> + <$ platform $>  <@- endfor -@>

-<@ endif @> -<@ endfor @> -<@- endif @> -<@- endmacro -@> - -<@ macro documentMethod(method) -@> +<@ endif @> <@ endfor @> <@- endif @> <@- endmacro -@> <@ macro documentMethod(method) -@>

<$ functionSyntax(method) $>

-<$ documentPlatforms(method) $> -<$ method.description $> -<@ if method.params -@> -<$ paramTable(method.params) $> -<@- endif @> - -<@ if method.returns -@> +<$ documentPlatforms(method) $> <$ method.description $> <@ if method.params -@> <$ paramTable(method.params) $> <@- +endif @> <@ if method.returns -@>
Returns: <$ typeInfo(method.returns) $>
-<@- endif @> -<@- endmacro -@> - -<@- macro documentClass(doc) @> -<@- if doc.statics.length -@> +<@- endif @> <@- endmacro -@> <@- macro documentClass(doc) @> <@- if doc.statics.length -@>

Static Members

-<@ for method in doc.statics -@> -<$ documentMethod(method) $> -<@ endfor -@> -<@ endif @> - -<# --- methods in class --- #> +<@ for method in doc.statics -@> <$ documentMethod(method) $> <@ endfor -@> <@ endif @> <# --- methods in class --- #> <@- if doc.members and doc.members.length @>

Instance Members

-<@ for method in doc.members -@> -<$ documentMethod(method) $> -<@- endfor @> -<@- endif -@> -<@ endmacro @> +<@ for method in doc.members -@> <$ documentMethod(method) $> <@- endfor @> <@- endif -@> <@ endmacro @> -

<$ doc.name $> - <@- if doc.beta == true -@> - β - <@- endif -@> - <@- if doc.paid == true -@> - +

+ <$ doc.name $> <@- if doc.beta == true -@> + β + <@- endif -@> <@- if doc.paid == true -@> + <@- endif -@>

- + Improve this doc -<# --- Decorators --- #> -<@- if doc.decorators @> -<@ for prop in doc.decorators[0].argumentInfo @> -<@ if doc.beta == true @> +<# --- Decorators --- #> <@- if doc.decorators @> <@ for prop in doc.decorators[0].argumentInfo @> <@ if doc.beta == +true @>

- This plugin is still in beta stage and may not work as expected. Please - submit any issues to the plugin repo. + This plugin is still in beta stage and may not work as expected. Please submit any issues to the + plugin repo.

-<@ endif @> -<@ if doc.paid == true @> +<@ endif @> <@ if doc.paid == true @> -<@ endif @> +<@ endif @> <# --- Plugin description --- #> <$ doc.description | marked $> -<# --- Plugin description --- #> -<$ doc.description | marked $> - -

Repo: +

+ Repo: <$ prop.repo $> @@ -185,115 +137,72 @@ docType: "<$ doc.docType $>" <# --- Install commands --- #>

Installation

    -
  1. Install the Cordova and Ionic Native plugins:
    +
  2. + Install the Cordova and Ionic Native plugins:
    $ <@ if prop.install @><$ prop.install | replace('<', '<').replace('>', '>') $><@ else @>ionic cordova plugin add <$ prop.plugin $><@ endif @>
     $ npm install @ionic-native/<$ doc.npmId $>
     
  3. -
  4. Add this plugin to your app's module
  5. +
  6. + Add this plugin to your app's module +
-<# --- Plugin supported platforms --- #> -<@ if prop.platforms @> +<# --- Plugin supported platforms --- #> <@ if prop.platforms @>

Supported platforms

    <@ for platform in prop.platforms -@>
  • <$ platform $>
  • <@- endfor @>
-<@ endif @> -<@ endfor @> -<@ endif -@> <# --- end of: if doc.decorators --- #> - -<# --- Plugin usage --- #> -<@ if doc.usage @> +<@ endif @> <@ endfor @> <@ endif -@> <# --- end of: if doc.decorators --- #> <# --- Plugin usage --- #> <@ if doc.usage +@>

Usage

-<$ doc.usage | marked $> -<@ endif @> - -<# --- Plugin attributes --- #> -<@- if doc.properties -@> +<$ doc.usage | marked $> <@ endif @> <# --- Plugin attributes --- #> <@- if doc.properties -@>

Attributes:

- +
- - - <@ set hasTypes = false @> - <@ for prop in doc.properties @> - <@ if prop.type @> - <@ set hasTypes = true @> - <@ endif @> - <@ endfor @> - <@ if hasTypes @> - - <@ endif @> - - + + + <@ set hasTypes = false @> <@ for prop in doc.properties @> <@ if prop.type @> <@ set hasTypes = true @> <@ endif + @> <@ endfor @> <@ if hasTypes @> + + <@ endif @> + + - <@- for prop in doc.properties -@> - - - <@ if hasTypes @> - - <@ endif @> - - - <@ endfor -@> + <@- for prop in doc.properties -@> + + + <@ if hasTypes @> + + <@ endif @> + + + <@ endfor -@>
AttributeTypeDescription
AttributeTypeDescription
- <$ prop.name $> - - <$ prop.type.name $> - - <$ prop.description $> -
+ <$ prop.name $> + + <$ prop.type.name $> + + <$ prop.description $> +
-<@- endif -@> - -<# --- Plugin class documentation --- #> -<$ documentClass(doc) $> - -<# --- Advanced usage --- #> -<@- if doc.advanced -@> +<@- endif -@> <# --- Plugin class documentation --- #> <$ documentClass(doc) $> <# --- Advanced usage --- #> <@- if +doc.advanced -@>

Advanced

-<$ doc.advanced | marked $> -<@- endif -@> - -<# --- Other classes --- #> -<@- for tag in doc.tags.tags -@> -<@- if tag.tagName == 'classes' -@> -<@- set classes = tag.description.split('\n') -@> -<@- for item in classes -@> -<@- if item.length > 1 -@> -<@- for export in doc.moduleDoc.exports -@> -<@- if export.name == item -@> +<$ doc.advanced | marked $> <@- endif -@> <# --- Other classes --- #> <@- for tag in doc.tags.tags -@> <@- if +tag.tagName == 'classes' -@> <@- set classes = tag.description.split('\n') -@> <@- for item in classes -@> <@- if +item.length > 1 -@> <@- for export in doc.moduleDoc.exports -@> <@- if export.name == item -@>

<$ item $>

-<$ documentClass(export) $> -<@- endif -@> -<@- endfor -@> -<@- endif -@> -<@- endfor -@> -<@- endif -@> -<@- endfor -@> - -<# --- Other interfaces --- #> -<@ for tag in doc.tags.tags -@> -<@ if tag.tagName == 'interfaces' @> -<@ set interfaces = tag.description.split('\n') @> -<@ for item in interfaces -@> -<@ if item.length > 1 @> +<$ documentClass(export) $> <@- endif -@> <@- endfor -@> <@- endif -@> <@- endfor -@> <@- endif -@> <@- endfor -@> <# +--- Other interfaces --- #> <@ for tag in doc.tags.tags -@> <@ if tag.tagName == 'interfaces' @> <@ set interfaces = +tag.description.split('\n') @> <@ for item in interfaces -@> <@ if item.length > 1 @>

<$ item $>

-<$ interfaceTable(item) $> -<@ endif @> -<@- endfor @> -<@ endif @> -<@- endfor @> - - -<# --- Related links --- #> -<@- if doc.see @> +<$ interfaceTable(item) $> <@ endif @> <@- endfor @> <@ endif @> <@- endfor @> <# --- Related links --- #> <@- if +doc.see @>

Related

-<@ for s in doc.see @> -<$ s | safe $> -<@- endfor -@> -<@- endif -@> +<@ for s in doc.see @> <$ s | safe $> <@- endfor -@> <@- endif -@> diff --git a/scripts/docs/dgeni/templates/native_menu.template.html b/scripts/docs/dgeni/templates/native_menu.template.html index 2c8e5c15f..bf745db88 100644 --- a/scripts/docs/dgeni/templates/native_menu.template.html +++ b/scripts/docs/dgeni/templates/native_menu.template.html @@ -6,5 +6,9 @@ <@- for doc in docs @><@ if doc.URL and doc.private != true @>
  • - <$ doc.name $><@ if doc.paid == true @> <@ endif @><@ if doc.beta == true @> β<@ endif @> -
  • <@ endif @><@ endfor @> + <$ doc.name $><@ if doc.paid == true @> <@ endif @><@ if doc.beta == true @> + β<@ endif @> + +<@ endif @><@ endfor @> diff --git a/scripts/docs/dgeni/templates/readme.template.md b/scripts/docs/dgeni/templates/readme.template.md index da99d4c3e..2592a532f 100644 --- a/scripts/docs/dgeni/templates/readme.template.md +++ b/scripts/docs/dgeni/templates/readme.template.md @@ -5,6 +5,7 @@ # <$ doc.name $> <@- if doc.beta == true @> +

    This plugin is still in beta stage and may not work as expected. Please submit any issues to the <@ endif -@> - <@ for prop in doc.decorators[0].argumentInfo @> ``` @@ -29,9 +29,11 @@ Plugin Repo: [<$ prop.repo $>](<$ prop.repo $>) <@- if prop.platforms @> ## Supported platforms + <@ for platform in prop.platforms -@> + - <$ platform $> -<@ endfor @> + <@ endfor @> <@ endif -@> diff --git a/scripts/logger.ts b/scripts/logger.ts index 88bdd1b5c..fe6694086 100644 --- a/scripts/logger.ts +++ b/scripts/logger.ts @@ -7,5 +7,5 @@ const LOG_LEVEL = 'verbose'; export const Logger = createLogger({ level: LOG_LEVEL, format: combine(colorize(), simple()), - transports: [new transports.Console({ level: LOG_LEVEL })] + transports: [new transports.Console({ level: LOG_LEVEL })], }); diff --git a/scripts/tasks/build-es5.ts b/scripts/tasks/build-es5.ts index 43b1a874b..33b787be1 100644 --- a/scripts/tasks/build-es5.ts +++ b/scripts/tasks/build-es5.ts @@ -5,26 +5,20 @@ import * as unminifiedPlugin from 'unminified-webpack-plugin'; import * as webpack from 'webpack'; import { ROOT } from '../build/helpers'; -import { - cleanEmittedData, - EMIT_PATH, - InjectableClassEntry -} from '../build/transformers/extract-injectables'; +import { cleanEmittedData, EMIT_PATH, InjectableClassEntry } from '../build/transformers/extract-injectables'; import { Logger } from '../logger'; const DIST = path.resolve(ROOT, 'dist'); const INDEX_PATH = path.resolve(DIST, 'index.js'); -const INJECTABLE_CLASSES = fs - .readJSONSync(EMIT_PATH) - .map((item: InjectableClassEntry) => { - item.file = - './' + - item.file - .split(/[\/\\]+/) - .slice(-4, -1) - .join('/'); - return item; - }); +const INJECTABLE_CLASSES = fs.readJSONSync(EMIT_PATH).map((item: InjectableClassEntry) => { + item.file = + './' + + item.file + .split(/[\/\\]+/) + .slice(-4, -1) + .join('/'); + return item; +}); const webpackConfig: webpack.Configuration = { mode: 'production', @@ -33,36 +27,36 @@ const webpackConfig: webpack.Configuration = { target: 'web', output: { path: DIST, - filename: 'ionic-native.min.js' + filename: 'ionic-native.min.js', }, resolve: { modules: ['node_modules'], extensions: ['.js'], alias: { - '@ionic-native/core': path.resolve(DIST, '@ionic-native/core/index.js') - } + '@ionic-native/core': path.resolve(DIST, '@ionic-native/core/index.js'), + }, }, module: { rules: [ { test: /\.js$/, - use: path.resolve(ROOT, 'scripts/build/remove-tslib-helpers.js') - } - ] + use: path.resolve(ROOT, 'scripts/build/remove-tslib-helpers.js'), + }, + ], }, plugins: [ new webpack.ProvidePlugin({ - __extends: ['tslib', '__extends'] + __extends: ['tslib', '__extends'], }), new webpack.optimize.OccurrenceOrderPlugin(true), new webpack.DefinePlugin({ - 'process.env.NODE_ENV': JSON.stringify('production') + 'process.env.NODE_ENV': JSON.stringify('production'), }), new uglifyJsPlugin({ - sourceMap: true + sourceMap: true, }), - new unminifiedPlugin() - ] + new unminifiedPlugin(), + ], }; function getPluginImport(entry: InjectableClassEntry) { diff --git a/scripts/tasks/build-esm.ts b/scripts/tasks/build-esm.ts index afdd14219..248901ae7 100644 --- a/scripts/tasks/build-esm.ts +++ b/scripts/tasks/build-esm.ts @@ -14,30 +14,21 @@ const outDirs = PLUGIN_PATHS.map(p => const injectableClasses = fs.readJSONSync(EMIT_PATH); outDirs.forEach(dir => { - const classes = injectableClasses.filter( - entry => entry.dirName === dir.split(/[\\/]+/).pop() - ); + const classes = injectableClasses.filter(entry => entry.dirName === dir.split(/[\\/]+/).pop()); let jsFile: string = fs.readFileSync(path.join(dir, 'index.js'), 'utf-8'), dtsFile: string = fs.readFileSync(path.join(dir, 'index.d.ts'), 'utf-8'); classes.forEach(entry => { - dtsFile = dtsFile.replace( - `class ${entry.className} `, - 'class ' + entry.className + 'Original ' - ); - dtsFile += `\nexport declare const ${entry.className}: ${ - entry.className - }Original;`; + dtsFile = dtsFile.replace(`class ${entry.className} `, 'class ' + entry.className + 'Original '); + dtsFile += `\nexport declare const ${entry.className}: ${entry.className}Original;`; jsFile = jsFile.replace( new RegExp(`([\\s\\(])${entry.className}([\\s\\.;\\(,])`, 'g'), '$1' + entry.className + 'Original$2' ); jsFile = jsFile.replace( `export { ${entry.className}Original }`, - `var ${entry.className} = new ${entry.className}Original();\nexport { ${ - entry.className - } }` + `var ${entry.className} = new ${entry.className}Original();\nexport { ${entry.className} }` ); }); diff --git a/scripts/tasks/build-ngx.ts b/scripts/tasks/build-ngx.ts index 299370e95..9d0b14f74 100644 --- a/scripts/tasks/build-ngx.ts +++ b/scripts/tasks/build-ngx.ts @@ -1,10 +1,4 @@ -import { - cleanupNgx, - generateDeclarationFiles, - modifyMetadata, - transpileNgx, - transpileNgxCore -} from '../build/ngx'; +import { cleanupNgx, generateDeclarationFiles, modifyMetadata, transpileNgx, transpileNgxCore } from '../build/ngx'; transpileNgxCore(); transpileNgx(); diff --git a/scripts/tasks/publish.ts b/scripts/tasks/publish.ts index 7cfeca780..3606eea1b 100644 --- a/scripts/tasks/publish.ts +++ b/scripts/tasks/publish.ts @@ -21,8 +21,8 @@ const PACKAGE_JSON_BASE = { license: 'MIT', repository: { type: 'git', - url: 'https://github.com/ionic-team/ionic-native.git' - } + url: 'https://github.com/ionic-team/ionic-native.git', + }, }; const DIST = path.resolve(ROOT, 'dist/@ionic-native'); @@ -34,16 +34,15 @@ const RXJS_VERSION = '^5.5.0 || ^6.5.0'; const PLUGIN_PEER_DEPENDENCIES = { '@ionic-native/core': MIN_CORE_VERSION, - rxjs: RXJS_VERSION + rxjs: RXJS_VERSION, }; - function getPackageJsonContent(name: string, peerDependencies = {}, dependencies = {}) { return merge(PACKAGE_JSON_BASE, { name: '@ionic-native/' + name, dependencies, peerDependencies, - version: VERSION + version: VERSION, }); } @@ -52,7 +51,7 @@ function writePackageJson(data: any, dir: string) { fs.writeJSONSync(filePath, data); PACKAGES.push(dir); } -function writeNGXPackageJson(data: any, dir: string){ +function writeNGXPackageJson(data: any, dir: string) { const filePath = path.resolve(dir, 'package.json'); fs.writeJSONSync(filePath, data); } @@ -87,9 +86,7 @@ async function publish(ignoreErrors = false) { } if (err) { if (!ignoreErrors) { - if ( - err.message.includes('You cannot publish over the previously published version') - ) { + if (err.message.includes('You cannot publish over the previously published version')) { Logger.verbose('Ignoring duplicate version error.'); return resolve(); } diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index 0f7cbb459..cea1e1948 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -6,7 +6,5 @@ "noImplicitAny": false, "lib": ["es6"] }, - "exclude": [ - "node_modules" - ] + "exclude": ["node_modules"] } diff --git a/src/@ionic-native/core/decorators/common.ts b/src/@ionic-native/core/decorators/common.ts index af6833f59..73f906c1c 100644 --- a/src/@ionic-native/core/decorators/common.ts +++ b/src/@ionic-native/core/decorators/common.ts @@ -22,9 +22,7 @@ export function getPromise(callback: (resolve: Function, reject?: Function) = if (typeof window !== 'undefined' && window.angular) { const doc = window.document; - const injector = window.angular - .element(doc.querySelector('[ng-app]') || doc.body) - .injector(); + const injector = window.angular.element(doc.querySelector('[ng-app]') || doc.body).injector(); if (injector) { const $q = injector.get('$q'); return $q((resolve: Function, reject: Function) => { @@ -39,12 +37,7 @@ export function getPromise(callback: (resolve: Function, reject?: Function) = return tryNativePromise(); } -export function wrapPromise( - pluginObj: any, - methodName: string, - args: any[], - opts: CordovaOptions = {} -) { +export function wrapPromise(pluginObj: any, methodName: string, args: any[], opts: CordovaOptions = {}) { let pluginResult: any, rej: Function; const p = getPromise((resolve: Function, reject: Function) => { if (opts.destruct) { @@ -149,7 +142,10 @@ function wrapObservable(pluginObj: any, methodName: string, args: any[], opts: a * @returns {Observable} */ function wrapEventObservable(event: string, element: any): Observable { - element = (typeof window !== 'undefined' && element) ? get(window, element) : element || (typeof window !== 'undefined' ? window : {}); + element = + typeof window !== 'undefined' && element + ? get(window, element) + : element || (typeof window !== 'undefined' ? window : {}); return fromEvent(element, event); } @@ -168,11 +164,7 @@ export function checkAvailability( methodName?: string, pluginName?: string ): boolean | { error: string }; -export function checkAvailability( - plugin: any, - methodName?: string, - pluginName?: string -): boolean | { error: string } { +export function checkAvailability(plugin: any, methodName?: string, pluginName?: string): boolean | { error: string } { let pluginRef, pluginInstance, pluginPackage; if (typeof plugin === 'string') { @@ -203,10 +195,7 @@ export function checkAvailability( * @private */ export function instanceAvailability(pluginObj: any, methodName?: string): boolean { - return ( - pluginObj._objectInstance && - (!methodName || typeof pluginObj._objectInstance[methodName] !== 'undefined') - ); + return pluginObj._objectInstance && (!methodName || typeof pluginObj._objectInstance[methodName] !== 'undefined'); } export function setIndex(args: any[], opts: any = {}, resolve?: Function, reject?: Function): any { @@ -328,13 +317,7 @@ export function get(element: Element | Window, path: string) { export function pluginWarn(pluginName: string, plugin?: string, method?: string): void { if (method) { console.warn( - 'Native: tried calling ' + - pluginName + - '.' + - method + - ', but the ' + - pluginName + - ' plugin is not installed.' + 'Native: tried calling ' + pluginName + '.' + method + ', but the ' + pluginName + ' plugin is not installed.' ); } else { console.warn(`Native: tried accessing the ${pluginName} plugin but it's not installed.`); diff --git a/src/@ionic-native/core/decorators/cordova-function-override.ts b/src/@ionic-native/core/decorators/cordova-function-override.ts index 302acdcb8..b9a874c7b 100644 --- a/src/@ionic-native/core/decorators/cordova-function-override.ts +++ b/src/@ionic-native/core/decorators/cordova-function-override.ts @@ -17,10 +17,6 @@ function overrideFunction(pluginObj: any, methodName: string): Observable { }); } -export function cordovaFunctionOverride( - pluginObj: any, - methodName: string, - args: IArguments | any[] = [] -) { +export function cordovaFunctionOverride(pluginObj: any, methodName: string, args: IArguments | any[] = []) { return overrideFunction(pluginObj, methodName); } diff --git a/src/@ionic-native/core/decorators/cordova-instance.ts b/src/@ionic-native/core/decorators/cordova-instance.ts index 474783bb0..fc798ad9b 100644 --- a/src/@ionic-native/core/decorators/cordova-instance.ts +++ b/src/@ionic-native/core/decorators/cordova-instance.ts @@ -1,12 +1,7 @@ import { wrapInstance } from './common'; import { CordovaOptions } from './interfaces'; -export function cordovaInstance( - pluginObj: any, - methodName: string, - config: CordovaOptions, - args: IArguments | any[] -) { +export function cordovaInstance(pluginObj: any, methodName: string, config: CordovaOptions, args: IArguments | any[]) { args = Array.from(args); return wrapInstance(pluginObj, methodName, config).apply(this, args); } diff --git a/src/@ionic-native/core/decorators/cordova.ts b/src/@ionic-native/core/decorators/cordova.ts index 2d9f517fa..44f0ab091 100644 --- a/src/@ionic-native/core/decorators/cordova.ts +++ b/src/@ionic-native/core/decorators/cordova.ts @@ -1,11 +1,6 @@ import { wrap } from './common'; import { CordovaOptions } from './interfaces'; -export function cordova( - pluginObj: any, - methodName: string, - config: CordovaOptions, - args: IArguments | any[] -) { +export function cordova(pluginObj: any, methodName: string, config: CordovaOptions, args: IArguments | any[]) { return wrap(pluginObj, methodName, config).apply(this, args); } diff --git a/src/@ionic-native/core/ng1.ts b/src/@ionic-native/core/ng1.ts index 5fb7993dc..4a6d03225 100644 --- a/src/@ionic-native/core/ng1.ts +++ b/src/@ionic-native/core/ng1.ts @@ -19,7 +19,7 @@ export function initAngular1(plugins: any) { const funcs = window.angular.copy(cls); funcs.__proto__['name'] = name; return funcs; - } + }, ]); })(serviceName, cls, name); } diff --git a/src/@ionic-native/plugins/abbyy-rtr/index.ts b/src/@ionic-native/plugins/abbyy-rtr/index.ts index c8b6e6680..e67d59998 100644 --- a/src/@ionic-native/plugins/abbyy-rtr/index.ts +++ b/src/@ionic-native/plugins/abbyy-rtr/index.ts @@ -299,7 +299,7 @@ export interface DataCaptureResult { pluginRef: 'AbbyyRtrSdk', repo: 'https://github.com/abbyysdk/RTR-SDK.Cordova', install: 'ionic cordova plugin add cordova-plugin-abbyy-rtr-sdk', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class AbbyyRTR extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/action-sheet/index.ts b/src/@ionic-native/plugins/action-sheet/index.ts index 6e7a31ee1..708f171ac 100644 --- a/src/@ionic-native/plugins/action-sheet/index.ts +++ b/src/@ionic-native/plugins/action-sheet/index.ts @@ -93,7 +93,7 @@ export interface ActionSheetOptions { plugin: 'cordova-plugin-actionsheet', pluginRef: 'plugins.actionsheet', repo: 'https://github.com/EddyVerbruggen/cordova-plugin-actionsheet', - platforms: ['Android', 'Browser', 'iOS', 'Windows', 'Windows Phone 8'] + platforms: ['Android', 'Browser', 'iOS', 'Windows', 'Windows Phone 8'], }) @Injectable() export class ActionSheet extends IonicNativePlugin { @@ -111,7 +111,7 @@ export class ActionSheet extends IonicNativePlugin { THEME_HOLO_DARK: 2, THEME_HOLO_LIGHT: 3, THEME_DEVICE_DEFAULT_DARK: 4, - THEME_DEVICE_DEFAULT_LIGHT: 5 + THEME_DEVICE_DEFAULT_LIGHT: 5, }; /** diff --git a/src/@ionic-native/plugins/adjust/index.ts b/src/@ionic-native/plugins/adjust/index.ts index 6050c5cc2..c3eb00e3f 100644 --- a/src/@ionic-native/plugins/adjust/index.ts +++ b/src/@ionic-native/plugins/adjust/index.ts @@ -117,15 +117,11 @@ export class AdjustConfig { this.attributionCallback = attributionCallback; } - setEventTrackingSucceededCallbackListener( - eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void - ) { + setEventTrackingSucceededCallbackListener(eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void) { this.eventTrackingSucceededCallback = eventTrackingSucceededCallback; } - setEventTrackingFailedCallbackListener( - eventTrackingFailedCallback: (event: AdjustEventFailure) => void - ) { + setEventTrackingFailedCallbackListener(eventTrackingFailedCallback: (event: AdjustEventFailure) => void) { this.eventTrackingFailedCallback = eventTrackingFailedCallback; } @@ -135,9 +131,7 @@ export class AdjustConfig { this.sessionTrackingSucceededCallback = sessionTrackingSucceededCallback; } - setSessionTrackingFailedCallbackListener( - sessionTrackingFailedCallback: (session: AdjustSessionFailure) => void - ) { + setSessionTrackingFailedCallbackListener(sessionTrackingFailedCallback: (session: AdjustSessionFailure) => void) { this.sessionTrackingFailedCallback = sessionTrackingFailedCallback; } @@ -241,7 +235,7 @@ export interface AdjustEventFailure { export enum AdjustEnvironment { Sandbox = 'sandbox', - Production = 'production' + Production = 'production', } export enum AdjustLogLevel { @@ -251,7 +245,7 @@ export enum AdjustLogLevel { Warn = 'WARN', Error = 'ERROR', Assert = 'ASSERT', - Suppress = 'SUPPRESS' + Suppress = 'SUPPRESS', } /** @@ -293,7 +287,7 @@ export enum AdjustLogLevel { plugin: 'com.adjust.sdk', pluginRef: 'Adjust', repo: 'https://github.com/adjust/cordova_sdk', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Adjust extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/admob-free/index.ts b/src/@ionic-native/plugins/admob-free/index.ts index 7f508252e..0b2f78842 100644 --- a/src/@ionic-native/plugins/admob-free/index.ts +++ b/src/@ionic-native/plugins/admob-free/index.ts @@ -31,7 +31,7 @@ export interface AdMobFreeBannerConfig { * Location targeting. It accept an array in the form of `[latitude, longitude]`. * Android-only. Default is not calling `setLatitude` and `setLongitude`. */ - location?: (number)[] | null; + location?: number[] | null; /** * Set to true, to put banner at top */ @@ -79,7 +79,7 @@ export interface AdMobFreeInterstitialConfig { * Location targeting. It accept an array in the form of `[latitude, longitude]`. * Android-only. Default is not calling `setLatitude` and `setLongitude`. */ - location?: (number)[] | null; + location?: number[] | null; } export interface AdMobFreeRewardVideoConfig { @@ -111,7 +111,7 @@ export interface AdMobFreeRewardVideoConfig { * Location targeting. It accept an array in the form of `[latitude, longitude]`. * Android-only. Default is not calling `setLatitude` and `setLongitude`. */ - location?: (number)[] | null; + location?: number[] | null; } /** @@ -163,7 +163,7 @@ export interface AdMobFreeRewardVideoConfig { plugin: 'cordova-plugin-admob-free', pluginRef: 'admob', repo: 'https://github.com/ratson/cordova-plugin-admob-free', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class AdMobFree extends IonicNativePlugin { @@ -190,7 +190,7 @@ export class AdMobFree extends IonicNativePlugin { REWARD_VIDEO_CLOSE: 'admob.rewardvideo.events.CLOSE', REWARD_VIDEO_EXIT_APP: 'admob.rewardvideo.events.EXIT_APP', REWARD_VIDEO_START: 'admob.rewardvideo.events.START', - REWARD_VIDEO_REWARD: 'admob.rewardvideo.events.REWARD' + REWARD_VIDEO_REWARD: 'admob.rewardvideo.events.REWARD', }; /** @@ -227,7 +227,7 @@ export class AdMobFree extends IonicNativePlugin { @Plugin({ pluginName: 'AdMobFree', plugin: 'cordova-plugin-admob-free', - pluginRef: 'admob.banner' + pluginRef: 'admob.banner', }) export class AdMobFreeBanner extends IonicNativePlugin { /** @@ -283,7 +283,7 @@ export class AdMobFreeBanner extends IonicNativePlugin { @Plugin({ pluginName: 'AdMobFree', plugin: 'cordova-plugin-admob-free', - pluginRef: 'admob.interstitial' + pluginRef: 'admob.interstitial', }) export class AdMobFreeInterstitial extends IonicNativePlugin { /** @@ -330,7 +330,7 @@ export class AdMobFreeInterstitial extends IonicNativePlugin { @Plugin({ pluginName: 'AdMobFree', plugin: 'cordova-plugin-admob-free', - pluginRef: 'admob.rewardvideo' + pluginRef: 'admob.rewardvideo', }) export class AdMobFreeRewardVideo extends IonicNativePlugin { /** diff --git a/src/@ionic-native/plugins/admob-plus/index.ts b/src/@ionic-native/plugins/admob-plus/index.ts index af258eb96..8f79ce004 100644 --- a/src/@ionic-native/plugins/admob-plus/index.ts +++ b/src/@ionic-native/plugins/admob-plus/index.ts @@ -2,10 +2,12 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable, fromEvent } from 'rxjs'; -export type AdUnitIDOption = string | { - android: string; - ios: string; -}; +export type AdUnitIDOption = + | string + | { + android: string; + ios: string; + }; /** * @name AdMob Plus @@ -13,87 +15,87 @@ export type AdUnitIDOption = string | { * AdMob Plus is the successor of cordova-plugin-admob-free, which provides a cleaner API and build with modern tools. */ @Plugin({ - plugin: 'cordova-admob-plus', - pluginName: 'AdMob', - pluginRef: 'admob.banner', - repo: 'https://github.com/admob-plus/admob-plus', - platforms: ['Android', 'iOS'] + plugin: 'cordova-admob-plus', + pluginName: 'AdMob', + pluginRef: 'admob.banner', + repo: 'https://github.com/admob-plus/admob-plus', + platforms: ['Android', 'iOS'], }) export class Banner { - @Cordova({ otherPromise: true }) - hide(): Promise { - return Promise.resolve(); - } + @Cordova({ otherPromise: true }) + hide(): Promise { + return Promise.resolve(); + } - @Cordova({ otherPromise: true }) - show(opts: { id?: AdUnitIDOption }): Promise { - return Promise.resolve(); - } + @Cordova({ otherPromise: true }) + show(opts: { id?: AdUnitIDOption }): Promise { + return Promise.resolve(); + } } @Plugin({ - plugin: 'cordova-admob-plus', - pluginName: 'AdMob', - pluginRef: 'admob.interstitial', + plugin: 'cordova-admob-plus', + pluginName: 'AdMob', + pluginRef: 'admob.interstitial', }) export class Interstitial { - @Cordova({ otherPromise: true }) - load(opts: { id?: AdUnitIDOption }): Promise { - return Promise.resolve(); - } + @Cordova({ otherPromise: true }) + load(opts: { id?: AdUnitIDOption }): Promise { + return Promise.resolve(); + } - @Cordova({ otherPromise: true }) - show(): Promise { - return Promise.resolve(); - } + @Cordova({ otherPromise: true }) + show(): Promise { + return Promise.resolve(); + } } @Plugin({ - plugin: 'cordova-admob-plus', - pluginName: 'AdMob', - pluginRef: 'admob.rewardVideo', + plugin: 'cordova-admob-plus', + pluginName: 'AdMob', + pluginRef: 'admob.rewardVideo', }) export class RewardVideo { - @Cordova({ otherPromise: true }) - load(opts: { id?: AdUnitIDOption }): Promise { - return Promise.resolve(); - } + @Cordova({ otherPromise: true }) + load(opts: { id?: AdUnitIDOption }): Promise { + return Promise.resolve(); + } - @Cordova({ otherPromise: true }) - show(): Promise { - return Promise.resolve(); - } + @Cordova({ otherPromise: true }) + show(): Promise { + return Promise.resolve(); + } } @Plugin({ - platforms: ['Android', 'iOS'], - plugin: 'cordova-admob-plus', - pluginName: 'AdMob', - pluginRef: 'admob', - repo: 'https://github.com/admob-plus/admob-plus', + platforms: ['Android', 'iOS'], + plugin: 'cordova-admob-plus', + pluginName: 'AdMob', + pluginRef: 'admob', + repo: 'https://github.com/admob-plus/admob-plus', }) @Injectable() export class AdMob extends IonicNativePlugin { - banner = new Banner(); - interstitial = new Interstitial(); - rewardVideo = new RewardVideo(); + banner = new Banner(); + interstitial = new Interstitial(); + rewardVideo = new RewardVideo(); - @Cordova({ otherPromise: true }) - setAppMuted(value: boolean): Promise { - return Promise.resolve(); - } + @Cordova({ otherPromise: true }) + setAppMuted(value: boolean): Promise { + return Promise.resolve(); + } - @Cordova({ otherPromise: true }) - setAppVolume(value: number): Promise { - return Promise.resolve(); - } + @Cordova({ otherPromise: true }) + setAppVolume(value: number): Promise { + return Promise.resolve(); + } - @Cordova({ sync: true }) - setDevMode(value: boolean): void { - return undefined; - } + @Cordova({ sync: true }) + setDevMode(value: boolean): void { + return undefined; + } - on(event: string): Observable { - return fromEvent(document, event); - } + on(event: string): Observable { + return fromEvent(document, event); + } } diff --git a/src/@ionic-native/plugins/admob-pro/index.ts b/src/@ionic-native/plugins/admob-pro/index.ts index 53a04b84d..7ce160c3b 100644 --- a/src/@ionic-native/plugins/admob-pro/index.ts +++ b/src/@ionic-native/plugins/admob-pro/index.ts @@ -138,7 +138,7 @@ export interface AdExtras { plugin: 'cordova-plugin-admobpro', pluginRef: 'AdMob', repo: 'https://github.com/floatinghotpot/cordova-admob-pro', - platforms: ['Android', 'iOS', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows Phone 8'], }) @Injectable() export class AdMobPro extends IonicNativePlugin { @@ -165,7 +165,7 @@ export class AdMobPro extends IonicNativePlugin { BOTTOM_LEFT: 7, BOTTOM_CENTER: 8, BOTTOM_RIGHT: 9, - POS_XY: 10 + POS_XY: 10, }; /** @@ -182,7 +182,7 @@ export class AdMobPro extends IonicNativePlugin { * Destroy the banner, remove it from screen. */ @Cordova({ - sync: true + sync: true, }) removeBanner(): void {} @@ -191,7 +191,7 @@ export class AdMobPro extends IonicNativePlugin { * @param {number} position Position. Use `AdMobPro.AD_POSITION` to set values. */ @Cordova({ - sync: true + sync: true, }) showBanner(position: number): void {} @@ -201,7 +201,7 @@ export class AdMobPro extends IonicNativePlugin { * @param {number} y Offset from screen top. */ @Cordova({ - sync: true + sync: true, }) showBannerAtXY(x: number, y: number): void {} @@ -209,7 +209,7 @@ export class AdMobPro extends IonicNativePlugin { * Hide the banner, remove it from screen, but can show it later */ @Cordova({ - sync: true + sync: true, }) hideBanner(): void {} @@ -227,7 +227,7 @@ export class AdMobPro extends IonicNativePlugin { * Show interstitial ad when it's ready */ @Cordova({ - sync: true + sync: true, }) showInterstitial(): void {} @@ -245,7 +245,7 @@ export class AdMobPro extends IonicNativePlugin { * Show a reward video ad */ @Cordova({ - sync: true + sync: true, }) showRewardVideoAd(): void {} @@ -275,7 +275,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onAdFailLoad', - element: 'document' + element: 'document', }) onAdFailLoad(): Observable { return; @@ -288,7 +288,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onAdLoaded', - element: 'document' + element: 'document', }) onAdLoaded(): Observable { return; @@ -301,7 +301,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onAdPresent', - element: 'document' + element: 'document', }) onAdPresent(): Observable { return; @@ -314,7 +314,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onAdLeaveApp', - element: 'document' + element: 'document', }) onAdLeaveApp(): Observable { return; @@ -327,7 +327,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onAdDismiss', - element: 'document' + element: 'document', }) onAdDismiss(): Observable { return; diff --git a/src/@ionic-native/plugins/admob/index.ts b/src/@ionic-native/plugins/admob/index.ts index fe2facc23..937f7ec03 100644 --- a/src/@ionic-native/plugins/admob/index.ts +++ b/src/@ionic-native/plugins/admob/index.ts @@ -257,7 +257,7 @@ export interface AdmobOptions { plugin: 'cordova-admob', pluginRef: 'admob', repo: 'https://github.com/appfeel/admob-google-cordova', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Admob extends IonicNativePlugin { @@ -375,7 +375,7 @@ export class Admob extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'appfeel.cordova.admob.onAdLoaded', - element: document + element: document, }) onAdLoaded(): Observable { return; @@ -388,7 +388,7 @@ export class Admob extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'appfeel.cordova.admob.onAdFailedToLoad', - element: document + element: document, }) onAdFailedToLoad(): Observable { return; @@ -402,7 +402,7 @@ export class Admob extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'appfeel.cordova.admob.onAdOpened', - element: document + element: document, }) onAdOpened(): Observable { return; @@ -416,7 +416,7 @@ export class Admob extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'appfeel.cordova.admob.onAdClosed', - element: document + element: document, }) onAdClosed(): Observable { return; @@ -429,7 +429,7 @@ export class Admob extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'appfeel.cordova.admob.onAdLeftApplication', - element: document + element: document, }) onAdLeftApplication(): Observable { return; @@ -442,7 +442,7 @@ export class Admob extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'appfeel.cordova.admob.onRewardedAd', - element: document + element: document, }) onRewardedAd(): Observable { return; @@ -455,7 +455,7 @@ export class Admob extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'appfeel.cordova.admob.onRewardedAdVideoStarted', - element: document + element: document, }) onRewardedAdVideoStarted(): Observable { return; @@ -468,7 +468,7 @@ export class Admob extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'appfeel.cordova.admob.onRewardedAdVideoCompleted', - element: document + element: document, }) onRewardedAdVideoCompleted(): Observable { return; diff --git a/src/@ionic-native/plugins/aes-256/index.ts b/src/@ionic-native/plugins/aes-256/index.ts index 90a14e4b7..e7e0ed648 100644 --- a/src/@ionic-native/plugins/aes-256/index.ts +++ b/src/@ionic-native/plugins/aes-256/index.ts @@ -52,7 +52,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; pluginRef: 'cordova.plugins.AES256', repo: 'https://github.com/Ideas2IT/cordova-aes256', platforms: ['Android', 'iOS'], - install: 'ionic cordova plugin add cordova-plugin-aes256-encryption' + install: 'ionic cordova plugin add cordova-plugin-aes256-encryption', }) @Injectable() export class AES256 extends IonicNativePlugin { @@ -101,5 +101,4 @@ export class AES256 extends IonicNativePlugin { generateSecureIV(password: string): Promise { return; } - } diff --git a/src/@ionic-native/plugins/alipay/index.ts b/src/@ionic-native/plugins/alipay/index.ts index 1bcc684b9..f4273601c 100644 --- a/src/@ionic-native/plugins/alipay/index.ts +++ b/src/@ionic-native/plugins/alipay/index.ts @@ -34,7 +34,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; repo: 'https://github.com/jing-zhou/cordova-plugin-alipay', install: 'ionic cordova plugin add cordova-plugin-gubnoi-alipay --variable APP_ID=your_app_id', installVariables: ['APP_ID'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Alipay extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/analytics-firebase/index.ts b/src/@ionic-native/plugins/analytics-firebase/index.ts index 937941e23..e41178c3e 100644 --- a/src/@ionic-native/plugins/analytics-firebase/index.ts +++ b/src/@ionic-native/plugins/analytics-firebase/index.ts @@ -58,7 +58,7 @@ import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-nati plugin: 'cordova-plugin-analytics', pluginRef: 'analytics', repo: 'https://github.com/appfeel/analytics-google', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class AnalyticsFirebase extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/android-exoplayer/index.ts b/src/@ionic-native/plugins/android-exoplayer/index.ts index 09112758a..3bf805763 100644 --- a/src/@ionic-native/plugins/android-exoplayer/index.ts +++ b/src/@ionic-native/plugins/android-exoplayer/index.ts @@ -178,7 +178,7 @@ export interface AndroidExoPlayerControllerConfig { plugin: 'cordova-plugin-exoplayer', pluginRef: 'ExoPlayer', repo: 'https://github.com/frontyard/cordova-plugin-exoplayer', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class AndroidExoplayer extends IonicNativePlugin { @@ -192,7 +192,7 @@ export class AndroidExoplayer extends IonicNativePlugin { clearFunction: 'close', clearWithArgs: false, successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) show(parameters: AndroidExoPlayerParams): Observable { return; @@ -205,10 +205,7 @@ export class AndroidExoplayer extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setStream( - url: string, - controller: AndroidExoPlayerControllerConfig - ): Promise { + setStream(url: string, controller: AndroidExoPlayerControllerConfig): Promise { return; } diff --git a/src/@ionic-native/plugins/android-fingerprint-auth/index.ts b/src/@ionic-native/plugins/android-fingerprint-auth/index.ts index 160192326..8bedf9335 100644 --- a/src/@ionic-native/plugins/android-fingerprint-auth/index.ts +++ b/src/@ionic-native/plugins/android-fingerprint-auth/index.ts @@ -155,7 +155,7 @@ export interface AFADeleteOptions { plugin: 'cordova-plugin-android-fingerprint-auth', pluginRef: 'FingerprintAuth', repo: 'https://github.com/mjwheatley/cordova-plugin-android-fingerprint-auth', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class AndroidFingerprintAuth extends IonicNativePlugin { @@ -199,7 +199,7 @@ export class AndroidFingerprintAuth extends IonicNativePlugin { MISSING_ACTION_PARAMETERS: 'MISSING_ACTION_PARAMETERS', MISSING_PARAMETERS: 'MISSING_PARAMETERS', NO_SUCH_ALGORITHM_EXCEPTION: 'NO_SUCH_ALGORITHM_EXCEPTION', - SECURITY_EXCEPTION: 'SECURITY_EXCEPTION' + SECURITY_EXCEPTION: 'SECURITY_EXCEPTION', }; /** diff --git a/src/@ionic-native/plugins/android-full-screen/index.ts b/src/@ionic-native/plugins/android-full-screen/index.ts index 92bc6aee5..b75aa7aa3 100644 --- a/src/@ionic-native/plugins/android-full-screen/index.ts +++ b/src/@ionic-native/plugins/android-full-screen/index.ts @@ -25,7 +25,7 @@ export enum AndroidSystemUiFlags { /** View would like to remain interactive when hiding the status bar with SYSTEM_UI_FLAG_FULLSCREEN and/or hiding the navigation bar with SYSTEM_UI_FLAG_HIDE_NAVIGATION. SYSTEM_UI_FLAG_IMMERSIVE_STICKY */ ImmersiveSticky = 4096, /** Requests the status bar to draw in a mode that is compatible with light status bar backgrounds. SYSTEM_UI_FLAG_LIGHT_STATUS_BAR */ - LightStatusBar = 8192 + LightStatusBar = 8192, } /** @@ -53,7 +53,7 @@ export enum AndroidSystemUiFlags { plugin: 'cordova-plugin-fullscreen', pluginRef: 'AndroidFullScreen', repo: 'https://github.com/mesmotronic/cordova-plugin-fullscreen', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class AndroidFullScreen extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/android-permissions/index.ts b/src/@ionic-native/plugins/android-permissions/index.ts index ab6f4036b..05d9f7c5d 100644 --- a/src/@ionic-native/plugins/android-permissions/index.ts +++ b/src/@ionic-native/plugins/android-permissions/index.ts @@ -33,7 +33,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-android-permissions', pluginRef: 'cordova.plugins.permissions', repo: 'https://github.com/NeoLSN/cordova-plugin-android-permissions', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class AndroidPermissions extends IonicNativePlugin { @@ -41,8 +41,7 @@ export class AndroidPermissions extends IonicNativePlugin { ACCESS_CHECKIN_PROPERTIES: 'android.permission.ACCESS_CHECKIN_PROPERTIES', ACCESS_COARSE_LOCATION: 'android.permission.ACCESS_COARSE_LOCATION', ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION', - ACCESS_LOCATION_EXTRA_COMMANDS: - 'android.permission.ACCESS_LOCATION_EXTRA_COMMANDS', + ACCESS_LOCATION_EXTRA_COMMANDS: 'android.permission.ACCESS_LOCATION_EXTRA_COMMANDS', ACCESS_MOCK_LOCATION: 'android.permission.ACCESS_MOCK_LOCATION', ACCESS_NETWORK_STATE: 'android.permission.ACCESS_NETWORK_STATE', ACCESS_SURFACE_FLINGER: 'android.permission.ACCESS_SURFACE_FLINGER', @@ -53,14 +52,12 @@ export class AndroidPermissions extends IonicNativePlugin { BATTERY_STATS: 'android.permission.BATTERY_STATS', BIND_ACCESSIBILITY_SERVICE: 'android.permission.BIND_ACCESSIBILITY_SERVICE', BIND_APPWIDGET: 'android.permission.BIND_APPWIDGET', - BIND_CARRIER_MESSAGING_SERVICE: - 'android.permission.BIND_CARRIER_MESSAGING_SERVICE', + BIND_CARRIER_MESSAGING_SERVICE: 'android.permission.BIND_CARRIER_MESSAGING_SERVICE', BIND_DEVICE_ADMIN: 'android.permission.BIND_DEVICE_ADMIN', BIND_DREAM_SERVICE: 'android.permission.BIND_DREAM_SERVICE', BIND_INPUT_METHOD: 'android.permission.BIND_INPUT_METHOD', BIND_NFC_SERVICE: 'android.permission.BIND_NFC_SERVICE', - BIND_NOTIFICATION_LISTENER_SERVICE: - 'android.permission.BIND_NOTIFICATION_LISTENER_SERVICE', + BIND_NOTIFICATION_LISTENER_SERVICE: 'android.permission.BIND_NOTIFICATION_LISTENER_SERVICE', BIND_PRINT_SERVICE: 'android.permission.BIND_PRINT_SERVICE', BIND_REMOTEVIEWS: 'android.permission.BIND_REMOTEVIEWS', BIND_TEXT_SERVICE: 'android.permission.BIND_TEXT_SERVICE', @@ -81,15 +78,12 @@ export class AndroidPermissions extends IonicNativePlugin { CALL_PRIVILEGED: 'android.permission.CALL_PRIVILEGED', CAMERA: 'android.permission.CAMERA', CAPTURE_AUDIO_OUTPUT: 'android.permission.CAPTURE_AUDIO_OUTPUT', - CAPTURE_SECURE_VIDEO_OUTPUT: - 'android.permission.CAPTURE_SECURE_VIDEO_OUTPUT', + CAPTURE_SECURE_VIDEO_OUTPUT: 'android.permission.CAPTURE_SECURE_VIDEO_OUTPUT', CAPTURE_VIDEO_OUTPUT: 'android.permission.CAPTURE_VIDEO_OUTPUT', - CHANGE_COMPONENT_ENABLED_STATE: - 'android.permission.CHANGE_COMPONENT_ENABLED_STATE', + CHANGE_COMPONENT_ENABLED_STATE: 'android.permission.CHANGE_COMPONENT_ENABLED_STATE', CHANGE_CONFIGURATION: 'android.permission.CHANGE_CONFIGURATION', CHANGE_NETWORK_STATE: 'android.permission.CHANGE_NETWORK_STATE', - CHANGE_WIFI_MULTICAST_STATE: - 'android.permission.CHANGE_WIFI_MULTICAST_STATE', + CHANGE_WIFI_MULTICAST_STATE: 'android.permission.CHANGE_WIFI_MULTICAST_STATE', CHANGE_WIFI_STATE: 'android.permission.CHANGE_WIFI_STATE', CLEAR_APP_CACHE: 'android.permission.CLEAR_APP_CACHE', CLEAR_APP_USER_DATA: 'android.permission.CLEAR_APP_USER_DATA', @@ -135,8 +129,7 @@ export class AndroidPermissions extends IonicNativePlugin { READ_CONTACTS: 'android.permission.READ_CONTACTS', READ_EXTERNAL_STORAGE: 'android.permission.READ_EXTERNAL_STORAGE', READ_FRAME_BUFFER: 'android.permission.READ_FRAME_BUFFER', - READ_HISTORY_BOOKMARKS: - 'com.android.browser.permission.READ_HISTORY_BOOKMARKS', + READ_HISTORY_BOOKMARKS: 'com.android.browser.permission.READ_HISTORY_BOOKMARKS', READ_INPUT_STATE: 'android.permission.READ_INPUT_STATE', READ_LOGS: 'android.permission.READ_LOGS', READ_PHONE_STATE: 'android.permission.READ_PHONE_STATE', @@ -170,8 +163,7 @@ export class AndroidPermissions extends IonicNativePlugin { SET_TIME_ZONE: 'android.permission.SET_TIME_ZONE', SET_WALLPAPER: 'android.permission.SET_WALLPAPER', SET_WALLPAPER_HINTS: 'android.permission.SET_WALLPAPER_HINTS', - SIGNAL_PERSISTENT_PROCESSES: - 'android.permission.SIGNAL_PERSISTENT_PROCESSES', + SIGNAL_PERSISTENT_PROCESSES: 'android.permission.SIGNAL_PERSISTENT_PROCESSES', STATUS_BAR: 'android.permission.STATUS_BAR', SUBSCRIBED_FEEDS_READ: 'android.permission.SUBSCRIBED_FEEDS_READ', SUBSCRIBED_FEEDS_WRITE: 'android.permission.SUBSCRIBED_FEEDS_WRITE', @@ -189,8 +181,7 @@ export class AndroidPermissions extends IonicNativePlugin { WRITE_CONTACTS: 'android.permission.WRITE_CONTACTS', WRITE_EXTERNAL_STORAGE: 'android.permission.WRITE_EXTERNAL_STORAGE', WRITE_GSERVICES: 'android.permission.WRITE_GSERVICES', - WRITE_HISTORY_BOOKMARKS: - 'com.android.browser.permission.WRITE_HISTORY_BOOKMARKS', + WRITE_HISTORY_BOOKMARKS: 'com.android.browser.permission.WRITE_HISTORY_BOOKMARKS', WRITE_PROFILE: 'android.permission.WRITE_PROFILE', WRITE_SECURE_SETTINGS: 'android.permission.WRITE_SECURE_SETTINGS', WRITE_SETTINGS: 'android.permission.WRITE_SETTINGS', @@ -198,7 +189,7 @@ export class AndroidPermissions extends IonicNativePlugin { WRITE_SOCIAL_STREAM: 'android.permission.WRITE_SOCIAL_STREAM', WRITE_SYNC_SETTINGS: 'android.permission.WRITE_SYNC_SETTINGS', WRITE_USER_DICTIONARY: 'android.permission.WRITE_USER_DICTIONARY', - WRITE_VOICEMAIL: 'com.android.voicemail.permission.WRITE_VOICEMAIL' + WRITE_VOICEMAIL: 'com.android.voicemail.permission.WRITE_VOICEMAIL', }; /** diff --git a/src/@ionic-native/plugins/anyline/index.ts b/src/@ionic-native/plugins/anyline/index.ts index 887a7a89e..b936d7234 100644 --- a/src/@ionic-native/plugins/anyline/index.ts +++ b/src/@ionic-native/plugins/anyline/index.ts @@ -35,7 +35,7 @@ export interface AnylineOptions { plugin: 'io-anyline-cordova', pluginRef: 'Anyline', repo: 'https://github.com/Anyline/anyline-ocr-cordova-module', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Anyline extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/app-availability/index.ts b/src/@ionic-native/plugins/app-availability/index.ts index c978e06e2..94665fa30 100644 --- a/src/@ionic-native/plugins/app-availability/index.ts +++ b/src/@ionic-native/plugins/app-availability/index.ts @@ -37,11 +37,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-appavailability', pluginRef: 'appAvailability', repo: 'https://github.com/ohh2ahh/AppAvailability', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class AppAvailability extends IonicNativePlugin { - /** * Checks if an app is available on device * @param {string} app Package name on android, or URI scheme on iOS @@ -51,5 +50,4 @@ export class AppAvailability extends IonicNativePlugin { check(app: string): Promise { return; } - } diff --git a/src/@ionic-native/plugins/app-center-analytics/index.ts b/src/@ionic-native/plugins/app-center-analytics/index.ts index f323c6e1b..bcd8e1a70 100644 --- a/src/@ionic-native/plugins/app-center-analytics/index.ts +++ b/src/@ionic-native/plugins/app-center-analytics/index.ts @@ -38,9 +38,8 @@ export interface StringMap { pluginName: 'AppCenterAnalytics', plugin: 'cordova-plugin-appcenter-analytics', pluginRef: 'AppCenter.Analytics', - repo: - 'https://github.com/Microsoft/appcenter-sdk-cordova/tree/master/cordova-plugin-appcenter-analytics', - platforms: ['Android', 'iOS'] + repo: 'https://github.com/Microsoft/appcenter-sdk-cordova/tree/master/cordova-plugin-appcenter-analytics', + platforms: ['Android', 'iOS'], }) @Injectable() export class AppCenterAnalytics extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/app-center-crashes/index.ts b/src/@ionic-native/plugins/app-center-crashes/index.ts index 318f407fb..8382afadc 100644 --- a/src/@ionic-native/plugins/app-center-crashes/index.ts +++ b/src/@ionic-native/plugins/app-center-crashes/index.ts @@ -62,9 +62,8 @@ export interface AppCenterCrashReportDevice { pluginName: 'AppCenterCrashes', plugin: 'cordova-plugin-appcenter-crashes', pluginRef: 'AppCenter.Crashes', - repo: - 'https://github.com/Microsoft/appcenter-sdk-cordova/tree/master/cordova-plugin-appcenter-crashes', - platforms: ['Android', 'iOS'] + repo: 'https://github.com/Microsoft/appcenter-sdk-cordova/tree/master/cordova-plugin-appcenter-crashes', + platforms: ['Android', 'iOS'], }) @Injectable() export class AppCenterCrashes extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/app-center-push/index.ts b/src/@ionic-native/plugins/app-center-push/index.ts index d0a931296..ba636bdbf 100644 --- a/src/@ionic-native/plugins/app-center-push/index.ts +++ b/src/@ionic-native/plugins/app-center-push/index.ts @@ -29,9 +29,8 @@ import { Observable } from 'rxjs'; pluginName: 'AppCenterPush', plugin: 'cordova-plugin-appcenter-push', pluginRef: 'AppCenter.Push', - repo: - 'https://github.com/Microsoft/appcenter-sdk-cordova/tree/master/cordova-plugin-appcenter-push', - platforms: ['Android', 'iOS'] + repo: 'https://github.com/Microsoft/appcenter-sdk-cordova/tree/master/cordova-plugin-appcenter-push', + platforms: ['Android', 'iOS'], }) @Injectable() export class AppCenterPush extends IonicNativePlugin { @@ -42,7 +41,7 @@ export class AppCenterPush extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'removeEventListener' + clearFunction: 'removeEventListener', }) addEventListener(eventName: string): Observable { return; diff --git a/src/@ionic-native/plugins/app-launcher/index.ts b/src/@ionic-native/plugins/app-launcher/index.ts index dd39890e7..9356e1095 100644 --- a/src/@ionic-native/plugins/app-launcher/index.ts +++ b/src/@ionic-native/plugins/app-launcher/index.ts @@ -40,7 +40,7 @@ export interface AppLauncherOptions { plugin: 'cordova-plugin-app-launcher', pluginRef: 'window.plugins.launcher', repo: 'https://github.com/nchutchind/cordova-plugin-app-launcher', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class AppLauncher extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/app-minimize/index.ts b/src/@ionic-native/plugins/app-minimize/index.ts index 393852184..695f4cdfa 100644 --- a/src/@ionic-native/plugins/app-minimize/index.ts +++ b/src/@ionic-native/plugins/app-minimize/index.ts @@ -27,11 +27,10 @@ import { Injectable } from '@angular/core'; plugin: 'cordova-plugin-appminimize', pluginRef: 'plugins.appMinimize', repo: 'https://github.com/tomloprod/cordova-plugin-appminimize', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class AppMinimize extends IonicNativePlugin { - /** * Minimizes the application * @return {Promise} @@ -40,5 +39,4 @@ export class AppMinimize extends IonicNativePlugin { minimize(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/app-preferences/index.ts b/src/@ionic-native/plugins/app-preferences/index.ts index f8f1fe24e..7ffd01ad2 100644 --- a/src/@ionic-native/plugins/app-preferences/index.ts +++ b/src/@ionic-native/plugins/app-preferences/index.ts @@ -25,15 +25,7 @@ import { Injectable } from '@angular/core'; plugin: 'cordova-plugin-app-preferences', pluginRef: 'plugins.appPreferences', repo: 'https://github.com/apla/me.apla.cordova.app-preferences', - platforms: [ - 'Android', - 'BlackBerry 10', - 'Browser', - 'iOS', - 'macOS', - 'Windows 8', - 'Windows Phone' - ] + platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'macOS', 'Windows 8', 'Windows Phone'], }) @Injectable() export class AppPreferences extends IonicNativePlugin { @@ -45,7 +37,7 @@ export class AppPreferences extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) fetch(dict: string, key?: string): Promise { return; @@ -60,7 +52,7 @@ export class AppPreferences extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) store(dict: string, key: string, value?: any): Promise { return; @@ -74,7 +66,7 @@ export class AppPreferences extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) remove(dict: string, key?: string): Promise { return; @@ -86,7 +78,7 @@ export class AppPreferences extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) clearAll(): Promise { return; @@ -98,7 +90,7 @@ export class AppPreferences extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) show(): Promise { return; @@ -111,7 +103,7 @@ export class AppPreferences extends IonicNativePlugin { * @return {Observable} Returns an observable */ @Cordova({ - observable: true + observable: true, }) watch(subscribe: boolean): Observable { return; @@ -126,7 +118,7 @@ export class AppPreferences extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) suite(suiteName: string): any { return; @@ -134,7 +126,7 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ platforms: ['iOS'], - sync: true + sync: true, }) iosSuite(suiteName: string): any { return; @@ -146,7 +138,7 @@ export class AppPreferences extends IonicNativePlugin { * @returns {Object} Custom object, bound to that suite */ @Cordova({ - platforms: ['iOS', 'Windows', 'Windows Phone 8'] + platforms: ['iOS', 'Windows', 'Windows Phone 8'], }) cloudSync(): Object { return; @@ -158,7 +150,7 @@ export class AppPreferences extends IonicNativePlugin { * @returns {Object} Custom Object, bound to that suite */ @Cordova({ - platforms: ['iOS', 'Windows', 'Windows Phone 8'] + platforms: ['iOS', 'Windows', 'Windows Phone 8'], }) defaults(): Object { return; diff --git a/src/@ionic-native/plugins/app-rate/index.ts b/src/@ionic-native/plugins/app-rate/index.ts index 64461784c..e705a18bc 100644 --- a/src/@ionic-native/plugins/app-rate/index.ts +++ b/src/@ionic-native/plugins/app-rate/index.ts @@ -179,7 +179,7 @@ export interface AppUrls { plugin: 'cordova-plugin-apprate', pluginRef: 'AppRate', repo: 'https://github.com/pushandplay/cordova-plugin-apprate', - platforms: ['Android', 'BlackBerry 10', 'iOS', 'Windows'] + platforms: ['Android', 'BlackBerry 10', 'iOS', 'Windows'], }) @Injectable() export class AppRate extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/app-update/index.ts b/src/@ionic-native/plugins/app-update/index.ts index c2b878f10..2e66e9e30 100644 --- a/src/@ionic-native/plugins/app-update/index.ts +++ b/src/@ionic-native/plugins/app-update/index.ts @@ -47,7 +47,7 @@ export interface AppUpdateOptions { plugin: 'cordova-plugin-app-update', pluginRef: 'AppUpdate', repo: 'https://github.com/vaenow/cordova-plugin-app-update', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class AppUpdate extends IonicNativePlugin { @@ -58,7 +58,7 @@ export class AppUpdate extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) checkAppUpdate(updateUrl: string, options?: AppUpdateOptions): Promise { return; diff --git a/src/@ionic-native/plugins/app-version/index.ts b/src/@ionic-native/plugins/app-version/index.ts index 4b51ce428..9b1626c7f 100644 --- a/src/@ionic-native/plugins/app-version/index.ts +++ b/src/@ionic-native/plugins/app-version/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - /** * @name App Version * @description @@ -30,24 +29,27 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-app-version', pluginRef: 'cordova.getAppVersion', repo: 'https://github.com/whiteoctober/cordova-plugin-app-version', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) @Injectable() export class AppVersion extends IonicNativePlugin { - /** * Returns the name of the app, e.g.: "My Awesome App" * @returns {Promise} */ @Cordova() - getAppName(): Promise { return; } + getAppName(): Promise { + return; + } /** * Returns the package name of the app, e.g.: "com.example.myawesomeapp" * @returns {Promise} */ @Cordova() - getPackageName(): Promise { return; } + getPackageName(): Promise { + return; + } /** * Returns the build identifier of the app. @@ -56,13 +58,16 @@ export class AppVersion extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getVersionCode(): Promise { return; } + getVersionCode(): Promise { + return; + } /** * Returns the version of the app, e.g.: "1.2.3" * @returns {Promise} */ @Cordova() - getVersionNumber(): Promise { return; } - + getVersionNumber(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/apple-pay/index.ts b/src/@ionic-native/plugins/apple-pay/index.ts index 954c13732..9de769fee 100644 --- a/src/@ionic-native/plugins/apple-pay/index.ts +++ b/src/@ionic-native/plugins/apple-pay/index.ts @@ -7,13 +7,7 @@ export type IMakePayments = | 'This device cannot make payments.' | 'This device can make payments but has no supported cards'; export type IShippingType = 'shipping' | 'delivery' | 'store' | 'service'; -export type IBillingRequirement = - | 'none' - | 'all' - | 'postcode' - | 'name' - | 'email' - | 'phone'; +export type IBillingRequirement = 'none' | 'all' | 'postcode' | 'name' | 'email' | 'phone'; export type ITransactionStatus = | 'success' | 'failure' @@ -24,9 +18,7 @@ export type ITransactionStatus = | 'incorrect-pin' | 'locked-pin'; export type ICompleteTransaction = 'Payment status applied.'; -export type IUpdateItemsAndShippingStatus = - | 'Updated List Info' - | 'Did you make a payment request?'; +export type IUpdateItemsAndShippingStatus = 'Updated List Info' | 'Did you make a payment request?'; export type IMerchantCapabilities = '3ds' | 'credit' | 'debit' | 'emv'; export type ISupportedNetworks = 'visa' | 'amex' | 'discover' | 'masterCard'; @@ -155,7 +147,7 @@ export interface ISelectedShippingContact { plugin: 'cordova-plugin-applepay', pluginRef: 'ApplePay', repo: 'https://github.com/samkelleher/cordova-plugin-applepay', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class ApplePay extends IonicNativePlugin { @@ -175,7 +167,7 @@ export class ApplePay extends IonicNativePlugin { * } */ @Cordova({ - otherPromise: true + otherPromise: true, }) canMakePayments(): Promise { return; @@ -191,11 +183,9 @@ export class ApplePay extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'stopListeningForShippingContactSelection' + clearFunction: 'stopListeningForShippingContactSelection', }) - startListeningForShippingContactSelection(): Observable< - ISelectedShippingContact - > { + startListeningForShippingContactSelection(): Observable { return; } @@ -205,7 +195,7 @@ export class ApplePay extends IonicNativePlugin { * really only fail if this is called without starting listening */ @Cordova({ - otherPromise: true + otherPromise: true, }) stopListeningForShippingContactSelection(): Promise { return; @@ -247,11 +237,9 @@ export class ApplePay extends IonicNativePlugin { * }); */ @Cordova({ - otherPromise: true + otherPromise: true, }) - updateItemsAndShippingMethods( - list: IOrderItemsAndShippingMethods - ): Promise { + updateItemsAndShippingMethods(list: IOrderItemsAndShippingMethods): Promise { return; } @@ -326,7 +314,7 @@ export class ApplePay extends IonicNativePlugin { * } */ @Cordova({ - otherPromise: true + otherPromise: true, }) makePaymentRequest(order: IOrder): Promise { return; @@ -342,11 +330,9 @@ export class ApplePay extends IonicNativePlugin { * */ @Cordova({ - otherPromise: true + otherPromise: true, }) - completeLastTransaction( - complete: ITransactionStatus - ): Promise { + completeLastTransaction(complete: ITransactionStatus): Promise { return; } } diff --git a/src/@ionic-native/plugins/apple-wallet/index.ts b/src/@ionic-native/plugins/apple-wallet/index.ts index 59ecca161..5ad8e417d 100644 --- a/src/@ionic-native/plugins/apple-wallet/index.ts +++ b/src/@ionic-native/plugins/apple-wallet/index.ts @@ -150,7 +150,7 @@ export interface WatchExistData { plugin: 'cordova-apple-wallet', pluginRef: 'AppleWallet', repo: 'https://github.com/tomavic/cordova-apple-wallet', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class AppleWallet extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/appodeal/index.ts b/src/@ionic-native/plugins/appodeal/index.ts index 9c238549a..8f48e70c7 100644 --- a/src/@ionic-native/plugins/appodeal/index.ts +++ b/src/@ionic-native/plugins/appodeal/index.ts @@ -25,7 +25,7 @@ import { Observable } from 'rxjs'; plugin: 'https://github.com/appodeal/appodeal-cordova-plugin.git', pluginRef: 'Appodeal', repo: 'https://github.com/appodeal/appodeal-cordova-plugin', - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) @Injectable() export class Appodeal extends IonicNativePlugin { @@ -37,7 +37,7 @@ export class Appodeal extends IonicNativePlugin { BANNER_BOTTOM: 8, BANNER_TOP: 16, REWARDED_VIDEO: 128, - NON_SKIPPABLE_VIDEO: 256 + NON_SKIPPABLE_VIDEO: 256, }; /** @@ -361,7 +361,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onInterstitialLoaded', - element: 'document' + element: 'document', }) onInterstitialLoaded(): Observable { return; @@ -370,7 +370,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onInterstitialFailedToLoad', - element: 'document' + element: 'document', }) onInterstitialFailedToLoad(): Observable { return; @@ -379,7 +379,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onInterstitialShown', - element: 'document' + element: 'document', }) onInterstitialShown(): Observable { return; @@ -388,7 +388,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onInterstitialClicked', - element: 'document' + element: 'document', }) onInterstitialClicked(): Observable { return; @@ -397,7 +397,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onInterstitialClosed', - element: 'document' + element: 'document', }) onInterstitialClosed(): Observable { return; @@ -406,7 +406,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onSkippableVideoLoaded', - element: 'document' + element: 'document', }) onSkippableVideoLoaded(): Observable { return; @@ -415,7 +415,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onSkippableVideoFailedToLoad', - element: 'document' + element: 'document', }) onSkippableVideoFailedToLoad(): Observable { return; @@ -424,7 +424,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onSkippableVideoShown', - element: 'document' + element: 'document', }) onSkippableVideoShown(): Observable { return; @@ -433,7 +433,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onSkippableVideoFinished', - element: 'document' + element: 'document', }) onSkippableVideoFinished(): Observable { return; @@ -442,7 +442,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onSkippableVideoClosed', - element: 'document' + element: 'document', }) onSkippableVideoClosed(): Observable { return; @@ -451,7 +451,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onRewardedVideoLoaded', - element: 'document' + element: 'document', }) onRewardedVideoLoaded(): Observable { return; @@ -460,7 +460,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onRewardedVideoFailedToLoad', - element: 'document' + element: 'document', }) onRewardedVideoFailedToLoad(): Observable { return; @@ -469,7 +469,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onRewardedVideoShown', - element: 'document' + element: 'document', }) onRewardedVideoShown(): Observable { return; @@ -478,7 +478,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onRewardedVideoFinished', - element: 'document' + element: 'document', }) onRewardedVideoFinished(): Observable { return; @@ -487,7 +487,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onRewardedVideoClosed', - element: 'document' + element: 'document', }) onRewardedVideoClosed(): Observable { return; @@ -496,7 +496,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onNonSkippableVideoLoaded', - element: 'document' + element: 'document', }) onNonSkippableVideoLoaded(): Observable { return; @@ -505,7 +505,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onNonSkippableVideoFailedToLoad', - element: 'document' + element: 'document', }) onNonSkippableVideoFailedToLoad(): Observable { return; @@ -514,7 +514,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onNonSkippableVideoShown', - element: 'document' + element: 'document', }) onNonSkippableVideoShown(): Observable { return; @@ -523,7 +523,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onNonSkippableVideoFinished', - element: 'document' + element: 'document', }) onNonSkippableVideoFinished(): Observable { return; @@ -532,7 +532,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onNonSkippableVideoClosed', - element: 'document' + element: 'document', }) onNonSkippableVideoClosed(): Observable { return; @@ -541,7 +541,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onBannerClicked', - element: 'document' + element: 'document', }) onBannerClicked(): Observable { return; @@ -550,7 +550,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onBannerFailedToLoad', - element: 'document' + element: 'document', }) onBannerFailedToLoad(): Observable { return; @@ -559,7 +559,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onBannerLoaded', - element: 'document' + element: 'document', }) onBannerLoaded(): Observable { return; @@ -568,7 +568,7 @@ export class Appodeal extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onBannerShown', - element: 'document' + element: 'document', }) onBannerShown(): Observable { return; @@ -590,7 +590,7 @@ export class Appodeal extends IonicNativePlugin { } @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) showTestScreen(value: any): void {} diff --git a/src/@ionic-native/plugins/appsflyer/index.ts b/src/@ionic-native/plugins/appsflyer/index.ts index ed12a511e..7642fe4dc 100644 --- a/src/@ionic-native/plugins/appsflyer/index.ts +++ b/src/@ionic-native/plugins/appsflyer/index.ts @@ -75,7 +75,7 @@ export interface AppsflyerInviteOptions { pluginRef: 'window.plugins.appsFlyer', repo: 'https://github.com/AppsFlyerSDK/cordova-plugin-appsflyer-sdk', platforms: ['iOS', 'Android'], - install: 'Add to config.xml like stated on github and then start' + install: 'Add to config.xml like stated on github and then start', }) @Injectable() export class Appsflyer extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/audio-management/index.ts b/src/@ionic-native/plugins/audio-management/index.ts index b323ed474..34a2385c2 100644 --- a/src/@ionic-native/plugins/audio-management/index.ts +++ b/src/@ionic-native/plugins/audio-management/index.ts @@ -45,7 +45,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'clovelced-plugin-audiomanagement', pluginRef: 'AudioManagement', repo: 'https://github.com/clovelCed/cordova-plugin-audiomanagement', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class AudioManagement extends IonicNativePlugin { @@ -57,7 +57,7 @@ export class AudioManagement extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) setAudioMode(mode: AudioManagement.AudioMode): Promise { return; @@ -83,7 +83,7 @@ export class AudioManagement extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) setVolume(type: AudioManagement.VolumeType, volume: number): Promise { return; @@ -98,7 +98,7 @@ export class AudioManagement extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) getVolume(type: AudioManagement.VolumeType): Promise<{ volume: number }> { return; @@ -113,7 +113,7 @@ export class AudioManagement extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) getMaxVolume(type: AudioManagement.VolumeType): Promise<{ maxVolume: number }> { return; @@ -124,14 +124,14 @@ export namespace AudioManagement { export enum AudioMode { SILENT = 0, VIBRATE, - NORMAL + NORMAL, } export enum VolumeType { RING = 0, MUSIC, NOTIFICATION, - SYSTEM + SYSTEM, } export interface AudioModeReturn { diff --git a/src/@ionic-native/plugins/autostart/index.ts b/src/@ionic-native/plugins/autostart/index.ts index e13e07149..b8fb0ae0a 100644 --- a/src/@ionic-native/plugins/autostart/index.ts +++ b/src/@ionic-native/plugins/autostart/index.ts @@ -27,23 +27,19 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-autostart', pluginRef: 'cordova.plugins.autoStart', repo: 'https://github.com/ToniKorin/cordova-plugin-autostart', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class Autostart extends IonicNativePlugin { - /** * Enable the automatic startup after the boot */ @Cordova({ sync: true }) - enable(): void { - } + enable(): void {} /** * Disable the automatic startup after the boot */ @Cordova({ sync: true }) - disable(): void { - } - + disable(): void {} } diff --git a/src/@ionic-native/plugins/background-fetch/index.ts b/src/@ionic-native/plugins/background-fetch/index.ts index 9c6e2a33d..516521216 100644 --- a/src/@ionic-native/plugins/background-fetch/index.ts +++ b/src/@ionic-native/plugins/background-fetch/index.ts @@ -2,14 +2,12 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; export interface BackgroundFetchConfig { - /** * Set true to cease background-fetch from operating after user "closes" the app. Defaults to true. */ stopOnTerminate?: boolean; } - /** * @name Background Fetch * @description @@ -57,12 +55,10 @@ export interface BackgroundFetchConfig { plugin: 'cordova-plugin-background-fetch', pluginRef: 'BackgroundFetch', repo: 'https://github.com/transistorsoft/cordova-plugin-background-fetch', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class BackgroundFetch extends IonicNativePlugin { - - /** * Configures the plugin's fetch callbackFn * @@ -70,7 +66,7 @@ export class BackgroundFetch extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) configure(config: BackgroundFetchConfig): Promise { return; @@ -99,10 +95,9 @@ export class BackgroundFetch extends IonicNativePlugin { * You MUST call this method in your fetch callbackFn provided to #configure in order to signal to iOS that your fetch action is complete. iOS provides only 30s of background-time for a fetch-event -- if you exceed this 30s, iOS will kill your app. */ @Cordova({ - sync: true + sync: true, }) - finish(taskId: string): void { - } + finish(taskId: string): void {} /** * Return the status of the background-fetch @@ -112,5 +107,4 @@ export class BackgroundFetch extends IonicNativePlugin { status(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/background-geolocation/index.ts b/src/@ionic-native/plugins/background-geolocation/index.ts index 1f38d6dc6..3bb687a52 100644 --- a/src/@ionic-native/plugins/background-geolocation/index.ts +++ b/src/@ionic-native/plugins/background-geolocation/index.ts @@ -5,20 +5,20 @@ import { Observable } from 'rxjs'; export enum BackgroundGeolocationLocationCode { PERMISSION_DENIED = 1, LOCATION_UNAVAILABLE = 2, - TIMEOUT = 3 + TIMEOUT = 3, } export enum BackgroundGeolocationNativeProvider { gps = 'gps', network = 'network', passive = 'passive', - fused = 'fused' + fused = 'fused', } export enum BackgroundGeolocationLocationProvider { DISTANCE_FILTER_PROVIDER = 0, ACTIVITY_PROVIDER = 1, - RAW_PROVIDER = 2 + RAW_PROVIDER = 2, } export enum BackgroundGeolocationEvents { @@ -32,13 +32,13 @@ export enum BackgroundGeolocationEvents { start = 'start', // Event is triggered when background service has been started succesfully. activity = 'activity', // Register activity monitoring listener. stationary = 'stationary', // Register stationary location event listener. - location = 'location' // Register location event listener. + location = 'location', // Register location event listener. } export enum BackgroundGeolocationAuthorizationStatus { NOT_AUTHORIZED = 0, AUTHORIZED = 1, - AUTHORIZED_FOREGROUND = 2 + AUTHORIZED_FOREGROUND = 2, } export enum BackgroundGeolocationLogLevel { @@ -46,7 +46,7 @@ export enum BackgroundGeolocationLogLevel { DEBUG = 'DEBUG', INFO = 'INFO', WARN = 'WARN', - ERROR = 'ERROR' + ERROR = 'ERROR', } export interface BackgroundGeolocationLogEntry { @@ -444,7 +444,7 @@ export interface BackgroundGeolocationConfig { */ export declare enum BackgroundGeolocationProvider { ANDROID_DISTANCE_FILTER_PROVIDER = 0, - ANDROID_ACTIVITY_PROVIDER = 1 + ANDROID_ACTIVITY_PROVIDER = 1, } /** @@ -464,7 +464,7 @@ export declare enum BackgroundGeolocationAccuracy { HIGH = 0, MEDIUM = 10, LOW = 100, - PASSIVE = 1000 + PASSIVE = 1000, } /** @@ -478,14 +478,14 @@ export declare enum BackgroundGeolocationAccuracy { */ export declare enum BackgroundGeolocationMode { BACKGROUND = 0, - FOREGROUND = 1 + FOREGROUND = 1, } export declare enum BackgroundGeolocationIOSActivity { AutomotiveNavigation = 'AutomotiveNavigation', OtherNavigation = 'OtherNavigation', Fitness = 'Fitness', - Other = 'Other' + Other = 'Other', } /** @@ -543,7 +543,7 @@ export declare enum BackgroundGeolocationIOSActivity { plugin: '@mauron85/cordova-plugin-background-geolocation', pluginRef: 'BackgroundGeolocation', repo: 'https://github.com/mauron85/cordova-plugin-background-geolocation', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class BackgroundGeolocation extends IonicNativePlugin { @@ -582,7 +582,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) finish(): Promise { return; @@ -594,7 +594,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) changePace(isMoving: boolean): Promise { return; @@ -606,7 +606,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) setConfig(options: BackgroundGeolocationConfig): Promise { return; @@ -617,7 +617,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) getStationaryLocation(): Promise { return; @@ -629,7 +629,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) onStationary(): Promise { return; @@ -640,7 +640,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} Returns a promise with int argument that takes values 0, 1 (true). */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) isLocationEnabled(): Promise { return; @@ -666,7 +666,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - observable: true + observable: true, }) watchLocationMode(): Observable { return; @@ -677,7 +677,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) stopWatchingLocationMode(): Promise { return; @@ -693,7 +693,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) getLocations(): Promise { return; @@ -714,7 +714,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) deleteLocation(locationId: number): Promise { return; @@ -725,7 +725,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) deleteAllLocations(): Promise { return; @@ -745,7 +745,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) switchMode(modeId: number): Promise { return; @@ -788,11 +788,9 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) - getCurrentLocation( - options?: BackgroundGeolocationCurrentPositionConfig - ): Promise { + getCurrentLocation(options?: BackgroundGeolocationCurrentPositionConfig): Promise { return; } @@ -814,7 +812,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} taskKey */ @Cordova({ - platforms: ['IOS'] + platforms: ['IOS'], }) startTask(): Promise { return; @@ -824,7 +822,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * End background task indentified by taskKey (iOS only) */ @Cordova({ - platforms: ['IOS'] + platforms: ['IOS'], }) endTask(taskKey: number): Promise { return; @@ -876,7 +874,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @param callbackFn */ @Cordova({ - observable: true + observable: true, }) on(event: BackgroundGeolocationEvents): Observable { return; diff --git a/src/@ionic-native/plugins/background-mode/index.ts b/src/@ionic-native/plugins/background-mode/index.ts index 86c50e221..b011fa174 100644 --- a/src/@ionic-native/plugins/background-mode/index.ts +++ b/src/@ionic-native/plugins/background-mode/index.ts @@ -74,7 +74,7 @@ export interface BackgroundModeConfiguration { plugin: 'cordova-plugin-background-mode', pluginRef: 'cordova.plugins.backgroundMode', repo: 'https://github.com/katzer/cordova-plugin-background-mode', - platforms: ['AmazonFire OS', 'Android', 'Browser', 'iOS', 'Windows'] + platforms: ['AmazonFire OS', 'Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class BackgroundMode extends IonicNativePlugin { @@ -83,7 +83,7 @@ export class BackgroundMode extends IonicNativePlugin { * Once called, prevents the app from being paused while in background. */ @Cordova({ - sync: true + sync: true, }) enable(): void {} @@ -92,7 +92,7 @@ export class BackgroundMode extends IonicNativePlugin { * Once the background mode has been disabled, the app will be paused when in background. */ @Cordova({ - sync: true + sync: true, }) disable(): void { return; @@ -106,7 +106,7 @@ export class BackgroundMode extends IonicNativePlugin { * @return {void} */ @Cordova({ - sync: true + sync: true, }) setEnabled(enable: boolean): void {} @@ -119,7 +119,7 @@ export class BackgroundMode extends IonicNativePlugin { * @return {string} */ @Cordova({ - sync: true + sync: true, }) fireEvent(event: string, ...args: any[]): string { return; @@ -130,7 +130,7 @@ export class BackgroundMode extends IonicNativePlugin { * @returns {boolean} returns a boolean that indicates if the background mode is enabled. */ @Cordova({ - sync: true + sync: true, }) isEnabled(): boolean { return; @@ -141,7 +141,7 @@ export class BackgroundMode extends IonicNativePlugin { * @returns {boolean} returns a boolean that indicates if the background mode is active. */ @Cordova({ - sync: true + sync: true, }) isActive(): boolean { return; @@ -154,7 +154,7 @@ export class BackgroundMode extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) setDefaults(overrides?: BackgroundModeConfiguration): void {} @@ -165,7 +165,7 @@ export class BackgroundMode extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) configure(options?: BackgroundModeConfiguration): void {} @@ -178,7 +178,7 @@ export class BackgroundMode extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'un', - clearWithArgs: true + clearWithArgs: true, }) on(event: string): Observable { return; @@ -200,7 +200,7 @@ export class BackgroundMode extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) moveToBackground(): void {} @@ -209,7 +209,7 @@ export class BackgroundMode extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) disableWebViewOptimizations(): void {} @@ -218,7 +218,7 @@ export class BackgroundMode extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) moveToForeground(): void {} @@ -227,7 +227,7 @@ export class BackgroundMode extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) overrideBackButton(): void {} @@ -236,7 +236,7 @@ export class BackgroundMode extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) excludeFromTaskList(): void {} @@ -246,7 +246,7 @@ export class BackgroundMode extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) isScreenOff(fn: (arg0: boolean) => void): void {} @@ -255,7 +255,7 @@ export class BackgroundMode extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) wakeUp(): void {} @@ -264,7 +264,7 @@ export class BackgroundMode extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) unlock(): void {} @@ -273,7 +273,7 @@ export class BackgroundMode extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) disableBatteryOptimizations(): void {} } diff --git a/src/@ionic-native/plugins/backlight/index.ts b/src/@ionic-native/plugins/backlight/index.ts index d4b2d6eb4..304e6341e 100644 --- a/src/@ionic-native/plugins/backlight/index.ts +++ b/src/@ionic-native/plugins/backlight/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - /** * @beta * @name Backlight @@ -29,11 +28,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-backlight', pluginRef: 'cordova.plugins.Backlight', repo: 'https://github.com/mebibou/cordova-plugin-backlight', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class Backlight extends IonicNativePlugin { - /** * This function turns backlight on * @return {Promise} Returns a promise that resolves when the backlight is on @@ -51,5 +49,4 @@ export class Backlight extends IonicNativePlugin { off(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/badge/index.ts b/src/@ionic-native/plugins/badge/index.ts index 309e5bada..745de874d 100644 --- a/src/@ionic-native/plugins/badge/index.ts +++ b/src/@ionic-native/plugins/badge/index.ts @@ -26,7 +26,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-badge', pluginRef: 'cordova.plugins.notification.badge', repo: 'https://github.com/katzer/cordova-plugin-badge', - platforms: ['Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class Badge extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/baidu-push/index.ts b/src/@ionic-native/plugins/baidu-push/index.ts index 7799f7070..15931fcb8 100644 --- a/src/@ionic-native/plugins/baidu-push/index.ts +++ b/src/@ionic-native/plugins/baidu-push/index.ts @@ -106,7 +106,7 @@ export interface NotificationData { plugin: 'cordova-plugin-push-baidu', pluginRef: 'baiduPush', repo: 'https://github.com/Ti-webdev/cordova-plugin-push-baidu.git', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class BaiduPush extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/barcode-scanner/index.ts b/src/@ionic-native/plugins/barcode-scanner/index.ts index 453d0e899..fddbb3284 100644 --- a/src/@ionic-native/plugins/barcode-scanner/index.ts +++ b/src/@ionic-native/plugins/barcode-scanner/index.ts @@ -106,7 +106,7 @@ export interface BarcodeScanResult { plugin: 'phonegap-plugin-barcodescanner', pluginRef: 'cordova.plugins.barcodeScanner', repo: 'https://github.com/phonegap/phonegap-plugin-barcodescanner', - platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'Windows'] + platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class BarcodeScanner extends IonicNativePlugin { @@ -119,7 +119,7 @@ export class BarcodeScanner extends IonicNativePlugin { TEXT_TYPE: 'TEXT_TYPE', EMAIL_TYPE: 'EMAIL_TYPE', PHONE_TYPE: 'PHONE_TYPE', - SMS_TYPE: 'SMS_TYPE' + SMS_TYPE: 'SMS_TYPE', }; /** @@ -128,7 +128,7 @@ export class BarcodeScanner extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with scanner data, or rejects with an error. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) scan(options?: BarcodeScannerOptions): Promise { return; diff --git a/src/@ionic-native/plugins/base64-to-gallery/index.ts b/src/@ionic-native/plugins/base64-to-gallery/index.ts index 463df5962..3935f558e 100644 --- a/src/@ionic-native/plugins/base64-to-gallery/index.ts +++ b/src/@ionic-native/plugins/base64-to-gallery/index.ts @@ -37,7 +37,7 @@ export interface Base64ToGalleryOptions { plugin: 'cordova-base64-to-gallery', pluginRef: 'cordova', repo: 'https://github.com/Nexxa/cordova-base64-to-gallery', - platforms: ['Android', 'iOS', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows Phone 8'], }) @Injectable() export class Base64ToGallery extends IonicNativePlugin { @@ -49,12 +49,9 @@ export class Base64ToGallery extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) - base64ToGallery( - data: string, - options?: Base64ToGalleryOptions - ): Promise { + base64ToGallery(data: string, options?: Base64ToGalleryOptions): Promise { return; } } diff --git a/src/@ionic-native/plugins/base64/index.ts b/src/@ionic-native/plugins/base64/index.ts index 76d81e335..4a05d0226 100644 --- a/src/@ionic-native/plugins/base64/index.ts +++ b/src/@ionic-native/plugins/base64/index.ts @@ -29,11 +29,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'com-badrit-base64', pluginRef: 'plugins.Base64', repo: 'https://github.com/hazemhagrass/phonegap-base64', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Base64 extends IonicNativePlugin { - /** * This function encodes base64 of any file * @param {string} filePath Absolute file path @@ -43,5 +42,4 @@ export class Base64 extends IonicNativePlugin { encodeFile(filePath: string): Promise { return; } - } diff --git a/src/@ionic-native/plugins/battery-status/index.ts b/src/@ionic-native/plugins/battery-status/index.ts index 61643f895..486c13f11 100644 --- a/src/@ionic-native/plugins/battery-status/index.ts +++ b/src/@ionic-native/plugins/battery-status/index.ts @@ -45,7 +45,7 @@ export interface BatteryStatusResponse { plugin: 'cordova-plugin-battery-status', pluginRef: 'navigator.battery', repo: 'https://github.com/apache/cordova-plugin-battery-status', - platforms: ['iOS', 'Android', 'Windows', 'Browser'] + platforms: ['iOS', 'Android', 'Windows', 'Browser'], }) @Injectable() export class BatteryStatus extends IonicNativePlugin { @@ -55,7 +55,7 @@ export class BatteryStatus extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'batterystatus' + event: 'batterystatus', }) onChange(): Observable { return; @@ -67,7 +67,7 @@ export class BatteryStatus extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'batterylow' + event: 'batterylow', }) onLow(): Observable { return; @@ -79,7 +79,7 @@ export class BatteryStatus extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'batterycritical' + event: 'batterycritical', }) onCritical(): Observable { return; diff --git a/src/@ionic-native/plugins/biocatch/index.ts b/src/@ionic-native/plugins/biocatch/index.ts index 070906751..51f16829b 100644 --- a/src/@ionic-native/plugins/biocatch/index.ts +++ b/src/@ionic-native/plugins/biocatch/index.ts @@ -31,7 +31,6 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class BioCatch extends IonicNativePlugin { - /** * Start a session * @param customerSessionID {String} Customer session id diff --git a/src/@ionic-native/plugins/biometric-wrapper/index.ts b/src/@ionic-native/plugins/biometric-wrapper/index.ts index 46f927223..c6ac1ec7c 100644 --- a/src/@ionic-native/plugins/biometric-wrapper/index.ts +++ b/src/@ionic-native/plugins/biometric-wrapper/index.ts @@ -24,7 +24,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; * ``` */ - @Plugin({ pluginName: 'BiometricWrapper', plugin: 'cordova-plugin-biometric', @@ -32,12 +31,10 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; repo: '', install: '', installVariables: [], - platforms: ['Android'] + platforms: ['Android'], }) - @Injectable() export class BiometricWrapper extends IonicNativePlugin { - /** * This function activate iris activity * @return {Promise} Returns a promise that resolves when iris data captured @@ -55,5 +52,4 @@ export class BiometricWrapper extends IonicNativePlugin { activateFingerprint(args: any): Promise { return; } - } diff --git a/src/@ionic-native/plugins/ble/index.ts b/src/@ionic-native/plugins/ble/index.ts index 55b7b10fd..5405c63df 100644 --- a/src/@ionic-native/plugins/ble/index.ts +++ b/src/@ionic-native/plugins/ble/index.ts @@ -180,7 +180,7 @@ export interface BLEScanOptions { plugin: 'cordova-plugin-ble-central', pluginRef: 'ble', repo: 'https://github.com/don/cordova-plugin-ble-central', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class BLE extends IonicNativePlugin { @@ -198,7 +198,7 @@ export class BLE extends IonicNativePlugin { * @returns {Observable} Returns an Observable that notifies of each peripheral that is discovered during the specified time. */ @Cordova({ - observable: true + observable: true, }) scan(services: string[], seconds: number): Observable { return; @@ -223,7 +223,7 @@ export class BLE extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'stopScan', - clearWithArgs: false + clearWithArgs: false, }) startScan(services: string[]): Observable { return; @@ -238,12 +238,9 @@ export class BLE extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'stopScan', - clearWithArgs: false + clearWithArgs: false, }) - startScanWithOptions( - services: string[], - options: BLEScanOptions - ): Observable { + startScanWithOptions(services: string[], options: BLEScanOptions): Observable { return; } @@ -283,7 +280,7 @@ export class BLE extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'disconnect', - clearWithArgs: true + clearWithArgs: true, }) connect(deviceId: string): Observable { return; @@ -388,11 +385,7 @@ export class BLE extends IonicNativePlugin { * @return {Promise} Returns a Promise */ @Cordova() - read( - deviceId: string, - serviceUUID: string, - characteristicUUID: string - ): Promise { + read(deviceId: string, serviceUUID: string, characteristicUUID: string): Promise { return; } @@ -425,12 +418,7 @@ export class BLE extends IonicNativePlugin { * @return {Promise} Returns a Promise */ @Cordova() - write( - deviceId: string, - serviceUUID: string, - characteristicUUID: string, - value: ArrayBuffer - ): Promise { + write(deviceId: string, serviceUUID: string, characteristicUUID: string, value: ArrayBuffer): Promise { return; } @@ -471,13 +459,9 @@ export class BLE extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'stopNotification', - clearWithArgs: true + clearWithArgs: true, }) - startNotification( - deviceId: string, - serviceUUID: string, - characteristicUUID: string - ): Observable { + startNotification(deviceId: string, serviceUUID: string, characteristicUUID: string): Observable { return; } @@ -490,11 +474,7 @@ export class BLE extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stopNotification( - deviceId: string, - serviceUUID: string, - characteristicUUID: string - ): Promise { + stopNotification(deviceId: string, serviceUUID: string, characteristicUUID: string): Promise { return; } @@ -541,7 +521,7 @@ export class BLE extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'stopStateNotifications', - clearWithArgs: false + clearWithArgs: false, }) startStateNotifications(): Observable { return; diff --git a/src/@ionic-native/plugins/blinkid/index.ts b/src/@ionic-native/plugins/blinkid/index.ts index 6937272df..457811a57 100644 --- a/src/@ionic-native/plugins/blinkid/index.ts +++ b/src/@ionic-native/plugins/blinkid/index.ts @@ -18,13 +18,13 @@ export enum BarcodeType { Code39 = 9, ITF = 10, Aztec = 11, - PDF417 = 12 + PDF417 = 12, } export enum RecognizerResultState { empty = 1, uncertain = 2, - valid = 3 + valid = 3, } export enum MrtdDocumentType { @@ -33,20 +33,20 @@ export enum MrtdDocumentType { Passport = 3, Visa = 4, GreenCard = 5, - MalaysianPassIMM13P = 6 + MalaysianPassIMM13P = 6, } export enum EudlCountry { UK = 1, Germany = 2, Austria = 3, - Automatic = 4 + Automatic = 4, } export enum DocumentFaceDetectorType { TD1 = 1, TD2 = 2, - PassportsAndVisas = 3 + PassportsAndVisas = 3, } export enum UsdlKeys { @@ -135,7 +135,7 @@ export enum UsdlKeys { DataDiscriminator = 82, DocumentExpirationMonth = 83, DocumentNonexpiring = 84, - SecurityVersion = 85 + SecurityVersion = 85, } export interface ImageExtensionFactors { @@ -178,12 +178,12 @@ export interface OverlaySettings { export interface BarcodeOverlaySettings extends OverlaySettings {} export interface BarcodeOverlaySettingsCtor { - new(): BarcodeOverlaySettings; + new (): BarcodeOverlaySettings; } export interface DocumentOverlaySettings extends OverlaySettings {} export interface DocumentOverlaySettingsCtor { - new(): DocumentOverlaySettings; + new (): DocumentOverlaySettings; } export interface DocumentVerificationOverlaySettings extends OverlaySettings { @@ -195,14 +195,14 @@ export interface DocumentVerificationOverlaySettings extends OverlaySettings { glareMessage: string; } export interface DocumentVerificationOverlaySettingsCtor { - new(): DocumentVerificationOverlaySettings; + new (): DocumentVerificationOverlaySettings; } export interface BlinkCardOverlaySettings extends OverlaySettings { glareMessage: string; } export interface BlinkCardOverlaySettingsCtor { - new(): BlinkCardOverlaySettings; + new (): BlinkCardOverlaySettings; } export interface RecognizerResult { @@ -286,7 +286,8 @@ export interface MrzResult { export interface SuccessFrameGrabberRecognizerResult extends RecognizerResult { successFrame: string; } -export interface SuccessFrameGrabberRecognizerResultCtor extends RecognizerResultCtor {} +export interface SuccessFrameGrabberRecognizerResultCtor + extends RecognizerResultCtor {} export interface SuccessFrameGrabberRecognizer extends Recognizer { slaveRecognizer: Recognizer; @@ -1464,7 +1465,8 @@ export interface MalaysiaMyTenteraRecognizerResult extends RecognizerResult { street: string; zipcode: string; } -export interface MalaysiaMyTenteraRecognizerResultCtor extends RecognizerResultCtor {} +export interface MalaysiaMyTenteraRecognizerResultCtor + extends RecognizerResultCtor {} export interface MalaysiaMyTenteraRecognizer extends Recognizer { detectGlare: boolean; @@ -1489,7 +1491,8 @@ export interface MexicoVoterIdFrontRecognizerResult extends RecognizerResult { sex: string; signatureImage: string; } -export interface MexicoVoterIdFrontRecognizerResultCtor extends RecognizerResultCtor {} +export interface MexicoVoterIdFrontRecognizerResultCtor + extends RecognizerResultCtor {} export interface MexicoVoterIdFrontRecognizer extends Recognizer { detectGlare: boolean; @@ -1683,7 +1686,8 @@ export interface NewZealandDlFrontRecognizerResult extends RecognizerResult { signatureImage: string; surname: string; } -export interface NewZealandDlFrontRecognizerResultCtor extends RecognizerResultCtor {} +export interface NewZealandDlFrontRecognizerResultCtor + extends RecognizerResultCtor {} export interface NewZealandDlFrontRecognizer extends Recognizer { detectGlare: boolean; @@ -1980,7 +1984,8 @@ export interface SingaporeChangiEmployeeIdRecognizerResult extends RecognizerRes fullDocumentImage: string; name: string; } -export interface SingaporeChangiEmployeeIdRecognizerResultCtor extends RecognizerResultCtor {} +export interface SingaporeChangiEmployeeIdRecognizerResultCtor + extends RecognizerResultCtor {} export interface SingaporeChangiEmployeeIdRecognizer extends Recognizer { detectGlare: boolean; @@ -2014,7 +2019,8 @@ export interface SingaporeCombinedRecognizerResult extends RecognizerResult { scanningFirstSideDone: string; sex: string; } -export interface SingaporeCombinedRecognizerResultCtor extends RecognizerResultCtor {} +export interface SingaporeCombinedRecognizerResultCtor + extends RecognizerResultCtor {} export interface SingaporeCombinedRecognizer extends Recognizer { detectGlare: boolean; @@ -2390,7 +2396,8 @@ export interface SwitzerlandDlFrontRecognizerResult extends RecognizerResult { signatureImage: string; vehicleCategories: string; } -export interface SwitzerlandDlFrontRecognizerResultCtor extends RecognizerResultCtor {} +export interface SwitzerlandDlFrontRecognizerResultCtor + extends RecognizerResultCtor {} export interface SwitzerlandDlFrontRecognizer extends Recognizer { detectGlare: boolean; @@ -2435,7 +2442,8 @@ export interface SwitzerlandDlBackRecognizerResult extends RecognizerResult { secondaryId: string; sex: String; } -export interface SwitzerlandDlBackRecognizerResultCtor extends RecognizerResultCtor {} +export interface SwitzerlandDlBackRecognizerResultCtor + extends RecognizerResultCtor {} export interface SwitzerlandDlBackRecognizer extends Recognizer { detectGlare: boolean; @@ -2457,7 +2465,8 @@ export interface SwitzerlandIdFrontRecognizerResult extends RecognizerResult { signatureImage: string; surname: string; } -export interface SwitzerlandIdFrontRecognizerResultCtor extends RecognizerResultCtor {} +export interface SwitzerlandIdFrontRecognizerResultCtor + extends RecognizerResultCtor {} export interface SwitzerlandIdFrontRecognizer extends Recognizer { detectGlare: boolean; @@ -2501,7 +2510,8 @@ export interface SwitzerlandPassportRecognizerResult extends RecognizerResult { sex: string; surname: string; } -export interface SwitzerlandPassportRecognizerResultCtor extends RecognizerResultCtor {} +export interface SwitzerlandPassportRecognizerResultCtor + extends RecognizerResultCtor {} export interface SwitzerlandPassportRecognizer extends Recognizer { detectGlare: boolean; @@ -2532,7 +2542,8 @@ export interface UnitedArabEmiratesDlFrontRecognizerResult extends RecognizerRes nationality: string; placeOfIssue: string; } -export interface UnitedArabEmiratesDlFrontRecognizerResultCtor extends RecognizerResultCtor {} +export interface UnitedArabEmiratesDlFrontRecognizerResultCtor + extends RecognizerResultCtor {} export interface UnitedArabEmiratesDlFrontRecognizer extends Recognizer { detectGlare: boolean; @@ -2555,7 +2566,8 @@ export interface UnitedArabEmiratesIdBackRecognizerResult extends RecognizerResu fullDocumentImage: string; mrzResult: MrzResult; } -export interface UnitedArabEmiratesIdBackRecognizerResultCtor extends RecognizerResultCtor {} +export interface UnitedArabEmiratesIdBackRecognizerResultCtor + extends RecognizerResultCtor {} export interface UnitedArabEmiratesIdBackRecognizer extends Recognizer { detectGlare: boolean; @@ -2572,7 +2584,8 @@ export interface UnitedArabEmiratesIdFrontRecognizerResult extends RecognizerRes name: string; nationality: string; } -export interface UnitedArabEmiratesIdFrontRecognizerResultCtor extends RecognizerResultCtor {} +export interface UnitedArabEmiratesIdFrontRecognizerResultCtor + extends RecognizerResultCtor {} export interface UnitedArabEmiratesIdFrontRecognizer extends Recognizer { detectGlare: boolean; @@ -2720,7 +2733,7 @@ export interface UsdlCombinedRecognizerCtor extends RecognizerCtor} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) scanWithCamera( overlaySettings: OverlaySettings, recognizerCollection: RecognizerCollection, - licenses: Licenses, - ): Promise { return; } + licenses: Licenses + ): Promise { + return; + } @CordovaProperty() Date: DateCtor; @CordovaProperty() Point: PointCtor; diff --git a/src/@ionic-native/plugins/blinkup/index.ts b/src/@ionic-native/plugins/blinkup/index.ts index b2f7750f8..a7159ea24 100644 --- a/src/@ionic-native/plugins/blinkup/index.ts +++ b/src/@ionic-native/plugins/blinkup/index.ts @@ -57,7 +57,7 @@ export interface BlinkUpWPSOptions { plugin: 'cordova-plugin-blinkup', pluginRef: 'blinkup', repo: 'https://github.com/SensorShare/cordova-plugin-blinkup', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class BlinkUp extends IonicNativePlugin { @@ -68,7 +68,7 @@ export class BlinkUp extends IonicNativePlugin { */ @Cordova({ callbackOrder: 'reverse', - observable: true + observable: true, }) startBlinkUp(options: BlinkUpOptions): Observable { return; @@ -81,7 +81,7 @@ export class BlinkUp extends IonicNativePlugin { */ @Cordova({ callbackOrder: 'reverse', - observable: true + observable: true, }) flashWifiBlinkUp(options: BlinkUpWifiOptions): Observable { return; @@ -94,7 +94,7 @@ export class BlinkUp extends IonicNativePlugin { */ @Cordova({ callbackOrder: 'reverse', - observable: true + observable: true, }) flashWPSBlinkUp(options: BlinkUpWPSOptions): Observable { return; @@ -105,7 +105,7 @@ export class BlinkUp extends IonicNativePlugin { * @return {Observable} Returns an Observable */ @Cordova({ - observable: true + observable: true, }) abortBlinkUp(): Observable { return; @@ -116,7 +116,7 @@ export class BlinkUp extends IonicNativePlugin { * @return {Observable} Returns an Observable */ @Cordova({ - observable: true + observable: true, }) clearBlinkUpData(): Observable { return; diff --git a/src/@ionic-native/plugins/bluetooth-le/index.ts b/src/@ionic-native/plugins/bluetooth-le/index.ts index a73667dd8..4c378008f 100644 --- a/src/@ionic-native/plugins/bluetooth-le/index.ts +++ b/src/@ionic-native/plugins/bluetooth-le/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; /* Available status of device */ @@ -356,24 +351,24 @@ export enum BluetoothScanMode { SCAN_MODE_OPPORTUNISTIC = -1, SCAN_MODE_LOW_POWER = 0, SCAN_MODE_BALANCED = 1, - SCAN_MODE_LOW_LATENCY = 2 + SCAN_MODE_LOW_LATENCY = 2, } export enum BluetoothMatchMode { MATCH_MODE_AGRESSIVE = 1, - MATCH_MODE_STICKY = 2 + MATCH_MODE_STICKY = 2, } export enum BluetoothMatchNum { MATCH_NUM_ONE_ADVERTISEMENT = 1, MATCH_NUM_FEW_ADVERTISEMENT = 2, - MATCH_NUM_MAX_ADVERTISEMENT = 3 + MATCH_NUM_MAX_ADVERTISEMENT = 3, } export enum BluetoothCallbackType { CALLBACK_TYPE_ALL_MATCHES = 1, CALLBACK_TYPE_FIRST_MATCH = 2, - CALLBACK_TYPE_MATCH_LOST = 4 + CALLBACK_TYPE_MATCH_LOST = 4, } export interface Error { @@ -425,7 +420,7 @@ export interface AdapterInfo { repo: 'https://github.com/randdusing/cordova-plugin-bluetoothle', // the github repository URL for the plugin install: 'ionic cordova plugin add cordova-plugin-bluetoothle', // OPTIONAL install command, in case the plugin requires variables installVariables: [], // OPTIONAL the plugin requires variables - platforms: ['Android', 'iOS'] // Array of platforms supported, example: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], // Array of platforms supported, example: ['Android', 'iOS'] }) @Injectable() export class BluetoothLE extends IonicNativePlugin { @@ -485,7 +480,7 @@ export class BluetoothLE extends IonicNativePlugin { * @returns {(Observable< ScanStatus >)} */ @Cordova({ callbackOrder: 'reverse', observable: true }) - startScan(params: ScanParams): Observable< ScanStatus > { + startScan(params: ScanParams): Observable { return; } @@ -508,9 +503,7 @@ export class BluetoothLE extends IonicNativePlugin { * @returns {Promise<{ devices: DeviceInfo[] }>} */ @Cordova({ callbackOrder: 'reverse' }) - retrieveConnected(params?: { - services?: string[]; - }): Promise<{ devices: DeviceInfo[] }> { + retrieveConnected(params?: { services?: string[] }): Promise<{ devices: DeviceInfo[] }> { return; } @@ -558,10 +551,7 @@ export class BluetoothLE extends IonicNativePlugin { * error: The callback that will be triggered when the unbond operation fails */ @Cordova({ callbackOrder: 'reverse', observable: true }) - connect(params: { - address: string; - autoConnect?: boolean; - }): Observable< DeviceInfo > { + connect(params: { address: string; autoConnect?: boolean }): Observable { return; } @@ -616,10 +606,7 @@ export class BluetoothLE extends IonicNativePlugin { * error: The callback that will be triggered when the unbond operation fails */ @Cordova({ callbackOrder: 'reverse' }) - discover(params: { - address: string; - clearCache?: boolean; - }): Promise { + discover(params: { address: string; clearCache?: boolean }): Promise { return; } @@ -631,10 +618,7 @@ export class BluetoothLE extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ callbackOrder: 'reverse' }) - services(params: { - address: string; - services?: string[]; - }): Promise { + services(params: { address: string; services?: string[] }): Promise { return; } @@ -646,9 +630,7 @@ export class BluetoothLE extends IonicNativePlugin { * @returns {Promise<{ characteristics: Characteristics }>} The service id and an Array of characteristics */ @Cordova({ callbackOrder: 'reverse' }) - characteristics( - params: CharacteristicParams - ): Promise<{ characteristics: Characteristics }> { + characteristics(params: CharacteristicParams): Promise<{ characteristics: Characteristics }> { return; } @@ -752,7 +734,7 @@ export class BluetoothLE extends IonicNativePlugin { * @returns {Promise< RSSI >} */ @Cordova({ callbackOrder: 'reverse' }) - rssi(params: { address: string }): Promise< RSSI > { + rssi(params: { address: string }): Promise { return; } @@ -763,7 +745,7 @@ export class BluetoothLE extends IonicNativePlugin { * @returns {Promise< MTU >} */ @Cordova({ callbackOrder: 'reverse' }) - mtu(params: { address: string; mtu?: number }): Promise< MTU > { + mtu(params: { address: string; mtu?: number }): Promise { return; } @@ -775,10 +757,7 @@ export class BluetoothLE extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ callbackOrder: 'reverse' }) - requestConnectionPriority(params: { - address: string; - connectionPriority: ConnectionPriority; - }): Promise { + requestConnectionPriority(params: { address: string; connectionPriority: ConnectionPriority }): Promise { return; } @@ -906,9 +885,7 @@ export class BluetoothLE extends IonicNativePlugin { * @returns {Observable} */ @Cordova({ callbackOrder: 'reverse', observable: true }) - initializePeripheral( - params?: InitPeripheralParams - ): Observable { + initializePeripheral(params?: InitPeripheralParams): Observable { return; } @@ -933,9 +910,7 @@ export class BluetoothLE extends IonicNativePlugin { * @returns {Promise<{ service: string, status: Status }>} */ @Cordova({ callbackOrder: 'reverse' }) - removeService(params: { - service: string; - }): Promise<{ service: string; status: Status }> { + removeService(params: { service: string }): Promise<{ service: string; status: Status }> { return; } diff --git a/src/@ionic-native/plugins/bluetooth-serial/index.ts b/src/@ionic-native/plugins/bluetooth-serial/index.ts index 9a6c81d15..3b4749e47 100644 --- a/src/@ionic-native/plugins/bluetooth-serial/index.ts +++ b/src/@ionic-native/plugins/bluetooth-serial/index.ts @@ -35,7 +35,7 @@ import { Observable } from 'rxjs'; repo: 'https://github.com/don/BluetoothSerial', plugin: 'cordova-plugin-bluetooth-serial', pluginRef: 'bluetoothSerial', - platforms: ['Android', 'iOS', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows Phone 8'], }) @Injectable() export class BluetoothSerial extends IonicNativePlugin { @@ -47,7 +47,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'], observable: true, - clearFunction: 'disconnect' + clearFunction: 'disconnect', }) connect(macAddress_or_uuid: string): Observable { return; @@ -61,7 +61,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android'], observable: true, - clearFunction: 'disconnect' + clearFunction: 'disconnect', }) connectInsecure(macAddress: string): Observable { return; @@ -82,7 +82,7 @@ export class BluetoothSerial extends IonicNativePlugin { * @returns {Promise} returns a promise when data has been written */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows Phone'], }) write(data: any): Promise { return; @@ -93,7 +93,7 @@ export class BluetoothSerial extends IonicNativePlugin { * @returns {Promise} returns a promise that contains the available bytes */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows Phone'], }) available(): Promise { return; @@ -104,7 +104,7 @@ export class BluetoothSerial extends IonicNativePlugin { * @returns {Promise} returns a promise with data from the buffer */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows Phone'], }) read(): Promise { return; @@ -116,7 +116,7 @@ export class BluetoothSerial extends IonicNativePlugin { * @returns {Promise} returns a promise */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows Phone'], }) readUntil(delimiter: string): Promise { return; @@ -130,7 +130,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'], observable: true, - clearFunction: 'unsubscribe' + clearFunction: 'unsubscribe', }) subscribe(delimiter: string): Observable { return; @@ -143,7 +143,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'], observable: true, - clearFunction: 'unsubscribeRawData' + clearFunction: 'unsubscribeRawData', }) subscribeRawData(): Observable { return; @@ -154,7 +154,7 @@ export class BluetoothSerial extends IonicNativePlugin { * @returns {Promise} returns a promise when completed */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows Phone'], }) clear(): Promise { return; @@ -165,7 +165,7 @@ export class BluetoothSerial extends IonicNativePlugin { * @returns {Promise} returns a promise */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows Phone'], }) list(): Promise { return; @@ -176,7 +176,7 @@ export class BluetoothSerial extends IonicNativePlugin { * @returns {Promise} returns a promise */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows Phone'], }) isEnabled(): Promise { return; @@ -187,7 +187,7 @@ export class BluetoothSerial extends IonicNativePlugin { * @returns {Promise} returns a promise */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows Phone'], }) isConnected(): Promise { return; @@ -198,7 +198,7 @@ export class BluetoothSerial extends IonicNativePlugin { * @returns {Promise} returns a promise */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows Phone'], }) readRSSI(): Promise { return; @@ -209,7 +209,7 @@ export class BluetoothSerial extends IonicNativePlugin { * @returns {Promise} returns a promise */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows Phone'], }) showBluetoothSettings(): Promise { return; @@ -220,7 +220,7 @@ export class BluetoothSerial extends IonicNativePlugin { * @returns {Promise} returns a promise */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows Phone'], }) enable(): Promise { return; @@ -231,7 +231,7 @@ export class BluetoothSerial extends IonicNativePlugin { * @returns {Promise} returns a promise */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows Phone'], }) discoverUnpaired(): Promise { return; @@ -244,7 +244,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'], observable: true, - clearFunction: 'clearDeviceDiscoveredListener' + clearFunction: 'clearDeviceDiscoveredListener', }) setDeviceDiscoveredListener(): Observable { return; @@ -256,7 +256,7 @@ export class BluetoothSerial extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) setName(newName: string): void {} @@ -266,7 +266,7 @@ export class BluetoothSerial extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) setDiscoverable(discoverableDuration: number): void {} } diff --git a/src/@ionic-native/plugins/braintree/index.ts b/src/@ionic-native/plugins/braintree/index.ts index 9b359e191..31760d8e2 100644 --- a/src/@ionic-native/plugins/braintree/index.ts +++ b/src/@ionic-native/plugins/braintree/index.ts @@ -200,9 +200,8 @@ export interface PaymentUIResult { pluginRef: 'BraintreePlugin', repo: 'https://github.com/taracque/cordova-plugin-braintree', platforms: ['Android', 'iOS'], - install: - 'ionic cordova plugin add https://github.com/taracque/cordova-plugin-braintree', - installVariables: [] + install: 'ionic cordova plugin add https://github.com/taracque/cordova-plugin-braintree', + installVariables: [], }) @Injectable() export class Braintree extends IonicNativePlugin { @@ -214,7 +213,7 @@ export class Braintree extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with undefined on successful initialization, or rejects with a string message describing the failure. */ @Cordova({ - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) initialize(token: string): Promise { return; @@ -233,7 +232,7 @@ export class Braintree extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with undefined on successful initialization, or rejects with a string message describing the failure. */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) setupApplePay(options: ApplePayOptions): Promise { return; @@ -247,11 +246,9 @@ export class Braintree extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with a PaymentUIResult object on successful payment (or the user cancels), or rejects with a string message describing the failure. */ @Cordova({ - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) - presentDropInPaymentUI( - options?: PaymentUIOptions - ): Promise { + presentDropInPaymentUI(options?: PaymentUIOptions): Promise { return; } } diff --git a/src/@ionic-native/plugins/branch-io/index.ts b/src/@ionic-native/plugins/branch-io/index.ts index fb272a5fe..202178c43 100644 --- a/src/@ionic-native/plugins/branch-io/index.ts +++ b/src/@ionic-native/plugins/branch-io/index.ts @@ -36,16 +36,9 @@ export interface BranchIoProperties { } export interface BranchUniversalObject { - generateShortUrl( - analytics: BranchIoAnalytics, - properties: BranchIoProperties - ): Promise; + generateShortUrl(analytics: BranchIoAnalytics, properties: BranchIoProperties): Promise; registerView(): Promise; - showShareSheet( - analytics: BranchIoAnalytics, - properties: BranchIoProperties, - shareText: string - ): Promise; + showShareSheet(analytics: BranchIoAnalytics, properties: BranchIoProperties, shareText: string): Promise; onShareSheetLaunched(callback: any): void; onShareSheetDismissed(callback: any): void; onLinkShareResponse(callback: any): void; @@ -78,9 +71,8 @@ export interface BranchUniversalObject { pluginName: 'BranchIo', plugin: 'branch-cordova-sdk', pluginRef: 'Branch', - repo: - 'https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking', - platforms: ['iOS', 'Android'] + repo: 'https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking', + platforms: ['iOS', 'Android'], }) @Injectable() export class BranchIo extends IonicNativePlugin { @@ -197,9 +189,7 @@ export class BranchIo extends IonicNativePlugin { * @return {Promise} */ @Cordova({ otherPromise: true }) - createBranchUniversalObject( - properties: BranchIoProperties - ): Promise { + createBranchUniversalObject(properties: BranchIoProperties): Promise { return; } diff --git a/src/@ionic-native/plugins/brightness/index.ts b/src/@ionic-native/plugins/brightness/index.ts index 1cf369097..36cf5720b 100644 --- a/src/@ionic-native/plugins/brightness/index.ts +++ b/src/@ionic-native/plugins/brightness/index.ts @@ -26,7 +26,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-brightness', pluginRef: 'cordova.plugins.brightness', repo: 'https://github.com/mgcrea/cordova-plugin-brightness', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Brightness extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/broadcaster/index.ts b/src/@ionic-native/plugins/broadcaster/index.ts index 092ea6ef4..affe3ef3d 100644 --- a/src/@ionic-native/plugins/broadcaster/index.ts +++ b/src/@ionic-native/plugins/broadcaster/index.ts @@ -28,7 +28,7 @@ import { Observable } from 'rxjs'; plugin: 'cordova-plugin-broadcaster', pluginRef: 'broadcaster', repo: 'https://github.com/bsorrentino/cordova-broadcaster', - platforms: ['Android', 'iOS', 'Browser'] + platforms: ['Android', 'iOS', 'Browser'], }) @Injectable() export class Broadcaster extends IonicNativePlugin { @@ -40,7 +40,7 @@ export class Broadcaster extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'removeEventListener', - clearWithArgs: true + clearWithArgs: true, }) addEventListener(eventName: string): Observable { return; diff --git a/src/@ionic-native/plugins/browser-tab/index.ts b/src/@ionic-native/plugins/browser-tab/index.ts index c41b370c1..26b1ef293 100644 --- a/src/@ionic-native/plugins/browser-tab/index.ts +++ b/src/@ionic-native/plugins/browser-tab/index.ts @@ -29,7 +29,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-browsertab', pluginRef: 'cordova.plugins.browsertab', repo: 'https://github.com/google/cordova-plugin-browsertab', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class BrowserTab extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/calendar/index.ts b/src/@ionic-native/plugins/calendar/index.ts index 9186ab133..641fb0d7f 100644 --- a/src/@ionic-native/plugins/calendar/index.ts +++ b/src/@ionic-native/plugins/calendar/index.ts @@ -85,7 +85,7 @@ export interface NameOrOptions { plugin: 'cordova-plugin-calendar', pluginRef: 'plugins.calendar', repo: 'https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Calendar extends IonicNativePlugin { @@ -177,7 +177,7 @@ export class Calendar extends IonicNativePlugin { * @return {CalendarOptions} Returns an object with the default calendar options */ @Cordova({ - sync: true + sync: true, }) getCalendarOptions(): CalendarOptions { return; @@ -189,7 +189,7 @@ export class Calendar extends IonicNativePlugin { * @return {NameOrOptions} Returns an object with the default options */ @Cordova({ - sync: true + sync: true, }) getCreateCalendarOptions(): NameOrOptions { return; @@ -205,13 +205,7 @@ export class Calendar extends IonicNativePlugin { * @returns {Promise} Returns a Promise */ @Cordova() - createEvent( - title?: string, - location?: string, - notes?: string, - startDate?: Date, - endDate?: Date - ): Promise { + createEvent(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date): Promise { return; } @@ -293,13 +287,7 @@ export class Calendar extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - findEvent( - title?: string, - location?: string, - notes?: string, - startDate?: Date, - endDate?: Date - ): Promise { + findEvent(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date): Promise { return; } @@ -333,7 +321,7 @@ export class Calendar extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the list of events, or rejects with an error. */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) listEventsInRange(startDate: Date, endDate: Date): Promise { return; @@ -353,7 +341,7 @@ export class Calendar extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the list of events, or rejects with an error. */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) findAllEventsInNamedCalendar(calendarName: string): Promise { return; @@ -375,7 +363,7 @@ export class Calendar extends IonicNativePlugin { * @return Returns a Promise */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) modifyEvent( title?: string, @@ -410,7 +398,7 @@ export class Calendar extends IonicNativePlugin { * @return Returns a Promise */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) modifyEventWithOptions( title?: string, @@ -440,13 +428,7 @@ export class Calendar extends IonicNativePlugin { * @return Returns a Promise */ @Cordova() - deleteEvent( - title?: string, - location?: string, - notes?: string, - startDate?: Date, - endDate?: Date - ): Promise { + deleteEvent(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date): Promise { return; } @@ -462,7 +444,7 @@ export class Calendar extends IonicNativePlugin { * @return Returns a Promise */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) deleteEventFromNamedCalendar( title?: string, @@ -483,10 +465,7 @@ export class Calendar extends IonicNativePlugin { * @return Returns a Promise */ @Cordova() - deleteEventById( - id: string, - fromDate?: Date - ): Promise { + deleteEventById(id: string, fromDate?: Date): Promise { return; } diff --git a/src/@ionic-native/plugins/call-directory/index.ts b/src/@ionic-native/plugins/call-directory/index.ts index 8e95c0e51..071036c0a 100644 --- a/src/@ionic-native/plugins/call-directory/index.ts +++ b/src/@ionic-native/plugins/call-directory/index.ts @@ -44,13 +44,13 @@ export interface CallDirectoryLog { plugin: 'cordova-plugin-call-directory', pluginRef: 'CallDirectory', repo: 'https://github.com/GEDYSIntraWare/cordova-plugin-call-directory', - install: 'cordova plugin add cordova-plugin-call-directory --variable EXT_NAME="Cordova-Directory" --variable ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES="NO"', + install: + 'cordova plugin add cordova-plugin-call-directory --variable EXT_NAME="Cordova-Directory" --variable ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES="NO"', installVariables: ['EXT_NAME', 'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'], - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class CallDirectory extends IonicNativePlugin { - /** * Check if the call directory extension is available and enabled * @return {Promise} Returns a promise with result diff --git a/src/@ionic-native/plugins/call-log/index.ts b/src/@ionic-native/plugins/call-log/index.ts index a2bf0551c..c04a025f7 100644 --- a/src/@ionic-native/plugins/call-log/index.ts +++ b/src/@ionic-native/plugins/call-log/index.ts @@ -29,7 +29,7 @@ export interface CallLogObject { plugin: 'cordova-plugin-calllog', pluginRef: 'plugins.callLog', repo: 'https://github.com/creacore-team/cordova-plugin-calllog', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class CallLog extends IonicNativePlugin { @@ -48,7 +48,7 @@ export class CallLog extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) hasReadPermission(): Promise { return; @@ -59,7 +59,7 @@ export class CallLog extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) requestReadPermission(): Promise { return; diff --git a/src/@ionic-native/plugins/call-number/index.ts b/src/@ionic-native/plugins/call-number/index.ts index 24a50e566..89f02ff46 100644 --- a/src/@ionic-native/plugins/call-number/index.ts +++ b/src/@ionic-native/plugins/call-number/index.ts @@ -27,7 +27,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'call-number', pluginRef: 'plugins.CallNumber', repo: 'https://github.com/Rohfosho/CordovaCallNumberPlugin', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class CallNumber extends IonicNativePlugin { @@ -38,7 +38,7 @@ export class CallNumber extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) callNumber(numberToCall: string, bypassAppChooser: boolean): Promise { return; diff --git a/src/@ionic-native/plugins/camera-preview/index.ts b/src/@ionic-native/plugins/camera-preview/index.ts index 3558ef19f..76624b886 100644 --- a/src/@ionic-native/plugins/camera-preview/index.ts +++ b/src/@ionic-native/plugins/camera-preview/index.ts @@ -142,9 +142,8 @@ export interface CameraPreviewPictureOptions { pluginName: 'CameraPreview', plugin: 'cordova-plugin-camera-preview', pluginRef: 'CameraPreview', - repo: - 'https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview', - platforms: ['Android', 'iOS'] + repo: 'https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview', + platforms: ['Android', 'iOS'], }) @Injectable() export class CameraPreview extends IonicNativePlugin { @@ -156,14 +155,14 @@ export class CameraPreview extends IonicNativePlugin { CONTINUOUS_VIDEO: 'continuous-video', // Android Only EDOF: 'edof', // Android Only INFINITY: 'infinity', // Android Only - MACRO: 'macro' // Android Only + MACRO: 'macro', // Android Only }; EXPOSURE_MODE = { LOCK: 'lock', // IOS Only AUTO: 'auto', // IOS Only CONTINUOUS: 'continuous', - CUSTOM: 'custom' + CUSTOM: 'custom', }; FLASH_MODE = { @@ -171,7 +170,7 @@ export class CameraPreview extends IonicNativePlugin { ON: 'on', AUTO: 'auto', RED_EYE: 'red-eye', - TORCH: 'torch' // Android Only + TORCH: 'torch', // Android Only }; COLOR_EFFECT = { @@ -183,12 +182,12 @@ export class CameraPreview extends IonicNativePlugin { POSTERIZE: 'posterize', SEPIA: 'sepia', SOLARIZE: 'solarize', // Android Only - WHITEBOARD: 'whiteboard' // Android Only + WHITEBOARD: 'whiteboard', // Android Only }; CAMERA_DIRECTION = { BACK: 'back', - FRONT: 'front' + FRONT: 'front', }; /** @@ -198,7 +197,7 @@ export class CameraPreview extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) startCamera(options: CameraPreviewOptions): Promise { return; @@ -247,13 +246,12 @@ export class CameraPreview extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) takePicture(options?: CameraPreviewPictureOptions): Promise { return; } - /** * Take a snapshot of preview window (size specified in startCamera options) * @param {CameraPreviewPictureOptions} [options] quality of the picture to take @@ -261,7 +259,7 @@ export class CameraPreview extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) takeSnapshot(options?: CameraPreviewPictureOptions): Promise { return; @@ -276,7 +274,7 @@ export class CameraPreview extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) setColorEffect(effect: string): Promise { return; @@ -289,7 +287,7 @@ export class CameraPreview extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) setZoom(zoom?: number): Promise { return; @@ -320,7 +318,7 @@ export class CameraPreview extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) setPreviewSize(dimensions?: CameraPreviewDimensions): Promise { return; @@ -342,7 +340,7 @@ export class CameraPreview extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) setFocusMode(focusMode?: string): Promise { return; @@ -373,7 +371,7 @@ export class CameraPreview extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) setFlashMode(flashMode?: string): Promise { return; @@ -422,7 +420,7 @@ export class CameraPreview extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) setExposureMode(lock?: string): Promise { return; @@ -444,7 +442,7 @@ export class CameraPreview extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) setExposureCompensation(exposureCompensation?: number): Promise { return; diff --git a/src/@ionic-native/plugins/camera/index.ts b/src/@ionic-native/plugins/camera/index.ts index c72e5bea6..6d11e73a2 100644 --- a/src/@ionic-native/plugins/camera/index.ts +++ b/src/@ionic-native/plugins/camera/index.ts @@ -88,24 +88,24 @@ export interface CameraPopoverOptions { export enum DestinationType { DATA_URL = 0, FILE_URL, - NATIVE_URI + NATIVE_URI, } export enum EncodingType { JPEG = 0, - PNG + PNG, } export enum MediaType { PICTURE = 0, VIDEO, - ALLMEDIA + ALLMEDIA, } export enum PictureSourceType { PHOTOLIBRARY = 0, CAMERA, - SAVEDPHOTOALBUM + SAVEDPHOTOALBUM, } export enum PopoverArrowDirection { @@ -113,12 +113,12 @@ export enum PopoverArrowDirection { ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, - ARROW_ANY + ARROW_ANY, } export enum Direction { BACK = 0, - FRONT + FRONT, } /** @@ -169,7 +169,7 @@ export enum Direction { plugin: 'cordova-plugin-camera', pluginRef: 'navigator.camera', repo: 'https://github.com/apache/cordova-plugin-camera', - platforms: ['Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class Camera extends IonicNativePlugin { @@ -182,7 +182,7 @@ export class Camera extends IonicNativePlugin { /** Return file uri (content://media/external/images/media/2 for Android) */ FILE_URI: 1, /** Return native uri (eg. asset-library://... for iOS) */ - NATIVE_URI: 2 + NATIVE_URI: 2, }; /** @@ -192,7 +192,7 @@ export class Camera extends IonicNativePlugin { /** Return JPEG encoded image */ JPEG: 0, /** Return PNG encoded image */ - PNG: 1 + PNG: 1, }; /** @@ -204,7 +204,7 @@ export class Camera extends IonicNativePlugin { /** Allow selection of video only, ONLY RETURNS URL */ VIDEO: 1, /** Allow selection from all media types */ - ALLMEDIA: 2 + ALLMEDIA: 2, }; /** @@ -216,7 +216,7 @@ export class Camera extends IonicNativePlugin { /** Take picture from camera */ CAMERA: 1, /** Choose image from picture library (same as SAVEDPHOTOALBUM for Android) */ - SAVEDPHOTOALBUM: 2 + SAVEDPHOTOALBUM: 2, }; /** @@ -227,7 +227,7 @@ export class Camera extends IonicNativePlugin { ARROW_DOWN: 2, ARROW_LEFT: 4, ARROW_RIGHT: 8, - ARROW_ANY: 15 + ARROW_ANY: 15, }; /** @@ -237,7 +237,7 @@ export class Camera extends IonicNativePlugin { /** Use the back-facing camera */ BACK: 0, /** Use the front-facing camera */ - FRONT: 1 + FRONT: 1, }; /** @@ -246,7 +246,7 @@ export class Camera extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with Base64 encoding of the image data, or the image file URI, depending on cameraOptions, otherwise rejects with an error. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getPicture(options?: CameraOptions): Promise { return; @@ -258,7 +258,7 @@ export class Camera extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) cleanup(): Promise { return; diff --git a/src/@ionic-native/plugins/card-io/index.ts b/src/@ionic-native/plugins/card-io/index.ts index e7d0ab7af..5be21413f 100644 --- a/src/@ionic-native/plugins/card-io/index.ts +++ b/src/@ionic-native/plugins/card-io/index.ts @@ -171,7 +171,7 @@ export interface CardIOResponse { plugin: 'card.io.cordova.mobilesdk', pluginRef: 'CardIO', repo: 'https://github.com/card-io/card.io-Cordova-Plugin', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class CardIO extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/chooser/index.ts b/src/@ionic-native/plugins/chooser/index.ts index 93bc2a0fd..12c6f1344 100644 --- a/src/@ionic-native/plugins/chooser/index.ts +++ b/src/@ionic-native/plugins/chooser/index.ts @@ -50,7 +50,7 @@ export interface ChooserResult { plugin: 'cordova-plugin-chooser', pluginRef: 'chooser', repo: 'https://github.com/cyph/cordova-plugin-chooser', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Chooser extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/class-kit/index.ts b/src/@ionic-native/plugins/class-kit/index.ts index 781addeaf..7b92f14a7 100644 --- a/src/@ionic-native/plugins/class-kit/index.ts +++ b/src/@ionic-native/plugins/class-kit/index.ts @@ -40,7 +40,7 @@ export enum CCKContextType { game, document, audio, - video + video, } export enum CCKContextTopic { @@ -51,7 +51,7 @@ export enum CCKContextTopic { socialScience = 'socialScience', computerScienceAndEngineering = 'computerScienceAndEngineering', artsAndMusic = 'artsAndMusic', - healthAndFitness = 'healthAndFitness' + healthAndFitness = 'healthAndFitness', } export interface CCKBinaryItem { @@ -80,7 +80,7 @@ export interface CCKBinaryItem { export enum CCKBinaryType { trueFalse = 0, passFail, - yesNo + yesNo, } export interface CCKScoreItem { @@ -249,7 +249,7 @@ export interface CCKQuantityItem { plugin: 'cordova-plugin-classkit', pluginRef: 'CordovaClassKit', repo: 'https://github.com/sebastianbaar/cordova-plugin-classkit.git', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class ClassKit extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/clevertap/index.ts b/src/@ionic-native/plugins/clevertap/index.ts index ecf4a4ad4..a745c7d58 100644 --- a/src/@ionic-native/plugins/clevertap/index.ts +++ b/src/@ionic-native/plugins/clevertap/index.ts @@ -21,7 +21,7 @@ declare var clevertap: any; plugin: 'clevertap-cordova', pluginRef: 'CleverTap', repo: 'https://github.com/CleverTap/clevertap-cordova', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class CleverTap extends IonicNativePlugin { @@ -188,10 +188,7 @@ export class CleverTap extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - createNotificationChannelGroup( - groupID: string, - groupName: string - ): Promise { + createNotificationChannelGroup(groupID: string, groupName: string): Promise { return; } @@ -246,10 +243,7 @@ export class CleverTap extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - recordEventWithNameAndProps( - eventName: string, - eventProps: any - ): Promise { + recordEventWithNameAndProps(eventName: string, eventProps: any): Promise { return; } @@ -260,10 +254,7 @@ export class CleverTap extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - recordChargedEventWithDetailsAndItems( - details: any, - items: any - ): Promise { + recordChargedEventWithDetailsAndItems(details: any, items: any): Promise { return; } @@ -569,17 +560,13 @@ export class CleverTap extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - pushInstallReferrer( - source: string, - medium: string, - campaign: string - ): Promise { + pushInstallReferrer(source: string, medium: string, campaign: string): Promise { return; } /**************************** - * Notification Inbox methods - ****************************/ + * Notification Inbox methods + ****************************/ /** * Call this method to initialize the App Inbox */ @@ -613,7 +600,6 @@ export class CleverTap extends IonicNativePlugin { return; } - /******************* * Developer Options ******************/ diff --git a/src/@ionic-native/plugins/clipboard/index.ts b/src/@ionic-native/plugins/clipboard/index.ts index fc2e04546..c8ba43246 100644 --- a/src/@ionic-native/plugins/clipboard/index.ts +++ b/src/@ionic-native/plugins/clipboard/index.ts @@ -34,7 +34,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-clipboard', pluginRef: 'cordova.plugins.clipboard', repo: 'https://github.com/ihadeed/cordova-clipboard', - platforms: ['Android', 'iOS', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows Phone 8'], }) @Injectable() export class Clipboard extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/cloud-settings/index.ts b/src/@ionic-native/plugins/cloud-settings/index.ts index 941bd3171..dc82e0732 100644 --- a/src/@ionic-native/plugins/cloud-settings/index.ts +++ b/src/@ionic-native/plugins/cloud-settings/index.ts @@ -33,10 +33,9 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-cloud-settings', pluginRef: 'cordova.plugin.cloudsettings', repo: 'https://github.com/dpa99c/cordova-plugin-cloud-settings', - install: - 'ionic cordova plugin add cordova-plugin-cloud-settings --variable ANDROID_BACKUP_SERVICE_KEY=myapikey', + install: 'ionic cordova plugin add cordova-plugin-cloud-settings --variable ANDROID_BACKUP_SERVICE_KEY=myapikey', installVariables: ['ANDROID_BACKUP_SERVICE_KEY'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class CloudSettings extends IonicNativePlugin { @@ -58,7 +57,7 @@ export class CloudSettings extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) save(settings: any, overwrite?: boolean): Promise { return; diff --git a/src/@ionic-native/plugins/clover-go/index.ts b/src/@ionic-native/plugins/clover-go/index.ts index ebc0b1544..c243d8bb3 100644 --- a/src/@ionic-native/plugins/clover-go/index.ts +++ b/src/@ionic-native/plugins/clover-go/index.ts @@ -1,5 +1,12 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, CordovaProperty, CordovaInstance, InstanceProperty, IonicNativePlugin } from '@ionic-native/core'; +import { + Plugin, + Cordova, + CordovaProperty, + CordovaInstance, + InstanceProperty, + IonicNativePlugin, +} from '@ionic-native/core'; import { Observable } from 'rxjs'; export interface Response { @@ -57,11 +64,10 @@ export interface SaleResponse extends Response { pluginRef: 'clovergo', repo: 'https://github.com/hotwax/cordova-plugin-clovergo', install: 'ionic plugin add cordova-plugin-clovergo', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class CloverGo extends IonicNativePlugin { - /** * This function initialises Clover Go SDK * @param configuration {object} @@ -101,5 +107,4 @@ export class CloverGo extends IonicNativePlugin { sale(saleInfo: object): Promise { return; } - } diff --git a/src/@ionic-native/plugins/code-push/index.ts b/src/@ionic-native/plugins/code-push/index.ts index d5faad345..84c3fd71f 100644 --- a/src/@ionic-native/plugins/code-push/index.ts +++ b/src/@ionic-native/plugins/code-push/index.ts @@ -12,7 +12,7 @@ namespace Http { TRACE, OPTIONS, CONNECT, - PATCH + PATCH, } export interface Response { @@ -22,12 +22,7 @@ namespace Http { export interface Requester { request(verb: Verb, url: string, callback: Callback): void; - request( - verb: Verb, - url: string, - requestBody: string, - callback: Callback - ): void; + request(verb: Verb, url: string, requestBody: string, callback: Callback): void; } } @@ -76,10 +71,7 @@ export interface IRemotePackage extends IPackage { * @param {SuccessCallback} [abortSuccess] Optional callback invoked if the abort operation succeeded. * @param {ErrorCallback} [abortError] Optional callback invoked in case of an error. */ - abortDownload( - abortSuccess?: SuccessCallback, - abortError?: ErrorCallback - ): void; + abortDownload(abortSuccess?: SuccessCallback, abortError?: ErrorCallback): void; } /** @@ -196,19 +188,13 @@ interface CodePushCordovaPlugin { * @param packageSuccess Callback invoked with the currently deployed package information. * @param packageError Optional callback invoked in case of an error. */ - getCurrentPackage( - packageSuccess: SuccessCallback, - packageError?: ErrorCallback - ): void; + getCurrentPackage(packageSuccess: SuccessCallback, packageError?: ErrorCallback): void; /** * Gets the pending package information, if any. A pending package is one that has been installed but the application still runs the old code. * This happens only after a package has been installed using ON_NEXT_RESTART or ON_NEXT_RESUME mode, but the application was not restarted/resumed yet. */ - getPendingPackage( - packageSuccess: SuccessCallback, - packageError?: ErrorCallback - ): void; + getPendingPackage(packageSuccess: SuccessCallback, packageError?: ErrorCallback): void; /** * Checks with the CodePush server if an update package is available for download. @@ -233,10 +219,7 @@ interface CodePushCordovaPlugin { * @param {SuccessCallback} [notifySucceeded] Optional callback invoked if the plugin was successfully notified. * @param {ErrorCallback} [notifyFailed] Optional callback invoked in case of an error during notifying the plugin. */ - notifyApplicationReady( - notifySucceeded?: SuccessCallback, - notifyFailed?: ErrorCallback - ): void; + notifyApplicationReady(notifySucceeded?: SuccessCallback, notifyFailed?: ErrorCallback): void; /** * Reloads the application. If there is a pending update package installed using ON_NEXT_RESTART or ON_NEXT_RESUME modes, the update @@ -245,10 +228,7 @@ interface CodePushCordovaPlugin { * @param {SuccessCallback} installSuccess * @param {ErrorCallback} [errorCallback] */ - restartApplication( - installSuccess: SuccessCallback, - errorCallback?: ErrorCallback - ): void; + restartApplication(installSuccess: SuccessCallback, errorCallback?: ErrorCallback): void; /** * Convenience method for installing updates in one method call. @@ -327,7 +307,7 @@ export enum SyncStatus { /** * Intermediate status - the update package is about to be installed. */ - INSTALLING_UPDATE + INSTALLING_UPDATE, } /** @@ -347,7 +327,7 @@ export enum InstallMode { /** * The udpate is downloaded but not installed immediately. The new content will be available the next time the application is resumed or restarted, whichever event happends first. */ - ON_NEXT_RESUME + ON_NEXT_RESUME, } /** @@ -484,7 +464,7 @@ export interface DownloadProgress { plugin: 'cordova-plugin-code-push', pluginRef: 'codePush', repo: 'https://github.com/Microsoft/cordova-plugin-code-push', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class CodePush extends IonicNativePlugin { @@ -515,7 +495,7 @@ export class CodePush extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) checkForUpdate(deploymentKey?: string): Promise { return; @@ -566,12 +546,9 @@ export class CodePush extends IonicNativePlugin { @Cordova({ observable: true, successIndex: 0, - errorIndex: 3 // we don't need this, so we set it to a value higher than # of args + errorIndex: 3, // we don't need this, so we set it to a value higher than # of args }) - sync( - syncOptions?: SyncOptions, - downloadProgress?: SuccessCallback - ): Observable { + sync(syncOptions?: SyncOptions, downloadProgress?: SuccessCallback): Observable { return; } } diff --git a/src/@ionic-native/plugins/colored-browser-tabs/index.ts b/src/@ionic-native/plugins/colored-browser-tabs/index.ts index 1e23e8a59..08e7564ca 100644 --- a/src/@ionic-native/plugins/colored-browser-tabs/index.ts +++ b/src/@ionic-native/plugins/colored-browser-tabs/index.ts @@ -30,7 +30,7 @@ import { Observable } from 'rxjs'; plugin: 'cordova-plugin-colored-browser-tabs', pluginRef: 'ColoredBrowserTabs', repo: 'https://github.com/TobyEb/cordova-plugin-colored-browser-tabs', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class ColoredBrowserTabs extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/contacts/index.ts b/src/@ionic-native/plugins/contacts/index.ts index c38d71fa2..07e0e422f 100644 --- a/src/@ionic-native/plugins/contacts/index.ts +++ b/src/@ionic-native/plugins/contacts/index.ts @@ -6,7 +6,7 @@ import { IonicNativePlugin, Plugin, checkAvailability, - getPromise + getPromise, } from '@ionic-native/core'; declare const window: any, navigator: any; @@ -111,9 +111,7 @@ export class Contact implements IContactProperties { [key: string]: any; constructor() { - if ( - checkAvailability('navigator.contacts', 'create', 'Contacts') === true - ) { + if (checkAvailability('navigator.contacts', 'create', 'Contacts') === true) { this._objectInstance = navigator.contacts.create(); } } @@ -210,11 +208,7 @@ export interface IContactField { * @hidden */ export class ContactField implements IContactField { - constructor( - public type?: string, - public value?: string, - public pref?: boolean - ) {} + constructor(public type?: string, public value?: string, public pref?: boolean) {} } export interface IContactAddress { @@ -352,8 +346,8 @@ export class ContactFindOptions implements IContactFindOptions { 'Ubuntu', 'Windows', 'Windows 8', - 'Windows Phone' - ] + 'Windows Phone', + ], }) export class Contacts extends IonicNativePlugin { /** @@ -371,10 +365,7 @@ export class Contacts extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the search results (an array of Contact objects) */ @CordovaCheck() - find( - fields: ContactFieldType[], - options?: IContactFindOptions - ): Promise { + find(fields: ContactFieldType[], options?: IContactFindOptions): Promise { return getPromise((resolve: Function, reject: Function) => { navigator.contacts.find( fields, @@ -394,10 +385,7 @@ export class Contacts extends IonicNativePlugin { @CordovaCheck() pickContact(): Promise { return getPromise((resolve: Function, reject: Function) => { - navigator.contacts.pickContact( - (contact: any) => resolve(processContact(contact)), - reject - ); + navigator.contacts.pickContact((contact: any) => resolve(processContact(contact)), reject); }); } } diff --git a/src/@ionic-native/plugins/couchbase-lite/index.ts b/src/@ionic-native/plugins/couchbase-lite/index.ts index 589b378e8..92d28bc32 100644 --- a/src/@ionic-native/plugins/couchbase-lite/index.ts +++ b/src/@ionic-native/plugins/couchbase-lite/index.ts @@ -116,7 +116,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'couchbase-lite-phonegap-plugin', pluginRef: 'cblite', repo: 'https://github.com/couchbaselabs/Couchbase-Lite-PhoneGap-Plugin', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class CouchbaseLite extends IonicNativePlugin { @@ -125,7 +125,7 @@ export class CouchbaseLite extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with the local database url */ @Cordova({ - callbackStyle: 'node' + callbackStyle: 'node', }) getURL(): Promise { return; diff --git a/src/@ionic-native/plugins/crop/index.ts b/src/@ionic-native/plugins/crop/index.ts index 3183ca688..d203b6396 100644 --- a/src/@ionic-native/plugins/crop/index.ts +++ b/src/@ionic-native/plugins/crop/index.ts @@ -32,7 +32,7 @@ export interface CropOptions { plugin: 'cordova-plugin-crop', pluginRef: 'plugins', repo: 'https://github.com/jeduan/cordova-plugin-crop', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Crop extends IonicNativePlugin { @@ -43,7 +43,7 @@ export class Crop extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves with the new image path, or rejects if failed to crop. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) crop(pathToImage: string, options?: CropOptions): Promise { return; diff --git a/src/@ionic-native/plugins/date-picker/index.ts b/src/@ionic-native/plugins/date-picker/index.ts index 44ac52707..aee4bd9d0 100644 --- a/src/@ionic-native/plugins/date-picker/index.ts +++ b/src/@ionic-native/plugins/date-picker/index.ts @@ -150,7 +150,7 @@ export interface DatePickerOptions { plugin: 'cordova-plugin-datepicker', pluginRef: 'datePicker', repo: 'https://github.com/VitaliiBlagodir/cordova-plugin-datepicker', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) @Injectable() export class DatePicker extends IonicNativePlugin { @@ -162,7 +162,7 @@ export class DatePicker extends IonicNativePlugin { THEME_HOLO_DARK: 2, THEME_HOLO_LIGHT: 3, THEME_DEVICE_DEFAULT_DARK: 4, - THEME_DEVICE_DEFAULT_LIGHT: 5 + THEME_DEVICE_DEFAULT_LIGHT: 5, }; /** diff --git a/src/@ionic-native/plugins/db-meter/index.ts b/src/@ionic-native/plugins/db-meter/index.ts index 3b188087a..d41ddfd3a 100644 --- a/src/@ionic-native/plugins/db-meter/index.ts +++ b/src/@ionic-native/plugins/db-meter/index.ts @@ -39,7 +39,7 @@ import { Observable } from 'rxjs'; plugin: 'cordova-plugin-dbmeter', pluginRef: 'DBMeter', repo: 'https://github.com/akofman/cordova-plugin-dbmeter', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class DBMeter extends IonicNativePlugin { @@ -49,7 +49,7 @@ export class DBMeter extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'stop' + clearFunction: 'stop', }) start(): Observable { return; diff --git a/src/@ionic-native/plugins/deeplinks/index.ts b/src/@ionic-native/plugins/deeplinks/index.ts index 6b6bfced8..da62c4d4c 100644 --- a/src/@ionic-native/plugins/deeplinks/index.ts +++ b/src/@ionic-native/plugins/deeplinks/index.ts @@ -88,13 +88,8 @@ export interface DeeplinkOptions { repo: 'https://github.com/ionic-team/ionic-plugin-deeplinks', install: 'ionic cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=myapp --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=example.com --variable ANDROID_PATH_PREFIX=/', - installVariables: [ - 'URL_SCHEME', - 'DEEPLINK_SCHEME', - 'DEEPLINK_HOST', - 'ANDROID_PATH_PREFIX' - ], - platforms: ['Android', 'Browser', 'iOS'] + installVariables: ['URL_SCHEME', 'DEEPLINK_SCHEME', 'DEEPLINK_HOST', 'ANDROID_PATH_PREFIX'], + platforms: ['Android', 'Browser', 'iOS'], }) @Injectable() export class Deeplinks extends IonicNativePlugin { @@ -109,7 +104,7 @@ export class Deeplinks extends IonicNativePlugin { * errors if a deeplink comes through that does not match a given path. */ @Cordova({ - observable: true + observable: true, }) route(paths: any): Observable { return; @@ -138,13 +133,9 @@ export class Deeplinks extends IonicNativePlugin { * errors if a deeplink comes through that does not match a given path. */ @Cordova({ - observable: true + observable: true, }) - routeWithNavController( - navController: any, - paths: any, - options?: DeeplinkOptions - ): Observable { + routeWithNavController(navController: any, paths: any, options?: DeeplinkOptions): Observable { return; } } diff --git a/src/@ionic-native/plugins/device-accounts/index.ts b/src/@ionic-native/plugins/device-accounts/index.ts index 5ed269c82..1af8f1111 100644 --- a/src/@ionic-native/plugins/device-accounts/index.ts +++ b/src/@ionic-native/plugins/device-accounts/index.ts @@ -38,7 +38,7 @@ export interface AndroidAccount { plugin: 'cordova-device-accounts-v2', pluginRef: 'DeviceAccounts', repo: 'https://github.com/xUnholy/cordova-device-accounts-v2', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class DeviceAccounts extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/device-feedback/index.ts b/src/@ionic-native/plugins/device-feedback/index.ts index 1fb017566..aa351b6da 100644 --- a/src/@ionic-native/plugins/device-feedback/index.ts +++ b/src/@ionic-native/plugins/device-feedback/index.ts @@ -45,7 +45,7 @@ export interface DeviceFeedbackStatus { plugin: 'cordova-plugin-velda-devicefeedback', pluginRef: 'plugins.deviceFeedback', repo: 'https://github.com/VVelda/device-feedback', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class DeviceFeedback extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/device-motion/index.ts b/src/@ionic-native/plugins/device-motion/index.ts index 488a83023..f1a2a4cef 100644 --- a/src/@ionic-native/plugins/device-motion/index.ts +++ b/src/@ionic-native/plugins/device-motion/index.ts @@ -77,8 +77,8 @@ export interface DeviceMotionAccelerometerOptions { 'Tizen', 'Ubuntu', 'Windows', - 'Windows Phone 8' - ] + 'Windows Phone 8', + ], }) @Injectable() export class DeviceMotion extends IonicNativePlugin { @@ -99,11 +99,9 @@ export class DeviceMotion extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse', observable: true, - clearFunction: 'clearWatch' + clearFunction: 'clearWatch', }) - watchAcceleration( - options?: DeviceMotionAccelerometerOptions - ): Observable { + watchAcceleration(options?: DeviceMotionAccelerometerOptions): Observable { return; } } diff --git a/src/@ionic-native/plugins/device-orientation/index.ts b/src/@ionic-native/plugins/device-orientation/index.ts index 6ec0e56d6..f07c182d5 100644 --- a/src/@ionic-native/plugins/device-orientation/index.ts +++ b/src/@ionic-native/plugins/device-orientation/index.ts @@ -83,8 +83,8 @@ export interface DeviceOrientationCompassOptions { 'Tizen', 'Ubuntu', 'Windows', - 'Windows Phone' - ] + 'Windows Phone', + ], }) @Injectable() export class DeviceOrientation extends IonicNativePlugin { @@ -107,11 +107,9 @@ export class DeviceOrientation extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse', observable: true, - clearFunction: 'clearWatch' + clearFunction: 'clearWatch', }) - watchHeading( - options?: DeviceOrientationCompassOptions - ): Observable { + watchHeading(options?: DeviceOrientationCompassOptions): Observable { return; } } diff --git a/src/@ionic-native/plugins/device/index.ts b/src/@ionic-native/plugins/device/index.ts index 324eb9e02..bbaca1447 100644 --- a/src/@ionic-native/plugins/device/index.ts +++ b/src/@ionic-native/plugins/device/index.ts @@ -24,11 +24,10 @@ declare const window: any; plugin: 'cordova-plugin-device', pluginRef: 'device', repo: 'https://github.com/apache/cordova-plugin-device', - platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows'] + platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows'], }) @Injectable() export class Device extends IonicNativePlugin { - /** Get the version of Cordova running on the device. */ @CordovaProperty() cordova: string; @@ -63,5 +62,4 @@ export class Device extends IonicNativePlugin { /** Get the device hardware serial number. */ @CordovaProperty() serial: string; - } diff --git a/src/@ionic-native/plugins/diagnostic/index.ts b/src/@ionic-native/plugins/diagnostic/index.ts index acae41b6f..0b34da7ae 100644 --- a/src/@ionic-native/plugins/diagnostic/index.ts +++ b/src/@ionic-native/plugins/diagnostic/index.ts @@ -39,7 +39,7 @@ import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-nati plugin: 'cordova.plugins.diagnostic', pluginRef: 'cordova.plugins.diagnostic', repo: 'https://github.com/dpa99c/cordova-diagnostic-plugin', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) @Injectable() export class Diagnostic extends IonicNativePlugin { @@ -67,7 +67,7 @@ export class Diagnostic extends IonicNativePlugin { RECEIVE_MMS: 'RECEIVE_MMS', WRITE_EXTERNAL_STORAGE: 'WRITE_EXTERNAL_STORAGE', READ_EXTERNAL_STORAGE: 'READ_EXTERNAL_STORAGE', - BODY_SENSORS: 'BODY_SENSORS' + BODY_SENSORS: 'BODY_SENSORS', }; @CordovaProperty() @@ -86,7 +86,7 @@ export class Diagnostic extends IonicNativePlugin { locationAuthorizationMode = { ALWAYS: 'always', - WHEN_IN_USE: 'when_in_use' + WHEN_IN_USE: 'when_in_use', }; permissionGroups = { @@ -102,24 +102,18 @@ export class Diagnostic extends IonicNativePlugin { 'USE_SIP', 'PROCESS_OUTGOING_CALLS', 'READ_CALL_LOG', - 'WRITE_CALL_LOG' + 'WRITE_CALL_LOG', ], SENSORS: ['BODY_SENSORS'], - SMS: [ - 'SEND_SMS', - 'RECEIVE_SMS', - 'READ_SMS', - 'RECEIVE_WAP_PUSH', - 'RECEIVE_MMS' - ], - STORAGE: ['READ_EXTERNAL_STORAGE', 'WRITE_EXTERNAL_STORAGE'] + SMS: ['SEND_SMS', 'RECEIVE_SMS', 'READ_SMS', 'RECEIVE_WAP_PUSH', 'RECEIVE_MMS'], + STORAGE: ['READ_EXTERNAL_STORAGE', 'WRITE_EXTERNAL_STORAGE'], }; locationMode = { HIGH_ACCURACY: 'high_accuracy', DEVICE_ONLY: 'device_only', BATTERY_SAVING: 'battery_saving', - LOCATION_OFF: 'location_off' + LOCATION_OFF: 'location_off', }; bluetoothState = { @@ -130,7 +124,7 @@ export class Diagnostic extends IonicNativePlugin { POWERED_OFF: 'powered_off', POWERED_ON: 'powered_on', POWERING_OFF: 'powering_off', - POWERING_ON: 'powering_on' + POWERING_ON: 'powering_on', }; @CordovaProperty() @@ -677,7 +671,7 @@ export class Diagnostic extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) switchToWirelessSettings(): void {} @@ -686,7 +680,7 @@ export class Diagnostic extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) switchToNFCSettings(): void {} @@ -726,7 +720,7 @@ export class Diagnostic extends IonicNativePlugin { */ @Cordova({ platforms: ['Android'], - sync: true + sync: true, }) registerNFCStateChangeHandler(handler: Function): void {} diff --git a/src/@ionic-native/plugins/dialogs/index.ts b/src/@ionic-native/plugins/dialogs/index.ts index 8a99f18cd..c842df735 100644 --- a/src/@ionic-native/plugins/dialogs/index.ts +++ b/src/@ionic-native/plugins/dialogs/index.ts @@ -42,7 +42,7 @@ export interface DialogsPromptCallback { plugin: 'cordova-plugin-dialogs', pluginRef: 'navigator.notification', repo: 'https://github.com/apache/cordova-plugin-dialogs', - platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class Dialogs extends IonicNativePlugin { @@ -55,7 +55,7 @@ export class Dialogs extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 4 + errorIndex: 4, }) alert(message: string, title?: string, buttonName?: string): Promise { return; @@ -70,13 +70,9 @@ export class Dialogs extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 4 + errorIndex: 4, }) - confirm( - message: string, - title?: string, - buttonLabels?: string[] - ): Promise { + confirm(message: string, title?: string, buttonLabels?: string[]): Promise { return; } @@ -90,7 +86,7 @@ export class Dialogs extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 5 + errorIndex: 5, }) prompt( message?: string, @@ -106,7 +102,7 @@ export class Dialogs extends IonicNativePlugin { * @param {numbers} times The number of times to repeat the beep. */ @Cordova({ - sync: true + sync: true, }) beep(times: number): void {} } diff --git a/src/@ionic-native/plugins/dns/index.ts b/src/@ionic-native/plugins/dns/index.ts index da5cacc09..e9f82a1d8 100644 --- a/src/@ionic-native/plugins/dns/index.ts +++ b/src/@ionic-native/plugins/dns/index.ts @@ -26,7 +26,7 @@ import { Injectable } from '@angular/core'; plugin: 'cordova-plugin-dns', pluginRef: 'cordova.plugins.dns', repo: 'https://bitbucket.org/zegeba/cordova-plugin-dns', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class DNS extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/document-picker/index.ts b/src/@ionic-native/plugins/document-picker/index.ts index d1ed52fa8..310462e4e 100644 --- a/src/@ionic-native/plugins/document-picker/index.ts +++ b/src/@ionic-native/plugins/document-picker/index.ts @@ -27,7 +27,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-documentpicker.DocumentPicker', pluginRef: 'DocumentPicker', repo: 'https://github.com/iampossible/Cordova-DocPicker', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class DocumentPicker extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/document-scanner/index.ts b/src/@ionic-native/plugins/document-scanner/index.ts index 50231f897..cae979aab 100644 --- a/src/@ionic-native/plugins/document-scanner/index.ts +++ b/src/@ionic-native/plugins/document-scanner/index.ts @@ -11,7 +11,7 @@ export enum DocumentScannerSourceType { /** * Scan from an image already stored on device. */ - GALLERY = 0 + GALLERY = 0, } export interface DocumentScannerOptions { @@ -75,18 +75,17 @@ export interface DocumentScannerOptions { plugin: 'cordova-plugin-document-scanner', pluginRef: 'scan', repo: 'https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class DocumentScanner extends IonicNativePlugin { - /** * Scan a document * @param opts {DocumentScannerOptions} optional parameter for controlling scanning * @return {Promise} file URL of scanned document image */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) scanDoc(opts?: DocumentScannerOptions): Promise { return; diff --git a/src/@ionic-native/plugins/document-viewer/index.ts b/src/@ionic-native/plugins/document-viewer/index.ts index bac63096f..58913b7cc 100644 --- a/src/@ionic-native/plugins/document-viewer/index.ts +++ b/src/@ionic-native/plugins/document-viewer/index.ts @@ -58,11 +58,10 @@ export interface DocumentViewerOptions { plugin: 'cordova-plugin-document-viewer', pluginRef: 'SitewaertsDocumentViewer', repo: 'https://github.com/sitewaerts/cordova-plugin-document-viewer', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) @Injectable() export class DocumentViewer extends IonicNativePlugin { - /** * Displays the email composer pre-filled with data. * @@ -85,8 +84,15 @@ export class DocumentViewer extends IonicNativePlugin { * @param [onError] {Function} */ @Cordova({ sync: true }) - canViewDocument(url: string, contentType: string, options: DocumentViewerOptions, onPossible?: Function, onMissingApp?: Function, onImpossible?: Function, onError?: Function): void { - } + canViewDocument( + url: string, + contentType: string, + options: DocumentViewerOptions, + onPossible?: Function, + onMissingApp?: Function, + onImpossible?: Function, + onError?: Function + ): void {} /** * Opens the file @@ -100,7 +106,13 @@ export class DocumentViewer extends IonicNativePlugin { * @param [onError] {Function} */ @Cordova({ sync: true }) - viewDocument(url: string, contentType: string, options: DocumentViewerOptions, onShow?: Function, onClose?: Function, onMissingApp?: Function, onError?: Function): void { - } - + viewDocument( + url: string, + contentType: string, + options: DocumentViewerOptions, + onShow?: Function, + onClose?: Function, + onMissingApp?: Function, + onError?: Function + ): void {} } diff --git a/src/@ionic-native/plugins/downloader/index.ts b/src/@ionic-native/plugins/downloader/index.ts index bd7973ffa..ea2e16eb4 100644 --- a/src/@ionic-native/plugins/downloader/index.ts +++ b/src/@ionic-native/plugins/downloader/index.ts @@ -5,7 +5,7 @@ export enum NotificationVisibility { Visible = 0, VisibleNotifyCompleted = 1, VisibilityHidden = 2, - VisibleNotifyOnlyCompletion = 3 + VisibleNotifyOnlyCompletion = 3, } export interface DownloadHttpHeader { @@ -109,7 +109,7 @@ export interface DownloadRequest { plugin: 'integrator-cordova-plugin-downloader', pluginRef: 'cordova.plugins.Downloader', repo: 'https://github.com/Luka313/integrator-cordova-plugin-downloader.git', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class Downloader extends IonicNativePlugin { @@ -119,6 +119,6 @@ export class Downloader extends IonicNativePlugin { */ @Cordova() download(request: DownloadRequest): Promise { - return; + return; } } diff --git a/src/@ionic-native/plugins/email-composer/index.ts b/src/@ionic-native/plugins/email-composer/index.ts index 9ea44d864..aa2b78f5d 100644 --- a/src/@ionic-native/plugins/email-composer/index.ts +++ b/src/@ionic-native/plugins/email-composer/index.ts @@ -1,11 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaCheck, - IonicNativePlugin, - Plugin, - getPromise -} from '@ionic-native/core'; +import { Cordova, CordovaCheck, IonicNativePlugin, Plugin, getPromise } from '@ionic-native/core'; export interface EmailComposerOptions { /** @@ -132,7 +126,7 @@ export interface EmailComposerOptions { plugin: 'cordova-plugin-email-composer', pluginRef: 'cordova.plugins.email', repo: 'https://github.com/katzer/cordova-plugin-email-composer', - platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows', 'macOS'] + platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows', 'macOS'], }) @Injectable() export class EmailComposer extends IonicNativePlugin { @@ -142,7 +136,7 @@ export class EmailComposer extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 2 + errorIndex: 2, }) hasPermission(): Promise { return; @@ -154,7 +148,7 @@ export class EmailComposer extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 2 + errorIndex: 2, }) requestPermission(): Promise { return; @@ -167,7 +161,7 @@ export class EmailComposer extends IonicNativePlugin { */ @CordovaCheck() hasAccount(): Promise { - return getPromise((resolve) => { + return getPromise(resolve => { EmailComposer.getPlugin().hasAccount((result: boolean) => { if (result) { resolve(true); @@ -187,7 +181,7 @@ export class EmailComposer extends IonicNativePlugin { @CordovaCheck() hasClient(app?: string): Promise { - return getPromise((resolve) => { + return getPromise(resolve => { if (app) { EmailComposer.getPlugin().hasClient(app, (result: boolean) => { if (result) { @@ -216,7 +210,7 @@ export class EmailComposer extends IonicNativePlugin { EmailComposer.getPlugin().getClients((apps: any) => { if (Object.prototype.toString.call(apps) === '[object String]') { apps = [apps]; - } + } resolve(apps); }); }); @@ -230,11 +224,10 @@ export class EmailComposer extends IonicNativePlugin { */ @CordovaCheck() isAvailable(app?: string): Promise { - return getPromise((resolve) => { - Promise.all([this.hasAccount, this.hasClient(app)]) - .then((results) => { - return resolve(results.length === 2 && results[0] && results[1]); - }); + return getPromise(resolve => { + Promise.all([this.hasAccount, this.hasClient(app)]).then(results => { + return resolve(results.length === 2 && results[0] && results[1]); + }); }); } @@ -247,7 +240,7 @@ export class EmailComposer extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 3 + errorIndex: 3, }) open(options: EmailComposerOptions, scope?: any): Promise { return; diff --git a/src/@ionic-native/plugins/emm-app-config/index.ts b/src/@ionic-native/plugins/emm-app-config/index.ts index 766928084..b149c0be3 100644 --- a/src/@ionic-native/plugins/emm-app-config/index.ts +++ b/src/@ionic-native/plugins/emm-app-config/index.ts @@ -40,7 +40,6 @@ import { Observable } from 'rxjs'; }) @Injectable() export class EmmAppConfig extends IonicNativePlugin { - /** * Get value from the Emm application configuration. * @param configKey {string} Key of the value to get, or null to get all the values as an object. @@ -57,5 +56,4 @@ export class EmmAppConfig extends IonicNativePlugin { @Cordova({ observable: true }) registerChangedListener(): Observable { return; } - } diff --git a/src/@ionic-native/plugins/estimote-beacons/index.ts b/src/@ionic-native/plugins/estimote-beacons/index.ts index 9f6526291..4c7f8ec66 100644 --- a/src/@ionic-native/plugins/estimote-beacons/index.ts +++ b/src/@ionic-native/plugins/estimote-beacons/index.ts @@ -42,7 +42,7 @@ export interface EstimoteBeaconRegion { plugin: 'cordova-plugin-estimote', pluginRef: 'estimote.beacons', repo: 'https://github.com/evothings/phonegap-estimotebeacons', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class EstimoteBeacons extends IonicNativePlugin { @@ -187,14 +187,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - clearFunction: 'stopAdvertisingAsBeacon' + clearFunction: 'stopAdvertisingAsBeacon', }) - startAdvertisingAsBeacon( - uuid: string, - major: number, - minor: number, - regionId: string - ): Promise { + startAdvertisingAsBeacon(uuid: string, major: number, minor: number, regionId: string): Promise { return; } @@ -300,7 +295,7 @@ export class EstimoteBeacons extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'stopEstimoteBeaconDiscovery' + clearFunction: 'stopEstimoteBeaconDiscovery', }) startEstimoteBeaconDiscovery(): Observable { return; @@ -344,7 +339,7 @@ export class EstimoteBeacons extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'stopRangingBeaconsInRegion', - clearWithArgs: true + clearWithArgs: true, }) startRangingBeaconsInRegion(region: EstimoteBeaconRegion): Observable { return; @@ -382,11 +377,9 @@ export class EstimoteBeacons extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'stopRangingSecureBeaconsInRegion', - clearWithArgs: true + clearWithArgs: true, }) - startRangingSecureBeaconsInRegion( - region: EstimoteBeaconRegion - ): Observable { + startRangingSecureBeaconsInRegion(region: EstimoteBeaconRegion): Observable { return; } @@ -423,12 +416,9 @@ export class EstimoteBeacons extends IonicNativePlugin { clearFunction: 'stopMonitoringForRegion', clearWithArgs: true, successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) - startMonitoringForRegion( - region: EstimoteBeaconRegion, - notifyEntryStateOnDisplay: boolean - ): Observable { + startMonitoringForRegion(region: EstimoteBeaconRegion, notifyEntryStateOnDisplay: boolean): Observable { return; } @@ -464,12 +454,9 @@ export class EstimoteBeacons extends IonicNativePlugin { clearFunction: 'stopSecureMonitoringForRegion', clearWithArgs: true, successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) - startSecureMonitoringForRegion( - region: EstimoteBeaconRegion, - notifyEntryStateOnDisplay: boolean - ): Observable { + startSecureMonitoringForRegion(region: EstimoteBeaconRegion, notifyEntryStateOnDisplay: boolean): Observable { return; } diff --git a/src/@ionic-native/plugins/extended-device-information/index.ts b/src/@ionic-native/plugins/extended-device-information/index.ts index 0d0ea9d0e..e0001db79 100644 --- a/src/@ionic-native/plugins/extended-device-information/index.ts +++ b/src/@ionic-native/plugins/extended-device-information/index.ts @@ -26,9 +26,8 @@ import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; pluginName: 'ExtendedDeviceInformation', plugin: 'cordova-plugin-extended-device-information', pluginRef: 'extended-device-information', - repo: - 'https://github.com/danielehrhardt/cordova-plugin-extended-device-information', - platforms: ['Android'] + repo: 'https://github.com/danielehrhardt/cordova-plugin-extended-device-information', + platforms: ['Android'], }) @Injectable() export class ExtendedDeviceInformation extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/fabric/index.ts b/src/@ionic-native/plugins/fabric/index.ts index 0cb90ae95..182e65610 100644 --- a/src/@ionic-native/plugins/fabric/index.ts +++ b/src/@ionic-native/plugins/fabric/index.ts @@ -38,7 +38,7 @@ export interface Attributes { install: 'ionic cordova plugin add cordova-fabric-plugin --variable FABRIC_API_KEY=XXX --variable FABRIC_API_SECRET=xxx', installVariables: ['FABRIC_API_KEY', 'FABRIC_API_SECRET'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Crashlytics extends IonicNativePlugin { @@ -161,7 +161,7 @@ export class Crashlytics extends IonicNativePlugin { install: 'ionic cordova plugin add cordova-fabric-plugin --variable FABRIC_API_KEY=XXX --variable FABRIC_API_SECRET=xxx', installVariables: ['FABRIC_API_KEY', 'FABRIC_API_SECRET'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Answers extends IonicNativePlugin { @@ -232,12 +232,7 @@ export class Answers extends IonicNativePlugin { * @param attributes Any additional user-defined attributes to be logged. */ @Cordova({ sync: true }) - sendStartCheckout( - totalPrice?: number, - currency?: string, - itemCount?: number, - attributes?: Attributes - ): void { + sendStartCheckout(totalPrice?: number, currency?: string, itemCount?: number, attributes?: Attributes): void { return; } @@ -314,11 +309,7 @@ export class Answers extends IonicNativePlugin { * @param attributes Any additional user-defined attributes to be logged. */ @Cordova({ sync: true }) - sendSignUp( - method?: string, - success?: boolean, - attributes?: Attributes - ): void { + sendSignUp(method?: string, success?: boolean, attributes?: Attributes): void { return; } @@ -381,12 +372,7 @@ export class Answers extends IonicNativePlugin { * @param attributes Any additional user-defined attributes to be logged. */ @Cordova({ sync: true }) - sendLevelEnd( - levelName?: string, - score?: number, - success?: boolean, - attributes?: Attributes - ): void { + sendLevelEnd(levelName?: string, score?: number, success?: boolean, attributes?: Attributes): void { return; } @@ -396,12 +382,7 @@ export class Answers extends IonicNativePlugin { * https://docs.fabric.io/android/answers/answers-events.html#content-view */ @Cordova({ sync: true }) - sendContentView( - name: string, - type?: string, - id?: string, - attributes?: Attributes - ): void { + sendContentView(name: string, type?: string, id?: string, attributes?: Attributes): void { return; } diff --git a/src/@ionic-native/plugins/facebook/index.ts b/src/@ionic-native/plugins/facebook/index.ts index 2af358672..3726f39d8 100644 --- a/src/@ionic-native/plugins/facebook/index.ts +++ b/src/@ionic-native/plugins/facebook/index.ts @@ -113,7 +113,7 @@ export interface FacebookLoginResponse { install: 'ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication"', installVariables: ['APP_ID', 'APP_NAME'], - platforms: ['Android', 'iOS', 'Browser'] + platforms: ['Android', 'iOS', 'Browser'], }) @Injectable() export class Facebook extends IonicNativePlugin { @@ -149,7 +149,7 @@ export class Facebook extends IonicNativePlugin { EVENT_PARAM_DESCRIPTION: 'fb_description', EVENT_PARAM_SOURCE_APPLICATION: 'fb_mobile_launch_source', EVENT_PARAM_VALUE_YES: '1', - EVENT_PARAM_VALUE_NO: '0' + EVENT_PARAM_VALUE_NO: '0', }; /** @@ -280,7 +280,7 @@ export class Facebook extends IonicNativePlugin { */ @Cordova({ successIndex: 3, - errorIndex: 4 + errorIndex: 4, }) logEvent(name: string, params?: Object, valueToSum?: number): Promise { return; diff --git a/src/@ionic-native/plugins/fcm/index.ts b/src/@ionic-native/plugins/fcm/index.ts index 27a223614..8a2db93c1 100644 --- a/src/@ionic-native/plugins/fcm/index.ts +++ b/src/@ionic-native/plugins/fcm/index.ts @@ -66,7 +66,7 @@ export interface NotificationData { plugin: 'cordova-plugin-fcm-with-dependecy-updated', pluginRef: 'FCMPlugin', repo: 'https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FCM extends IonicNativePlugin { @@ -96,7 +96,7 @@ export class FCM extends IonicNativePlugin { * @returns {Observable} Returns an Observable that notifies with the change of device's registration id */ @Cordova({ - observable: true + observable: true, }) onTokenRefresh(): Observable { return; @@ -147,7 +147,7 @@ export class FCM extends IonicNativePlugin { @Cordova({ observable: true, successIndex: 0, - errorIndex: 2 + errorIndex: 2, }) onNotification(): Observable { return; diff --git a/src/@ionic-native/plugins/file-chooser/index.ts b/src/@ionic-native/plugins/file-chooser/index.ts index acba7f1a8..ca60de184 100644 --- a/src/@ionic-native/plugins/file-chooser/index.ts +++ b/src/@ionic-native/plugins/file-chooser/index.ts @@ -2,10 +2,10 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface FileChooserOptions { - /** - * comma seperated mime types to filter files. - */ - mime: string; + /** + * comma seperated mime types to filter files. + */ + mime: string; } /** @@ -35,11 +35,10 @@ export interface FileChooserOptions { plugin: 'cordova-plugin-filechooser', pluginRef: 'fileChooser', repo: 'https://github.com/ihadeed/cordova-filechooser', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class FileChooser extends IonicNativePlugin { - /** * Open a file * @param {FileChooserOptions} [options] Optional parameter, defaults to ''. Filters the file selection list according to mime types @@ -49,5 +48,4 @@ export class FileChooser extends IonicNativePlugin { open(options?: FileChooserOptions): Promise { return; } - } diff --git a/src/@ionic-native/plugins/file-encryption/index.ts b/src/@ionic-native/plugins/file-encryption/index.ts index fce58c45b..37986d15c 100644 --- a/src/@ionic-native/plugins/file-encryption/index.ts +++ b/src/@ionic-native/plugins/file-encryption/index.ts @@ -26,7 +26,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-safe', pluginRef: 'cordova.plugins.disusered', repo: 'https://github.com/disusered/cordova-safe', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FileEncryption extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/file-opener/index.ts b/src/@ionic-native/plugins/file-opener/index.ts index afa247105..0cf5a838a 100644 --- a/src/@ionic-native/plugins/file-opener/index.ts +++ b/src/@ionic-native/plugins/file-opener/index.ts @@ -29,7 +29,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-file-opener2', pluginRef: 'cordova.plugins.fileOpener2', repo: 'https://github.com/pwlin/cordova-plugin-file-opener2', - platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'], }) @Injectable() export class FileOpener extends IonicNativePlugin { @@ -42,7 +42,7 @@ export class FileOpener extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'success', - errorName: 'error' + errorName: 'error', }) open(filePath: string, fileMIMEType: string): Promise { return; @@ -56,7 +56,7 @@ export class FileOpener extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'success', - errorName: 'error' + errorName: 'error', }) uninstall(packageId: string): Promise { return; @@ -70,7 +70,7 @@ export class FileOpener extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'success', - errorName: 'error' + errorName: 'error', }) appIsInstalled(packageId: string): Promise { return; @@ -85,7 +85,7 @@ export class FileOpener extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'success', - errorName: 'error' + errorName: 'error', }) showOpenWithDialog(filePath: string, fileMIMEType: string): Promise { return; diff --git a/src/@ionic-native/plugins/file-path/index.ts b/src/@ionic-native/plugins/file-path/index.ts index 67d3398bd..5aea68312 100644 --- a/src/@ionic-native/plugins/file-path/index.ts +++ b/src/@ionic-native/plugins/file-path/index.ts @@ -28,7 +28,7 @@ declare const window: any; plugin: 'cordova-plugin-filepath', pluginRef: 'window.FilePath', repo: 'https://github.com/hiddentao/cordova-plugin-filepath', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class FilePath extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/file-picker/index.ts b/src/@ionic-native/plugins/file-picker/index.ts index 241c7e77f..04dbf374d 100644 --- a/src/@ionic-native/plugins/file-picker/index.ts +++ b/src/@ionic-native/plugins/file-picker/index.ts @@ -35,7 +35,7 @@ export interface IOSFilePickerPosition { plugin: 'cordova-plugin-filepicker', pluginRef: 'FilePicker', repo: 'https://github.com/jcesarmobile/FilePicker-Phonegap-iOS-Plugin', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class IOSFilePicker extends IonicNativePlugin { @@ -46,12 +46,9 @@ export class IOSFilePicker extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) - pickFile( - utis?: string | string[], - position?: IOSFilePickerPosition - ): Promise { + pickFile(utis?: string | string[], position?: IOSFilePickerPosition): Promise { return; } } diff --git a/src/@ionic-native/plugins/file-transfer/index.ts b/src/@ionic-native/plugins/file-transfer/index.ts index bc2b7cd6a..e23be5ddc 100644 --- a/src/@ionic-native/plugins/file-transfer/index.ts +++ b/src/@ionic-native/plugins/file-transfer/index.ts @@ -1,11 +1,5 @@ import { Injectable } from '@angular/core'; -import { - CordovaInstance, - InstanceCheck, - IonicNativePlugin, - Plugin, - checkAvailability -} from '@ionic-native/core'; +import { CordovaInstance, InstanceCheck, IonicNativePlugin, Plugin, checkAvailability } from '@ionic-native/core'; export interface FileUploadOptions { /** @@ -179,15 +173,7 @@ export interface FileTransferError { plugin: 'cordova-plugin-file-transfer', pluginRef: 'FileTransfer', repo: 'https://github.com/apache/cordova-plugin-file-transfer', - platforms: [ - 'Amazon Fire OS', - 'Android', - 'Browser', - 'iOS', - 'Ubuntu', - 'Windows', - 'Windows Phone' - ] + platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone'], }) @Injectable() export class FileTransfer extends IonicNativePlugin { @@ -206,7 +192,7 @@ export class FileTransfer extends IonicNativePlugin { INVALID_URL_ERR: 2, CONNECTION_ERR: 3, ABORT_ERR: 4, - NOT_MODIFIED_ERR: 5 + NOT_MODIFIED_ERR: 5, }; /** @@ -223,19 +209,13 @@ export class FileTransfer extends IonicNativePlugin { */ @Plugin({ plugin: 'cordova-plugin-file-transfer', - pluginName: 'FileTransfer' + pluginName: 'FileTransfer', }) export class FileTransferObject { private _objectInstance: any; constructor() { - if ( - checkAvailability( - FileTransfer.getPluginRef(), - null, - FileTransfer.getPluginName() - ) === true - ) { + if (checkAvailability(FileTransfer.getPluginRef(), null, FileTransfer.getPluginName()) === true) { this._objectInstance = new (FileTransfer.getPlugin())(); } } @@ -251,7 +231,7 @@ export class FileTransferObject { */ @CordovaInstance({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) upload( fileUrl: string, @@ -273,14 +253,9 @@ export class FileTransferObject { */ @CordovaInstance({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) - download( - source: string, - target: string, - trustAllHosts?: boolean, - options?: { [s: string]: any } - ): Promise { + download(source: string, target: string, trustAllHosts?: boolean, options?: { [s: string]: any }): Promise { return; } @@ -298,8 +273,7 @@ export class FileTransferObject { * object which has an error code of FileTransferError.ABORT_ERR. */ @CordovaInstance({ - sync: true + sync: true, }) - abort(): void { - } + abort(): void {} } diff --git a/src/@ionic-native/plugins/file/index.ts b/src/@ionic-native/plugins/file/index.ts index 97074847c..54fd45fdb 100644 --- a/src/@ionic-native/plugins/file/index.ts +++ b/src/@ionic-native/plugins/file/index.ts @@ -70,11 +70,7 @@ export interface LocalFileSystem { * @param errorCallback A callback that is called when errors happen, or when the request to obtain the Entry is * denied. */ - resolveLocalFileSystemURL( - url: string, - successCallback: FileEntryCallback, - errorCallback?: ErrorCallback - ): void; + resolveLocalFileSystemURL(url: string, successCallback: FileEntryCallback, errorCallback?: ErrorCallback): void; /** * see requestFileSystem. @@ -152,10 +148,7 @@ export interface Entry { * @param successCallback A callback that is called with the time of the last modification. * @param errorCallback ErrorCallback A callback that is called when errors happen. */ - getMetadata( - successCallback: MetadataCallback, - errorCallback?: ErrorCallback - ): void; + getMetadata(successCallback: MetadataCallback, errorCallback?: ErrorCallback): void; /** * Set the metadata of the entry. @@ -163,11 +156,7 @@ export interface Entry { * @param errorCallback {Function} is called with a FileError * @param metadataObject {Metadata} keys and values to set */ - setMetadata( - successCallback: MetadataCallback, - errorCallback: ErrorCallback, - metadataObject: Metadata - ): void; + setMetadata(successCallback: MetadataCallback, errorCallback: ErrorCallback, metadataObject: Metadata): void; /** * The name of the entry, excluding the path leading to it. @@ -191,10 +180,7 @@ export interface Entry { * @param successCallback A callback that is called with the time of the last modification. * @param errorCallback ErrorCallback A callback that is called when errors happen. */ - getMetadata( - successCallback: MetadataCallback, - errorCallback?: ErrorCallback - ): void; + getMetadata(successCallback: MetadataCallback, errorCallback?: ErrorCallback): void; /** * Set the metadata of the entry. @@ -202,11 +188,7 @@ export interface Entry { * @param errorCallback {Function} is called with a FileError * @param metadataObject {Metadata} keys and values to set */ - setMetadata( - successCallback: MetadataCallback, - errorCallback: ErrorCallback, - metadataObject: Metadata - ): void; + setMetadata(successCallback: MetadataCallback, errorCallback: ErrorCallback, metadataObject: Metadata): void; /** * Move an entry to a different location on the file system. It is an error to try to: @@ -278,10 +260,7 @@ export interface Entry { * @param successCallback A callback that is called to return the parent Entry. * @param errorCallback A callback that is called when errors happen. */ - getParent( - successCallback: DirectoryEntryCallback, - errorCallback?: ErrorCallback - ): void; + getParent(successCallback: DirectoryEntryCallback, errorCallback?: ErrorCallback): void; } /** @@ -309,12 +288,7 @@ export interface DirectoryEntry extends Entry { * @param successCallback A callback that is called to return the File selected or created. * @param errorCallback A callback that is called when errors happen. */ - getFile( - path: string, - options?: Flags, - successCallback?: FileEntryCallback, - errorCallback?: ErrorCallback - ): void; + getFile(path: string, options?: Flags, successCallback?: FileEntryCallback, errorCallback?: ErrorCallback): void; /** * Creates or looks up a directory. @@ -347,10 +321,7 @@ export interface DirectoryEntry extends Entry { * @param successCallback A callback that is called on success. * @param errorCallback A callback that is called when errors happen. */ - removeRecursively( - successCallback: VoidCallback, - errorCallback?: ErrorCallback - ): void; + removeRecursively(successCallback: VoidCallback, errorCallback?: ErrorCallback): void; } /** @@ -374,10 +345,7 @@ export interface DirectoryReader { * of readEntries, successCallback must be called with a zero-length array as an argument. * @param errorCallback A callback indicating that there was an error reading from the Directory. */ - readEntries( - successCallback: EntriesCallback, - errorCallback?: ErrorCallback - ): void; + readEntries(successCallback: EntriesCallback, errorCallback?: ErrorCallback): void; } /** @@ -389,10 +357,7 @@ export interface FileEntry extends Entry { * @param successCallback A callback that is called with the new FileWriter. * @param errorCallback A callback that is called when errors happen. */ - createWriter( - successCallback: FileWriterCallback, - errorCallback?: ErrorCallback - ): void; + createWriter(successCallback: FileWriterCallback, errorCallback?: ErrorCallback): void; /** * Returns a File that represents the current state of the file that this FileEntry represents. @@ -706,7 +671,7 @@ declare const window: Window; plugin: 'cordova-plugin-file', pluginRef: 'cordova.file', repo: 'https://github.com/apache/cordova-plugin-file', - platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows'] + platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows'], }) @Injectable() export class File extends IonicNativePlugin { @@ -785,7 +750,7 @@ export class File extends IonicNativePlugin { 11: 'TYPE_MISMATCH_ERR', 12: 'PATH_EXISTS_ERR', 13: 'WRONG_ENTRY_TYPE', - 14: 'DIR_READ_ERR' + 14: 'DIR_READ_ERR', }; /** @@ -832,11 +797,7 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with a DirectoryEntry or rejects with an error. */ @CordovaCheck() - createDir( - path: string, - dirName: string, - replace: boolean - ): Promise { + createDir(path: string, dirName: string, replace: boolean): Promise { if (/^\//.test(dirName)) { const err = new FileError(5); err.message = 'directory cannot start with /'; @@ -844,7 +805,7 @@ export class File extends IonicNativePlugin { } const options: Flags = { - create: true + create: true, }; if (!replace) { @@ -891,12 +852,7 @@ export class File extends IonicNativePlugin { * rejects with an error. */ @CordovaCheck() - moveDir( - path: string, - dirName: string, - newPath: string, - newDirName: string - ): Promise { + moveDir(path: string, dirName: string, newPath: string, newDirName: string): Promise { newDirName = newDirName || dirName; if (/^\//.test(newDirName)) { @@ -926,12 +882,7 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to the new Entry object or rejects with an error. */ @CordovaCheck() - copyDir( - path: string, - dirName: string, - newPath: string, - newDirName: string - ): Promise { + copyDir(path: string, dirName: string, newPath: string, newDirName: string): Promise { if (/^\//.test(newDirName)) { const err = new FileError(5); err.message = 'directory cannot start with /'; @@ -968,7 +919,7 @@ export class File extends IonicNativePlugin { .then(fse => { return this.getDirectory(fse, dirName, { create: false, - exclusive: false + exclusive: false, }); }) .then(de => { @@ -1038,11 +989,7 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to a FileEntry or rejects with an error. */ @CordovaCheck() - createFile( - path: string, - fileName: string, - replace: boolean - ): Promise { + createFile(path: string, fileName: string, replace: boolean): Promise { if (/^\//.test(fileName)) { const err = new FileError(5); err.message = 'file-name cannot start with /'; @@ -1050,7 +997,7 @@ export class File extends IonicNativePlugin { } const options: Flags = { - create: true + create: true, }; if (!replace) { @@ -1109,7 +1056,7 @@ export class File extends IonicNativePlugin { const getFileOpts: Flags = { create: !options.append, - exclusive: !options.replace + exclusive: !options.replace, }; return this.resolveDirectoryUrl(path) @@ -1130,11 +1077,7 @@ export class File extends IonicNativePlugin { * @param {IWriteOptions} options replace file if set to true. See WriteOptions for more information. * @returns {Promise} Returns a Promise that resolves to updated file entry or rejects with an error. */ - private writeFileEntry( - fe: FileEntry, - text: string | Blob | ArrayBuffer, - options: IWriteOptions - ) { + private writeFileEntry(fe: FileEntry, text: string | Blob | ArrayBuffer, options: IWriteOptions) { return this.createWriter(fe) .then(writer => { if (options.append) { @@ -1158,11 +1101,7 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves or rejects with an error. */ @CordovaCheck() - writeExistingFile( - path: string, - fileName: string, - text: string | Blob - ): Promise { + writeExistingFile(path: string, fileName: string, text: string | Blob): Promise { return this.writeFile(path, fileName, text, { replace: true }); } @@ -1227,12 +1166,7 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to the new Entry or rejects with an error. */ @CordovaCheck() - moveFile( - path: string, - fileName: string, - newPath: string, - newFileName: string - ): Promise { + moveFile(path: string, fileName: string, newPath: string, newFileName: string): Promise { newFileName = newFileName || fileName; if (/^\//.test(newFileName)) { @@ -1262,12 +1196,7 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to an Entry or rejects with an error. */ @CordovaCheck() - copyFile( - path: string, - fileName: string, - newPath: string, - newFileName: string - ): Promise { + copyFile(path: string, fileName: string, newPath: string, newFileName: string): Promise { newFileName = newFileName || fileName; if (/^\//.test(newFileName)) { @@ -1348,11 +1277,7 @@ export class File extends IonicNativePlugin { * @returns {Promise} */ @CordovaCheck() - getDirectory( - directoryEntry: DirectoryEntry, - directoryName: string, - flags: Flags - ): Promise { + getDirectory(directoryEntry: DirectoryEntry, directoryName: string, flags: Flags): Promise { return new Promise((resolve, reject) => { try { directoryEntry.getDirectory( @@ -1381,11 +1306,7 @@ export class File extends IonicNativePlugin { * @returns {Promise} */ @CordovaCheck() - getFile( - directoryEntry: DirectoryEntry, - fileName: string, - flags: Flags - ): Promise { + getFile(directoryEntry: DirectoryEntry, fileName: string, flags: Flags): Promise { return new Promise((resolve, reject) => { try { directoryEntry.getFile(fileName, flags, resolve, err => { @@ -1459,11 +1380,7 @@ export class File extends IonicNativePlugin { /** * @hidden */ - private move( - srce: Entry, - destdir: DirectoryEntry, - newName: string - ): Promise { + private move(srce: Entry, destdir: DirectoryEntry, newName: string): Promise { return new Promise((resolve, reject) => { srce.moveTo( destdir, @@ -1482,11 +1399,7 @@ export class File extends IonicNativePlugin { /** * @hidden */ - private copy( - srce: Entry, - destdir: DirectoryEntry, - newName: string - ): Promise { + private copy(srce: Entry, destdir: DirectoryEntry, newName: string): Promise { return new Promise((resolve, reject) => { srce.copyTo( destdir, @@ -1556,10 +1469,7 @@ export class File extends IonicNativePlugin { /** * @hidden */ - private write( - writer: FileWriter, - gu: string | Blob | ArrayBuffer - ): Promise { + private write(writer: FileWriter, gu: string | Blob | ArrayBuffer): Promise { if (gu instanceof Blob) { return this.writeFileInChunks(writer, gu); } diff --git a/src/@ionic-native/plugins/fingerprint-aio/index.ts b/src/@ionic-native/plugins/fingerprint-aio/index.ts index 6e8426fa8..f55fed2d0 100644 --- a/src/@ionic-native/plugins/fingerprint-aio/index.ts +++ b/src/@ionic-native/plugins/fingerprint-aio/index.ts @@ -37,7 +37,6 @@ export interface FingerprintOptions { * @default false */ disableBackup?: boolean; - } /** @@ -78,11 +77,10 @@ export interface FingerprintOptions { plugin: 'cordova-plugin-fingerprint-aio', pluginRef: 'Fingerprint', repo: 'https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FingerprintAIO extends IonicNativePlugin { - /** * Convenience constant * @type {number} diff --git a/src/@ionic-native/plugins/firebase-analytics/index.ts b/src/@ionic-native/plugins/firebase-analytics/index.ts index 25bd20007..76a8163fc 100644 --- a/src/@ionic-native/plugins/firebase-analytics/index.ts +++ b/src/@ionic-native/plugins/firebase-analytics/index.ts @@ -31,7 +31,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-firebase-analytics', pluginRef: 'cordova.plugins.firebase.analytics', repo: 'https://github.com/chemerisuk/cordova-plugin-firebase-analytics', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FirebaseAnalytics extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/firebase-authentication/index.ts b/src/@ionic-native/plugins/firebase-authentication/index.ts index 20b0d4931..830d0e9cc 100644 --- a/src/@ionic-native/plugins/firebase-authentication/index.ts +++ b/src/@ionic-native/plugins/firebase-authentication/index.ts @@ -30,7 +30,7 @@ import { Observable } from 'rxjs'; repo: 'https://github.com/chemerisuk/cordova-plugin-firebase-authentication', install: 'ionic cordova plugin add cordova-plugin-firebase-authentication --variable FIREBASE_AUTH_VERSION=version', installVariables: ['FIREBASE_AUTH_VERSION'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FirebaseAuthentication extends IonicNativePlugin { @@ -50,10 +50,7 @@ export class FirebaseAuthentication extends IonicNativePlugin { * @param password Password */ @Cordova({ sync: true }) - createUserWithEmailAndPassword( - email: string, - password: string - ): Promise { + createUserWithEmailAndPassword(email: string, password: string): Promise { return; } @@ -107,10 +104,7 @@ export class FirebaseAuthentication extends IonicNativePlugin { * @param smsCode SMS code */ @Cordova({ sync: true }) - signInWithVerificationId( - verificationId: string, - smsCode: string - ): Promise { + signInWithVerificationId(verificationId: string, smsCode: string): Promise { return; } diff --git a/src/@ionic-native/plugins/firebase-crash/index.ts b/src/@ionic-native/plugins/firebase-crash/index.ts index b19525c8a..5395c2b89 100644 --- a/src/@ionic-native/plugins/firebase-crash/index.ts +++ b/src/@ionic-native/plugins/firebase-crash/index.ts @@ -25,7 +25,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-firebase-crash', pluginRef: 'cordova.plugins.firebase.crashlytics', repo: 'https://github.com/chemerisuk/cordova-plugin-firebase-crash', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FirebaseCrash extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/firebase-crashlytics/index.ts b/src/@ionic-native/plugins/firebase-crashlytics/index.ts index 2c0fc14ae..278eaa2e1 100644 --- a/src/@ionic-native/plugins/firebase-crashlytics/index.ts +++ b/src/@ionic-native/plugins/firebase-crashlytics/index.ts @@ -26,9 +26,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-firebase-crashlytics', pluginRef: 'FirebaseCrashlytics', repo: 'https://github.com/ReallySmallSoftware/cordova-plugin-firebase-crashlytics', - install: 'ionic cordova plugin add cordova-plugin-firebase-crashlytics --variable ANDROID_FIREBASE_CORE_VERSION=16.0.0', + install: + 'ionic cordova plugin add cordova-plugin-firebase-crashlytics --variable ANDROID_FIREBASE_CORE_VERSION=16.0.0', installVariables: ['ANDROID_FIREBASE_CORE_VERSION'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FirebaseCrashlytics extends IonicNativePlugin { @@ -38,7 +39,7 @@ export class FirebaseCrashlytics extends IonicNativePlugin { * @returns {void} */ @Cordova({ - sync: true + sync: true, }) initialise(): any { return; // We add return; here to avoid any IDE / Compiler errors @@ -50,7 +51,7 @@ export class FirebaseCrashlytics extends IonicNativePlugin { * @returns {void} */ @Cordova({ - sync: true + sync: true, }) crash(): void { return; // We add return; here to avoid any IDE / Compiler errors @@ -65,7 +66,7 @@ export class FirebaseCrashlytics extends IonicNativePlugin { * @returns {void} */ @Cordova({ - sync: true + sync: true, }) logPriority(priority: number, tag: string, message: string): void { return; @@ -78,7 +79,7 @@ export class FirebaseCrashlytics extends IonicNativePlugin { * @returns {void} */ @Cordova({ - sync: true + sync: true, }) log(message: string): void { return; @@ -91,7 +92,7 @@ export class FirebaseCrashlytics extends IonicNativePlugin { * @returns {void} */ @Cordova({ - sync: true + sync: true, }) logException(message: string): void { return; @@ -105,7 +106,7 @@ export class FirebaseCrashlytics extends IonicNativePlugin { * @returns {void} */ @Cordova({ - sync: true + sync: true, }) setString(key: string, value: string): void { return; @@ -119,7 +120,7 @@ export class FirebaseCrashlytics extends IonicNativePlugin { * @returns {void} */ @Cordova({ - sync: true + sync: true, }) setBool(key: string, value: boolean): void { return; @@ -133,7 +134,7 @@ export class FirebaseCrashlytics extends IonicNativePlugin { * @returns {void} */ @Cordova({ - sync: true + sync: true, }) setDouble(key: string, value: number): void { return; @@ -147,7 +148,7 @@ export class FirebaseCrashlytics extends IonicNativePlugin { * @returns {void} */ @Cordova({ - sync: true + sync: true, }) setFloat(key: string, value: number): void { return; @@ -161,7 +162,7 @@ export class FirebaseCrashlytics extends IonicNativePlugin { * @returns {void} */ @Cordova({ - sync: true + sync: true, }) setInt(key: string, value: number): void { return; @@ -174,7 +175,7 @@ export class FirebaseCrashlytics extends IonicNativePlugin { * @returns {void} */ @Cordova({ - sync: true + sync: true, }) setUserIdentifier(identifier: string): void { return; diff --git a/src/@ionic-native/plugins/firebase-dynamic-links/index.ts b/src/@ionic-native/plugins/firebase-dynamic-links/index.ts index aa5d7b2d3..2fee7c876 100644 --- a/src/@ionic-native/plugins/firebase-dynamic-links/index.ts +++ b/src/@ionic-native/plugins/firebase-dynamic-links/index.ts @@ -54,7 +54,7 @@ export interface IDynamicLink { install: 'ionic cordova plugin add cordova-plugin-firebase-dynamiclinks --save --variable APP_DOMAIN="example.com" --variable APP_PATH="/"', installVariables: ['APP_DOMAIN', 'APP_PATH'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FirebaseDynamicLinks extends IonicNativePlugin { @@ -64,7 +64,7 @@ export class FirebaseDynamicLinks extends IonicNativePlugin { */ @Cordova({ callbackOrder: 'reverse', - observable: true + observable: true, }) onDynamicLink(): Observable { return; diff --git a/src/@ionic-native/plugins/firebase-vision/index.ts b/src/@ionic-native/plugins/firebase-vision/index.ts index e19ec9f05..4cf29e01c 100644 --- a/src/@ionic-native/plugins/firebase-vision/index.ts +++ b/src/@ionic-native/plugins/firebase-vision/index.ts @@ -27,11 +27,10 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; plugin: 'cordova-plugin-firebase-mlvision', pluginRef: 'FirebaseVisionPlugin', repo: 'https://github.com/alon22/cordova-plugin-firebase-mlvision', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FirebaseVision extends IonicNativePlugin { - /** * Recognize text in image * @param file_uri {string} Image URI diff --git a/src/@ionic-native/plugins/firebase-x/index.ts b/src/@ionic-native/plugins/firebase-x/index.ts index 9d8dced89..d74849e16 100644 --- a/src/@ionic-native/plugins/firebase-x/index.ts +++ b/src/@ionic-native/plugins/firebase-x/index.ts @@ -72,46 +72,46 @@ export interface IChannelOptions { } export interface FirebaseUser { - /** - * ID token - */ - idToken?: string; + /** + * ID token + */ + idToken?: string; - /** - * Provider ID - */ - providerId?: string; + /** + * Provider ID + */ + providerId?: string; - /** - * UID - */ - uid?: string; + /** + * UID + */ + uid?: string; - /** - * photo url - */ - photoUrl?: string; + /** + * photo url + */ + photoUrl?: string; - /** - * phone number - */ - phoneNumber?: string; + /** + * phone number + */ + phoneNumber?: string; - /** - * is email verified - */ - emailIsVerified?: boolean; + /** + * is email verified + */ + emailIsVerified?: boolean; - /** - * email - */ - email?: string; + /** + * email + */ + email?: string; - /** - * name - */ - name?: string; - } + /** + * name + */ + name?: string; +} /** * @name Firebase X @@ -148,7 +148,7 @@ export interface FirebaseUser { plugin: 'cordova-plugin-firebasex', pluginRef: 'FirebasePlugin', repo: 'https://github.com/dpa99c/cordova-plugin-firebasex', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FirebaseX extends IonicNativePlugin { @@ -184,7 +184,7 @@ export class FirebaseX extends IonicNativePlugin { * @return {Observable} */ @Cordova({ - observable: true + observable: true, }) onTokenRefresh(): Observable { return; @@ -207,7 +207,7 @@ export class FirebaseX extends IonicNativePlugin { * @return {Observable} */ @Cordova({ - observable: true + observable: true, }) onApnsTokenReceived(): Observable { return; @@ -220,7 +220,7 @@ export class FirebaseX extends IonicNativePlugin { * @return {Observable} */ @Cordova({ - observable: true + observable: true, }) onMessageReceived(): Observable { return; @@ -231,7 +231,7 @@ export class FirebaseX extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) grantPermission(): Promise { return; @@ -278,7 +278,7 @@ export class FirebaseX extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) clearAllNotifications(): Promise { return; @@ -502,7 +502,12 @@ export class FirebaseX extends IonicNativePlugin { * code {string} - verification code. Will only be present if instantVerification is true. Always undefined on iOS. */ @Cordova() - verifyPhoneNumber(success: (value: string | object) => void, error: (err: string) => void, phoneNumber: string, timeoutDuration = 0): Promise { + verifyPhoneNumber( + success: (value: string | object) => void, + error: (err: string) => void, + phoneNumber: string, + timeoutDuration = 0 + ): Promise { return; } @@ -658,7 +663,12 @@ export class FirebaseX extends IonicNativePlugin { * @param {function} error - callback function which will be passed a {string} error message as an argument. */ @Cordova() - addDocumentToFirestoreCollection(document: object, collection: string, success: (id: string) => void, error: (err: string) => void): Promise { + addDocumentToFirestoreCollection( + document: object, + collection: string, + success: (id: string) => void, + error: (err: string) => void + ): Promise { return; } @@ -671,7 +681,13 @@ export class FirebaseX extends IonicNativePlugin { * @param {function} error - callback function which will be passed a {string} error message as an argument. */ @Cordova() - setDocumentInFirestoreCollection(documentId: string, document: object, collection: string, success: () => void, error: (err: string) => void): Promise { + setDocumentInFirestoreCollection( + documentId: string, + document: object, + collection: string, + success: () => void, + error: (err: string) => void + ): Promise { return; } @@ -686,7 +702,13 @@ export class FirebaseX extends IonicNativePlugin { * @param {function} error - callback function which will be passed a {string} error message as an argument. */ @Cordova() - updateDocumentInFirestoreCollection(documentId: string, document: object, collection: string, success: () => void, error: (err: string) => void): Promise { + updateDocumentInFirestoreCollection( + documentId: string, + document: object, + collection: string, + success: () => void, + error: (err: string) => void + ): Promise { return; } @@ -699,7 +721,12 @@ export class FirebaseX extends IonicNativePlugin { * @param {function} error - callback function which will be passed a {string} error message as an argument. */ @Cordova() - deleteDocumentFromFirestoreCollection(documentId: string, collection: string, success: () => void, error: (err: string) => void): Promise { + deleteDocumentFromFirestoreCollection( + documentId: string, + collection: string, + success: () => void, + error: (err: string) => void + ): Promise { return; } @@ -712,7 +739,12 @@ export class FirebaseX extends IonicNativePlugin { * @param {function} error - callback function which will be passed a {string} error message as an argument. */ @Cordova() - fetchDocumentInFirestoreCollection(documentId: string, collection: string, success: (doc: any) => void, error: (err: string) => void): Promise { + fetchDocumentInFirestoreCollection( + documentId: string, + collection: string, + success: (doc: any) => void, + error: (err: string) => void + ): Promise { return; } @@ -724,7 +756,11 @@ export class FirebaseX extends IonicNativePlugin { * @param {function} error - callback function which will be passed a {string} error message as an argument. */ @Cordova() - fetchFirestoreCollection(collection: string, success: (docs: any) => void, error: (err: string) => void): Promise { + fetchFirestoreCollection( + collection: string, + success: (docs: any) => void, + error: (err: string) => void + ): Promise { return; } } diff --git a/src/@ionic-native/plugins/firebase/index.ts b/src/@ionic-native/plugins/firebase/index.ts index c2d9f6c7c..210d74ddd 100644 --- a/src/@ionic-native/plugins/firebase/index.ts +++ b/src/@ionic-native/plugins/firebase/index.ts @@ -32,7 +32,7 @@ import { Observable } from 'rxjs'; plugin: 'cordova-plugin-firebase', pluginRef: 'FirebasePlugin', repo: 'https://github.com/arnesson/cordova-plugin-firebase', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Firebase extends IonicNativePlugin { @@ -50,7 +50,7 @@ export class Firebase extends IonicNativePlugin { * @return {Observable} */ @Cordova({ - observable: true + observable: true, }) onTokenRefresh(): Observable { return; @@ -61,7 +61,7 @@ export class Firebase extends IonicNativePlugin { * @return {Observable} */ @Cordova({ - observable: true + observable: true, }) onNotificationOpen(): Observable { return; @@ -72,7 +72,7 @@ export class Firebase extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) grantPermission(): Promise { return; @@ -194,7 +194,7 @@ export class Firebase extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) fetch(cacheExpirationSeconds?: number): Promise { return; @@ -217,7 +217,7 @@ export class Firebase extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) getValue(key: string, namespace?: string): Promise { return; @@ -230,7 +230,7 @@ export class Firebase extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) getByteArray(key: string, namespace?: string): Promise { return; @@ -241,7 +241,7 @@ export class Firebase extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) getInfo(): Promise { return; @@ -253,7 +253,7 @@ export class Firebase extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) setConfigSettings(settings: any): Promise { return; @@ -266,7 +266,7 @@ export class Firebase extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) setDefaults(defaults: any, namespace?: string): Promise { return; @@ -330,12 +330,9 @@ export class Firebase extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS'], successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) - verifyPhoneNumber( - phoneNumber: string, - timeoutDuration = 0 - ): Promise { + verifyPhoneNumber(phoneNumber: string, timeoutDuration = 0): Promise { return; } @@ -344,7 +341,7 @@ export class Firebase extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) clearAllNotifications(): Promise { return; diff --git a/src/@ionic-native/plugins/flashlight/index.ts b/src/@ionic-native/plugins/flashlight/index.ts index dc1e51372..d41ce81d9 100644 --- a/src/@ionic-native/plugins/flashlight/index.ts +++ b/src/@ionic-native/plugins/flashlight/index.ts @@ -24,11 +24,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-flashlight', pluginRef: 'window.plugins.flashlight', repo: 'https://github.com/EddyVerbruggen/Flashlight-PhoneGap-Plugin', - platforms: ['Android', 'iOS', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows Phone 8'], }) @Injectable() export class Flashlight extends IonicNativePlugin { - /** * Checks if the flashlight is available * @returns {Promise} Returns a promise that resolves with a boolean stating if the flashlight is available. @@ -65,16 +64,14 @@ export class Flashlight extends IonicNativePlugin { return; } - /** * Checks if the flashlight is turned on. * @returns {boolean} */ @Cordova({ - sync: true + sync: true, }) isSwitchedOn(): boolean { return; } - } diff --git a/src/@ionic-native/plugins/flurry-analytics/index.ts b/src/@ionic-native/plugins/flurry-analytics/index.ts index 5a726873d..a46cf1773 100644 --- a/src/@ionic-native/plugins/flurry-analytics/index.ts +++ b/src/@ionic-native/plugins/flurry-analytics/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - CordovaInstance, - IonicNativePlugin, - Plugin, - checkAvailability -} from '@ionic-native/core'; +import { CordovaInstance, IonicNativePlugin, Plugin, checkAvailability } from '@ionic-native/core'; export interface FlurryAnalyticsOptions { /** Flurry API key is required */ @@ -91,7 +86,7 @@ export class FlurryAnalyticsObject { */ @CordovaInstance({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) logEvent(eventName: string, params?: any): Promise { return; @@ -105,7 +100,7 @@ export class FlurryAnalyticsObject { */ @CordovaInstance({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) startTimedEvent(eventName: string, params?: Object): Promise { return; @@ -119,7 +114,7 @@ export class FlurryAnalyticsObject { */ @CordovaInstance({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) endTimedEvent(eventName: string, params?: Object): Promise { return; @@ -153,10 +148,7 @@ export class FlurryAnalyticsObject { * @return {Promise} */ @CordovaInstance() - setLocation( - location: FlurryAnalyticsLocation, - message: string - ): Promise { + setLocation(location: FlurryAnalyticsLocation, message: string): Promise { return; } @@ -218,7 +210,7 @@ export class FlurryAnalyticsObject { plugin: 'cordova-plugin-flurryanalytics', pluginRef: 'FlurryAnalytics', repo: 'https://github.com/blakgeek/cordova-plugin-flurryanalytics', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FlurryAnalytics extends IonicNativePlugin { @@ -230,13 +222,7 @@ export class FlurryAnalytics extends IonicNativePlugin { create(options: FlurryAnalyticsOptions): FlurryAnalyticsObject { let instance: any; - if ( - checkAvailability( - FlurryAnalytics.pluginRef, - null, - FlurryAnalytics.pluginName - ) === true - ) { + if (checkAvailability(FlurryAnalytics.pluginRef, null, FlurryAnalytics.pluginName) === true) { instance = new (window as any).FlurryAnalytics(options); } diff --git a/src/@ionic-native/plugins/foreground-service/index.ts b/src/@ionic-native/plugins/foreground-service/index.ts index a6867fcfb..0997757e6 100644 --- a/src/@ionic-native/plugins/foreground-service/index.ts +++ b/src/@ionic-native/plugins/foreground-service/index.ts @@ -44,11 +44,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-foreground-service', pluginRef: 'cordova.plugins.foregroundService', repo: 'https://github.com/DavidBriglio/cordova-plugin-foreground-service', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class ForegroundService extends IonicNativePlugin { - /** * Enables the foreground service * @@ -76,7 +75,7 @@ export class ForegroundService extends IonicNativePlugin { * @see https://material.io/design/platform-guidance/android-notifications.html */ @Cordova({ - sync: true + sync: true, }) start(title: string, text: string, icon?: string, importance: 1 | 2 | 3 = 1, id = 0): void { return; @@ -86,7 +85,7 @@ export class ForegroundService extends IonicNativePlugin { * Disables the foreground service */ @Cordova({ - sync: true + sync: true, }) stop(): void { return; diff --git a/src/@ionic-native/plugins/ftp/index.ts b/src/@ionic-native/plugins/ftp/index.ts index a8b914822..a997dd948 100644 --- a/src/@ionic-native/plugins/ftp/index.ts +++ b/src/@ionic-native/plugins/ftp/index.ts @@ -28,7 +28,7 @@ import { Observable } from 'rxjs'; plugin: 'cordova-plugin-ftp', pluginRef: 'cordova.plugin.ftp', repo: 'https://github.com/xfally/cordova-plugin-ftp', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FTP extends IonicNativePlugin { @@ -110,7 +110,7 @@ export class FTP extends IonicNativePlugin { * The arg `0`, `0.1xx`, `0.2xx` ... `1` means the upload percent. When it reach `1`, means success. */ @Cordova({ - observable: true + observable: true, }) upload(localFile: string, remoteFile: string): Observable { return; @@ -126,7 +126,7 @@ export class FTP extends IonicNativePlugin { * The arg `0`, `0.1xx`, `0.2xx` ... `1` means the upload percent. When it reach `1`, means success. */ @Cordova({ - observable: true + observable: true, }) download(localFile: string, remoteFile: string): Observable { return; diff --git a/src/@ionic-native/plugins/full-screen-image/index.ts b/src/@ionic-native/plugins/full-screen-image/index.ts index 4d273bb85..77185512d 100644 --- a/src/@ionic-native/plugins/full-screen-image/index.ts +++ b/src/@ionic-native/plugins/full-screen-image/index.ts @@ -32,11 +32,10 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; plugin: 'es.keensoft.fullscreenimage', pluginRef: 'FullScreenImage', repo: 'https://github.com/keensoft/FullScreenImage-Cordova-Plugin', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FullScreenImage extends IonicNativePlugin { - /** * Opens an image from a URL or path * @param url {string} url or image path diff --git a/src/@ionic-native/plugins/gao-de-location/index.ts b/src/@ionic-native/plugins/gao-de-location/index.ts index 377801788..60d2f2522 100644 --- a/src/@ionic-native/plugins/gao-de-location/index.ts +++ b/src/@ionic-native/plugins/gao-de-location/index.ts @@ -59,9 +59,10 @@ import { Observable } from 'rxjs'; plugin: 'cordova-plugin-gaodelocation-chenyu', pluginRef: 'GaoDe', repo: 'https://github.com/waliu/cordova-plugin-gaodelocation-chenyu.git', - install: 'ionic cordova plugin add cordova-plugin-gaodelocation-chenyu --variable ANDROID_API_KEY=your android key --variable IOS_API_KEY=your ios key', + install: + 'ionic cordova plugin add cordova-plugin-gaodelocation-chenyu --variable ANDROID_API_KEY=your android key --variable IOS_API_KEY=your ios key', installVariables: ['ANDROID_API_KEY', 'IOS_API_KEY'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class GaoDeLocation extends IonicNativePlugin { @@ -70,11 +71,9 @@ export class GaoDeLocation extends IonicNativePlugin { * @param positionOptions * @return Promise */ - @Cordova( - { - callbackOrder: 'reverse', - } - ) + @Cordova({ + callbackOrder: 'reverse', + }) getCurrentPosition(positionOptions: PositionOptions): Promise { return; } @@ -86,7 +85,7 @@ export class GaoDeLocation extends IonicNativePlugin { */ @Cordova({ callbackOrder: 'reverse', - observable: true + observable: true, }) startSerialLocation(positionOptions: PositionOptions): Observable { return; @@ -168,7 +167,6 @@ export interface AndroidOptions { locationCacheEnable: boolean; } - /** * * IOS positioning parameters @@ -229,7 +227,7 @@ export enum DesiredAccuracyEnum { /** * Accurate to the nearest three kilometers. */ - kCLLocationAccuracyThreeKilometers = 6 + kCLLocationAccuracyThreeKilometers = 6, } /** @@ -246,7 +244,7 @@ export enum LocationModeEnum { */ export enum LocationProtocolEnum { HTTP = 1, - HTTPS = 2 + HTTPS = 2, } /** diff --git a/src/@ionic-native/plugins/ge-tui-sdk-plugin/index.ts b/src/@ionic-native/plugins/ge-tui-sdk-plugin/index.ts index eff3ae25e..f1bd90e26 100644 --- a/src/@ionic-native/plugins/ge-tui-sdk-plugin/index.ts +++ b/src/@ionic-native/plugins/ge-tui-sdk-plugin/index.ts @@ -33,13 +33,13 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; plugin: 'cordova-plugin-getuisdk', pluginRef: 'GeTuiSdkPlugin', repo: 'git@github.com:GetuiLaboratory/cordova-plugin-getuisdk.git', - install: 'cordova plugin add cordova-plugin-getuisdk --variable PUSH_APPID=your appid --variable PUSH_APPKEY=your appkey --variable PUSH_APPSECRET=your appsecret', + install: + 'cordova plugin add cordova-plugin-getuisdk --variable PUSH_APPID=your appid --variable PUSH_APPKEY=your appkey --variable PUSH_APPSECRET=your appsecret', installVariables: ['PUSH_APPID', 'PUSH_APPKEY', 'PUSH_APPSECRET'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class GeTuiSdkPlugin extends IonicNativePlugin { - @Cordova() callback_init(callback: Function): Promise { return; diff --git a/src/@ionic-native/plugins/geofence/index.ts b/src/@ionic-native/plugins/geofence/index.ts index 2db93d5f6..4498d9e2e 100644 --- a/src/@ionic-native/plugins/geofence/index.ts +++ b/src/@ionic-native/plugins/geofence/index.ts @@ -80,14 +80,14 @@ declare const window: any; plugin: 'cordova-plugin-geofence', pluginRef: 'geofence', repo: 'https://github.com/cowbell/cordova-plugin-geofence', - platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'], }) @Injectable() export class Geofence extends IonicNativePlugin { TransitionType = { ENTER: 1, EXIT: 2, - BOTH: 3 + BOTH: 3, }; /** @@ -95,7 +95,9 @@ export class Geofence extends IonicNativePlugin { * @return {Observable} */ @CordovaFunctionOverride() - onTransitionReceived(): Observable { return; } + onTransitionReceived(): Observable { + return; + } /** * Initializes the plugin. User will be prompted to allow the app to use location and notifications. @@ -103,7 +105,9 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - initialize(): Promise { return; } + initialize(): Promise { + return; + } /** * Adds a new geofence or array of geofences. For geofence object, see above. @@ -111,7 +115,9 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - addOrUpdate(geofences: Object | Object[]): Promise { return; } + addOrUpdate(geofences: Object | Object[]): Promise { + return; + } /** * Removes a geofence or array of geofences. `geofenceID` corresponds to one or more IDs specified when the @@ -120,7 +126,9 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - remove(geofenceId: string | string[]): Promise { return; } + remove(geofenceId: string | string[]): Promise { + return; + } /** * Removes all geofences. @@ -128,7 +136,9 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - removeAll(): Promise { return; } + removeAll(): Promise { + return; + } /** * Returns an array of geofences currently being monitored. @@ -136,7 +146,9 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getWatched(): Promise { return; } + getWatched(): Promise { + return; + } /** * Called when the user clicks a geofence notification. iOS and Android only. diff --git a/src/@ionic-native/plugins/geolocation/index.ts b/src/@ionic-native/plugins/geolocation/index.ts index e7ab54028..fa01f2d15 100644 --- a/src/@ionic-native/plugins/geolocation/index.ts +++ b/src/@ionic-native/plugins/geolocation/index.ts @@ -158,7 +158,7 @@ export interface GeolocationOptions { install: 'ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you"', installVariables: ['GEOLOCATION_USAGE_DESCRIPTION'], - platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class Geolocation extends IonicNativePlugin { @@ -169,7 +169,7 @@ export class Geolocation extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the [position](https://developer.mozilla.org/en-US/docs/Web/API/Position) of the device, or rejects with an error. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getCurrentPosition(options?: GeolocationOptions): Promise { return; diff --git a/src/@ionic-native/plugins/globalization/index.ts b/src/@ionic-native/plugins/globalization/index.ts index c688af738..d8e6a9095 100644 --- a/src/@ionic-native/plugins/globalization/index.ts +++ b/src/@ionic-native/plugins/globalization/index.ts @@ -39,7 +39,7 @@ export interface GlobalizationOptions { plugin: 'cordova-plugin-globalization', pluginRef: 'navigator.globalization', repo: 'https://github.com/apache/cordova-plugin-globalization', - platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class Globalization extends IonicNativePlugin { @@ -69,12 +69,9 @@ export class Globalization extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) - dateToString( - date: Date, - options: GlobalizationOptions - ): Promise<{ value: string }> { + dateToString(date: Date, options: GlobalizationOptions): Promise<{ value: string }> { return; } @@ -86,7 +83,7 @@ export class Globalization extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) stringToDate( dateString: string, @@ -109,7 +106,7 @@ export class Globalization extends IonicNativePlugin { * @returns {Promise<{ pattern: string, timezone: string, utc_offset: number, dst_offset: number }>} Returns a promise. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getDatePattern( options: GlobalizationOptions @@ -129,12 +126,9 @@ export class Globalization extends IonicNativePlugin { * @returns {Promise<{value: string[]}>} Returns a promise. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) - getDateNames(options: { - type: string; - item: string; - }): Promise<{ value: string[] }> { + getDateNames(options: { type: string; item: string }): Promise<{ value: string[] }> { return; } @@ -164,12 +158,9 @@ export class Globalization extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) - numberToString( - numberToConvert: number, - options: { type: string } - ): Promise<{ value: string }> { + numberToString(numberToConvert: number, options: { type: string }): Promise<{ value: string }> { return; } @@ -181,12 +172,9 @@ export class Globalization extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) - stringToNumber( - stringToConvert: string, - options: { type: string } - ): Promise<{ value: number | string }> { + stringToNumber(stringToConvert: string, options: { type: string }): Promise<{ value: number | string }> { return; } @@ -196,7 +184,7 @@ export class Globalization extends IonicNativePlugin { * @returns {Promise<{ pattern: string, symbol: string, fraction: number, rounding: number, positive: string, negative: string, decimal: string, grouping: string }>} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getNumberPattern(options: { type: string; diff --git a/src/@ionic-native/plugins/google-analytics/index.ts b/src/@ionic-native/plugins/google-analytics/index.ts index a47807ae8..5e190a654 100644 --- a/src/@ionic-native/plugins/google-analytics/index.ts +++ b/src/@ionic-native/plugins/google-analytics/index.ts @@ -34,7 +34,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-google-analytics', pluginRef: 'ga', repo: 'https://github.com/danwilson/google-analytics-plugin', - platforms: ['Android', 'Browser', 'iOS', 'Windows Phone 8'] + platforms: ['Android', 'Browser', 'iOS', 'Windows Phone 8'], }) @Injectable() export class GoogleAnalytics extends IonicNativePlugin { @@ -47,7 +47,7 @@ export class GoogleAnalytics extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) startTrackerWithId(id: string, interval?: number): Promise { return; @@ -142,7 +142,7 @@ export class GoogleAnalytics extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) trackMetric(key: number, value?: number): Promise { return; @@ -159,13 +159,9 @@ export class GoogleAnalytics extends IonicNativePlugin { */ @Cordova({ successIndex: 3, - errorIndex: 4 + errorIndex: 4, }) - trackView( - title: string, - campaignUrl?: string, - newSession?: boolean - ): Promise { + trackView(title: string, campaignUrl?: string, newSession?: boolean): Promise { return; } @@ -193,15 +189,9 @@ export class GoogleAnalytics extends IonicNativePlugin { */ @Cordova({ successIndex: 5, - errorIndex: 6 + errorIndex: 6, }) - trackEvent( - category: string, - action: string, - label?: string, - value?: number, - newSession?: boolean - ): Promise { + trackEvent(category: string, action: string, label?: string, value?: number, newSession?: boolean): Promise { return; } @@ -225,12 +215,7 @@ export class GoogleAnalytics extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - trackTiming( - category: string, - intervalInMilliseconds: number, - variable: string, - label: string - ): Promise { + trackTiming(category: string, intervalInMilliseconds: number, variable: string, label: string): Promise { return; } @@ -298,7 +283,7 @@ export class GoogleAnalytics extends IonicNativePlugin { * @platform */ @Cordova({ - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) dispatch(): Promise { return; diff --git a/src/@ionic-native/plugins/google-nearby/index.ts b/src/@ionic-native/plugins/google-nearby/index.ts index 6eedcef14..618503453 100644 --- a/src/@ionic-native/plugins/google-nearby/index.ts +++ b/src/@ionic-native/plugins/google-nearby/index.ts @@ -28,10 +28,9 @@ import { Observable } from 'rxjs'; plugin: 'cordova-plugin-google-nearby', pluginRef: 'window.nearby', repo: 'https://github.com/hahahannes/cordova-plugin-google-nearby', - install: - 'ionic cordova plugin add cordova-plugin-google-nearby --variable API_KEY="123456789"', + install: 'ionic cordova plugin add cordova-plugin-google-nearby --variable API_KEY="123456789"', installVariables: ['API_KEY'], - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class GoogleNearby extends IonicNativePlugin { @@ -51,7 +50,7 @@ export class GoogleNearby extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'unsubscribe' + clearFunction: 'unsubscribe', }) subscribe(): Observable { return; diff --git a/src/@ionic-native/plugins/google-play-games-services/index.ts b/src/@ionic-native/plugins/google-play-games-services/index.ts index a925282eb..ebb4383fb 100644 --- a/src/@ionic-native/plugins/google-play-games-services/index.ts +++ b/src/@ionic-native/plugins/google-play-games-services/index.ts @@ -2,7 +2,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface ScoreData { - /** * The score to submit. */ @@ -12,7 +11,6 @@ export interface ScoreData { * The leaderboard ID from Google Play Developer console. */ leaderboardId: string; - } export interface PlayerScoreData { @@ -23,43 +21,34 @@ export interface PlayerScoreData { } export interface LeaderboardData { - /** * The leaderboard ID from Goole Play Developer console. */ leaderboardId: string; - } export interface AchievementData { - /** * The achievement ID from Google Play Developer console. */ achievementId: string; - } export interface IncrementableAchievementData extends AchievementData { - /** * The amount to increment the achievement by. */ numSteps: number; - } export interface SignedInResponse { - /** * True or false is the use is signed in. */ isSignedIn: boolean; - } export interface Player { - /** * The players display name. */ @@ -87,11 +76,9 @@ export interface Player { * null if the player has no profile image. */ hiResIconImageUrl: string; - } export interface SubmittedScoreData { - /** * The leaderboard ID from Goole Play Developer console. */ @@ -121,7 +108,6 @@ export interface SubmittedScoreData { * The score tag associated with this result, if any. */ scoreTag: string; - } /** @@ -229,7 +215,6 @@ export interface SubmittedScoreData { }) @Injectable() export class GooglePlayGamesServices extends IonicNativePlugin { - /** * Initialise native Play Games Service login procedure. * @@ -398,5 +383,4 @@ export class GooglePlayGamesServices extends IonicNativePlugin { showAchievements(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/google-plus/index.ts b/src/@ionic-native/plugins/google-plus/index.ts index 17297a5ac..72fd91d71 100644 --- a/src/@ionic-native/plugins/google-plus/index.ts +++ b/src/@ionic-native/plugins/google-plus/index.ts @@ -25,11 +25,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; repo: 'https://github.com/EddyVerbruggen/cordova-plugin-googleplus', install: 'ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid', installVariables: ['REVERSED_CLIENT_ID'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class GooglePlus extends IonicNativePlugin { - /** * The login function walks the user through the Google Auth process. * @param options @@ -37,7 +36,7 @@ export class GooglePlus extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) login(options: any): Promise { return; @@ -79,5 +78,4 @@ export class GooglePlus extends IonicNativePlugin { getSigningCertificateFingerprint(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/gyroscope/index.ts b/src/@ionic-native/plugins/gyroscope/index.ts index 8878977f0..36cbd15f1 100644 --- a/src/@ionic-native/plugins/gyroscope/index.ts +++ b/src/@ionic-native/plugins/gyroscope/index.ts @@ -78,7 +78,7 @@ export interface GyroscopeOptions { plugin: 'cordova-plugin-gyroscope', pluginRef: 'navigator.gyroscope', repo: 'https://github.com/NeoLSN/cordova-plugin-gyroscope', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Gyroscope extends IonicNativePlugin { @@ -88,12 +88,10 @@ export class Gyroscope extends IonicNativePlugin { * @return {Observable} Returns an Observable that resolves GyroscopeOrientation */ watch(options?: GyroscopeOptions): Observable { - return new Observable( - (observer: any) => { - const watchId = navigator.gyroscope.watch(observer.next.bind(observer), observer.next.bind(observer), options); - return () => navigator.gyroscope.clearWatch(watchId); - } - ); + return new Observable((observer: any) => { + const watchId = navigator.gyroscope.watch(observer.next.bind(observer), observer.next.bind(observer), options); + return () => navigator.gyroscope.clearWatch(watchId); + }); } /** @@ -102,7 +100,7 @@ export class Gyroscope extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves GyroscopeOrientation */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getCurrent(options?: GyroscopeOptions): Promise { return; diff --git a/src/@ionic-native/plugins/hce/index.ts b/src/@ionic-native/plugins/hce/index.ts index 548acae27..1355f5c05 100644 --- a/src/@ionic-native/plugins/hce/index.ts +++ b/src/@ionic-native/plugins/hce/index.ts @@ -35,7 +35,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; repo: 'https://github.com/don/cordova-plugin-hce', install: '', installVariables: ['AID_FILTER'], - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class HCE extends IonicNativePlugin { @@ -68,11 +68,7 @@ export class HCE extends IonicNativePlugin { * */ @Cordova() - sendResponse( - response: Uint8Array, - success?: Function, - failure?: Function - ): void { + sendResponse(response: Uint8Array, success?: Function, failure?: Function): void { return; // We add return; here to avoid any IDE / Compiler errors } } diff --git a/src/@ionic-native/plugins/header-color/index.ts b/src/@ionic-native/plugins/header-color/index.ts index 41dc5aec4..b3798a430 100644 --- a/src/@ionic-native/plugins/header-color/index.ts +++ b/src/@ionic-native/plugins/header-color/index.ts @@ -22,11 +22,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-headercolor', pluginRef: 'plugins.headerColor', repo: 'https://github.com/tomloprod/cordova-plugin-headercolor', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class HeaderColor extends IonicNativePlugin { - /** * Set a color to the task header * @param color {string} The hex value of the color @@ -35,10 +34,9 @@ export class HeaderColor extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'success', - errorName: 'failure' + errorName: 'failure', }) tint(color: string): Promise { return; } - } diff --git a/src/@ionic-native/plugins/health-kit/index.ts b/src/@ionic-native/plugins/health-kit/index.ts index 5e811b147..64c261423 100644 --- a/src/@ionic-native/plugins/health-kit/index.ts +++ b/src/@ionic-native/plugins/health-kit/index.ts @@ -103,7 +103,7 @@ export interface HealthKitOptions { plugin: 'com.telerik.plugins.healthkit', pluginRef: 'window.plugins.healthkit', repo: 'https://github.com/Telerik-Verified-Plugins/HealthKit', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class HealthKit extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/health/index.ts b/src/@ionic-native/plugins/health/index.ts index 3d2623bee..fc6880661 100644 --- a/src/@ionic-native/plugins/health/index.ts +++ b/src/@ionic-native/plugins/health/index.ts @@ -203,7 +203,7 @@ export interface HealthData { plugin: 'cordova-plugin-health', pluginRef: 'navigator.health', repo: 'https://github.com/dariosalvi78/cordova-plugin-health', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Health extends IonicNativePlugin { @@ -213,7 +213,7 @@ export class Health extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) isAvailable(): Promise { return; @@ -231,7 +231,7 @@ export class Health extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) promptInstallFit(): Promise { return; @@ -335,9 +335,7 @@ export class Health extends IonicNativePlugin { * @return {Promise} */ @Cordova() - queryAggregated( - queryOptionsAggregated: HealthQueryOptionsAggregated - ): Promise { + queryAggregated(queryOptionsAggregated: HealthQueryOptionsAggregated): Promise { return; } diff --git a/src/@ionic-native/plugins/hot-code-push/index.ts b/src/@ionic-native/plugins/hot-code-push/index.ts index 142d7fdf9..5a55aa7f6 100644 --- a/src/@ionic-native/plugins/hot-code-push/index.ts +++ b/src/@ionic-native/plugins/hot-code-push/index.ts @@ -73,7 +73,7 @@ export enum ErrorCode { INSTALLATION_ALREADY_IN_PROGRESS = -16, DOWNLOAD_ALREADY_IN_PROGRESS = -17, ASSETS_FOLDER_IS_NOT_YET_INSTALLED = -18, - NEW_APPLICATION_CONFIG_IS_INVALID = -19 + NEW_APPLICATION_CONFIG_IS_INVALID = -19, } export interface HotCodePushError { @@ -111,7 +111,7 @@ export interface HotCodePushEventData { plugin: 'cordova-hot-code-push', pluginRef: 'chcp', repo: 'https://github.com/nordnet/cordova-hot-code-push', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class HotCodePush extends IonicNativePlugin { @@ -133,16 +133,13 @@ export class HotCodePush extends IonicNativePlugin { @CordovaCheck() fetchUpdate(options?: HotCodePushRequestOptions): Promise { return new Promise((resolve, reject) => { - HotCodePush.getPlugin().fetchUpdate( - (error: HotCodePushError, data: any) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }, - options - ); + HotCodePush.getPlugin().fetchUpdate((error: HotCodePushError, data: any) => { + if (error) { + reject(error); + } else { + resolve(data); + } + }, options); }); } @@ -151,7 +148,7 @@ export class HotCodePush extends IonicNativePlugin { * @returns {Promise} Resolves when the update is installed. */ @Cordova({ - callbackStyle: 'node' + callbackStyle: 'node', }) installUpdate(): Promise { return; @@ -162,7 +159,7 @@ export class HotCodePush extends IonicNativePlugin { * @returns {Promise} Resolves if an update is ready, rejects if there is no update. */ @Cordova({ - callbackStyle: 'node' + callbackStyle: 'node', }) isUpdateAvailableForInstallation(): Promise { return; @@ -173,7 +170,7 @@ export class HotCodePush extends IonicNativePlugin { * @returns {Promise} Resolves with the information about the versions. */ @Cordova({ - callbackStyle: 'node' + callbackStyle: 'node', }) getVersionInfo(): Promise { return; @@ -185,7 +182,7 @@ export class HotCodePush extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'chcp_updateIsReadyToInstall' + event: 'chcp_updateIsReadyToInstall', }) onUpdateIsReadyToInstall(): Observable { return; @@ -197,7 +194,7 @@ export class HotCodePush extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'chcp_updateLoadFailed' + event: 'chcp_updateLoadFailed', }) onUpdateLoadFailed(): Observable { return; @@ -209,7 +206,7 @@ export class HotCodePush extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'chcp_nothingToUpdate' + event: 'chcp_nothingToUpdate', }) onNothingToUpdate(): Observable { return; @@ -221,7 +218,7 @@ export class HotCodePush extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'chcp_beforeInstall' + event: 'chcp_beforeInstall', }) onBeforeInstall(): Observable { return; @@ -233,7 +230,7 @@ export class HotCodePush extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'chcp_updateInstalled' + event: 'chcp_updateInstalled', }) onUpdateInstalled(): Observable { return; @@ -245,7 +242,7 @@ export class HotCodePush extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'chcp_updateInstallFailed' + event: 'chcp_updateInstallFailed', }) onUpdateInstallFailed(): Observable { return; @@ -257,7 +254,7 @@ export class HotCodePush extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'chcp_nothingToInstall' + event: 'chcp_nothingToInstall', }) onNothingToInstall(): Observable { return; @@ -269,7 +266,7 @@ export class HotCodePush extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'chcp_beforeAssetsInstalledOnExternalStorage' + event: 'chcp_beforeAssetsInstalledOnExternalStorage', }) onBeforeAssetsInstalledOnExternalStorage(): Observable { return; @@ -281,7 +278,7 @@ export class HotCodePush extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'chcp_assetsInstalledOnExternalStorage' + event: 'chcp_assetsInstalledOnExternalStorage', }) onAssetsInstalledOnExternalStorage(): Observable { return; @@ -293,7 +290,7 @@ export class HotCodePush extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'chcp_assetsInstallationError' + event: 'chcp_assetsInstallationError', }) onAssetsInstallationError(): Observable { return; diff --git a/src/@ionic-native/plugins/hotspot/index.ts b/src/@ionic-native/plugins/hotspot/index.ts index 336343852..6a0803de3 100644 --- a/src/@ionic-native/plugins/hotspot/index.ts +++ b/src/@ionic-native/plugins/hotspot/index.ts @@ -2,7 +2,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface HotspotConnectionInfo { - /** * The service set identifier (SSID) of the current 802.11 network. */ @@ -27,11 +26,9 @@ export interface HotspotConnectionInfo { * Each configured network has a unique small integer ID, used to identify the network when performing operations on the supplicant. */ networkID: string; - } export interface HotspotNetwork { - /** * Human readable network name */ @@ -61,11 +58,9 @@ export interface HotspotNetwork { * Describes the authentication, key management, and encryption schemes supported by the access point. */ capabilities: string; - } export interface HotspotNetworkConfig { - /** * Device IP Address */ @@ -85,11 +80,9 @@ export interface HotspotNetworkConfig { * Gateway MAC Address */ gatewayMacAddress: string; - } export interface HotspotDevice { - /** * Hotspot IP Address */ @@ -99,7 +92,6 @@ export interface HotspotDevice { * Hotspot MAC Address */ mac: string; - } /** @@ -135,11 +127,10 @@ export interface HotspotDevice { plugin: 'cordova-plugin-hotspot', pluginRef: 'cordova.plugins.hotspot', repo: 'https://github.com/hypery2k/cordova-hotspot-plugin', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class Hotspot extends IonicNativePlugin { - /** * @returns {Promise} */ @@ -218,7 +209,9 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getAllHotspotDevices(): Promise { return; } + getAllHotspotDevices(): Promise { + return; + } /** * Connect to a WiFi network @@ -252,7 +245,14 @@ export class Hotspot extends IonicNativePlugin { * Promise that connection to the WiFi network was successfull, rejected if unsuccessful */ @Cordova() - connectToWifiAuthEncrypt(ssid: string, password: string, authentication: string, encryption: string[]): Promise { return; } + connectToWifiAuthEncrypt( + ssid: string, + password: string, + authentication: string, + encryption: string[] + ): Promise { + return; + } /** * Add a WiFi network @@ -330,13 +330,17 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - scanWifi(): Promise { return; } + scanWifi(): Promise { + return; + } /** * @returns {Promise} */ @Cordova() - scanWifiByLevel(): Promise { return; } + scanWifiByLevel(): Promise { + return; + } /** * @returns {Promise} @@ -423,5 +427,4 @@ export class Hotspot extends IonicNativePlugin { isRooted(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/http/index.ts b/src/@ionic-native/plugins/http/index.ts index 9e8bb1fab..454f73df8 100644 --- a/src/@ionic-native/plugins/http/index.ts +++ b/src/@ionic-native/plugins/http/index.ts @@ -9,7 +9,7 @@ export interface HTTPResponse { /** * The headers of the response. */ - headers: {[ key: string ]: string }; + headers: { [key: string]: string }; /** * The URL of the response. This property will be the final URL obtained after any redirects. */ @@ -67,7 +67,7 @@ export interface HTTPResponse { plugin: 'cordova-plugin-advanced-http', pluginRef: 'cordova.plugin.http', repo: 'https://github.com/silkimen/cordova-plugin-advanced-http', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class HTTP extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/httpd/index.ts b/src/@ionic-native/plugins/httpd/index.ts index 586186ff2..410aceb8e 100644 --- a/src/@ionic-native/plugins/httpd/index.ts +++ b/src/@ionic-native/plugins/httpd/index.ts @@ -52,7 +52,7 @@ export interface HttpdOptions { plugin: 'cordova-plugin-httpd', pluginRef: 'cordova.plugins.CorHttpd', repo: 'https://github.com/floatinghotpot/cordova-httpd', - platforms: ['Android', 'iOS', 'macOS'] + platforms: ['Android', 'iOS', 'macOS'], }) @Injectable() export class Httpd extends IonicNativePlugin { @@ -63,7 +63,7 @@ export class Httpd extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'stopServer' + clearFunction: 'stopServer', }) startServer(options?: HttpdOptions): Observable { return; diff --git a/src/@ionic-native/plugins/hyper-track/index.ts b/src/@ionic-native/plugins/hyper-track/index.ts index c3ae0e7aa..2b668526a 100644 --- a/src/@ionic-native/plugins/hyper-track/index.ts +++ b/src/@ionic-native/plugins/hyper-track/index.ts @@ -65,7 +65,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-hypertrack', pluginRef: 'cordova.plugins.HyperTrack', repo: 'https://github.com/hypertrack/hypertrack-cordova', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class HyperTrack extends IonicNativePlugin { @@ -121,7 +121,13 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with a string representation of the Action's JSON, or it gets rejected if an error ocurred. */ @Cordova() - createAndAssignAction(type: String, lookupId: String, expectedPlaceAddress: String, expectedPlaceLatitude: Number, expectedPlaceLongitude: Number): Promise { + createAndAssignAction( + type: String, + lookupId: String, + expectedPlaceAddress: String, + expectedPlaceLatitude: Number, + expectedPlaceLongitude: Number + ): Promise { return; } diff --git a/src/@ionic-native/plugins/iamport-cordova/index.ts b/src/@ionic-native/plugins/iamport-cordova/index.ts index 1093a2f59..2a3c91fe9 100644 --- a/src/@ionic-native/plugins/iamport-cordova/index.ts +++ b/src/@ionic-native/plugins/iamport-cordova/index.ts @@ -4,60 +4,60 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; declare const cordova: Cordova & { plugins: any }; export interface PaymentObject { - title?: TitleData; // webview title data - userCode: string; // user identification code - data: PaymentData; // payment data - callback: any; // callback function after payment + title?: TitleData; // webview title data + userCode: string; // user identification code + data: PaymentData; // payment data + callback: any; // callback function after payment } export interface CertificationObject { - title?: TitleData; // webview title data - userCode: string; // user identification code - data: CertificationData; // certification data - callback: any; // callback function after certification + title?: TitleData; // webview title data + userCode: string; // user identification code + data: CertificationData; // certification data + callback: any; // callback function after certification } export interface TitleData { - name?: string; // webview title name - color?: string; // webview title background color + name?: string; // webview title name + color?: string; // webview title background color } export interface PaymentData { - pg?: string; // payment gateway type - pay_method?: string; // payment method - name: string; // name of order - merchant_uid?: string; // unique merchant id - amount: string; // payment amount - buyer_name?: string; // buyer name - buyer_tel?: string; // buyer contact - buyer_email?: string; // buyer email address - buyer_addr?: string; // buyer address - buyer_postcode?: string; // buyer postcode - app_scheme: string; // custom app url scheme - custom_data?: any; // custom data - notice_url?: string; // notification url - escrow?: boolean; // whether the type of this order is escrow - digital?: boolean; // whether this order is for real products or contents + pg?: string; // payment gateway type + pay_method?: string; // payment method + name: string; // name of order + merchant_uid?: string; // unique merchant id + amount: string; // payment amount + buyer_name?: string; // buyer name + buyer_tel?: string; // buyer contact + buyer_email?: string; // buyer email address + buyer_addr?: string; // buyer address + buyer_postcode?: string; // buyer postcode + app_scheme: string; // custom app url scheme + custom_data?: any; // custom data + notice_url?: string; // notification url + escrow?: boolean; // whether the type of this order is escrow + digital?: boolean; // whether this order is for real products or contents display?: { - card_quota?: number[], // credit card installment setting value + card_quota?: number[]; // credit card installment setting value }; - currency?: string; // payment currency - customer_uid?: string; // unique customer id for subscription payments - tax_free?: string; // tax amount - language?: string; // language type - vbank_due?: string; // vbank due date - biz_num?: string; // business number + currency?: string; // payment currency + customer_uid?: string; // unique customer id for subscription payments + tax_free?: string; // tax amount + language?: string; // language type + vbank_due?: string; // vbank due date + biz_num?: string; // business number } export interface CertificationData { - company?: string; // company name - phone?: string; // cell phone number - name?: string; // name - carrier?: string; // carrier code - birth?: string; // birth date - merchant_uid?: string; // unique merchant id - min_age?: string; // minimum age to allow certification - popup?: boolean; // whether the webview is popup + company?: string; // company name + phone?: string; // cell phone number + name?: string; // name + carrier?: string; // carrier code + birth?: string; // birth date + merchant_uid?: string; // unique merchant id + min_age?: string; // minimum age to allow certification + popup?: boolean; // whether the webview is popup } /** @@ -86,11 +86,10 @@ export interface CertificationData { plugin: 'iamport-cordova', pluginRef: 'cordova.plugins.IamportCordova', repo: 'https://github.com/iamport/iamport-cordova', - platforms: ['ios', 'android'] + platforms: ['ios', 'android'], }) @Injectable() export class IamportCordova extends IonicNativePlugin { - /** * This function is to load a webview of a payment gateway to pay for something * @param paymentObject {PaymentObject} Payment data to set the payment webview diff --git a/src/@ionic-native/plugins/ibeacon/index.ts b/src/@ionic-native/plugins/ibeacon/index.ts index 6cf710b28..b0b0ab767 100644 --- a/src/@ionic-native/plugins/ibeacon/index.ts +++ b/src/@ionic-native/plugins/ibeacon/index.ts @@ -29,11 +29,7 @@ export interface Beacon { * ProximityFar * ProximityUnknown */ - proximity: - | 'ProximityImmediate' - | 'ProximityNear' - | 'ProximityFar' - | 'ProximityUnknown'; + proximity: 'ProximityImmediate' | 'ProximityNear' | 'ProximityFar' | 'ProximityUnknown'; /** * Transmission Power of the beacon. A constant emitted by the beacon which indicates what's the expected RSSI at a distance of 1 meter to the beacon. @@ -285,7 +281,7 @@ export interface IBeaconDelegate { plugin: 'cordova-plugin-ibeacon', pluginRef: 'cordova.plugins.locationManager', repo: 'https://github.com/petermetz/cordova-plugin-ibeacon', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class IBeacon extends IonicNativePlugin { @@ -300,84 +296,66 @@ export class IBeacon extends IonicNativePlugin { const delegate = new cordova.plugins.locationManager.Delegate(); delegate.didChangeAuthorizationStatus = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.didChangeAuthorizationStatus = cb; - } - ); + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.didChangeAuthorizationStatus = cb); + }); }; delegate.didDetermineStateForRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.didDetermineStateForRegion = cb; - } - ); + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.didDetermineStateForRegion = cb); + }); }; delegate.didEnterRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.didEnterRegion = cb; - } - ); + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.didEnterRegion = cb); + }); }; delegate.didExitRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.didExitRegion = cb; - } - ); + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.didExitRegion = cb); + }); }; delegate.didRangeBeaconsInRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.didRangeBeaconsInRegion = cb; - } - ); + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.didRangeBeaconsInRegion = cb); + }); }; delegate.didStartMonitoringForRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.didStartMonitoringForRegion = cb; - } - ); + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.didStartMonitoringForRegion = cb); + }); }; delegate.monitoringDidFailForRegionWithError = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.monitoringDidFailForRegionWithError = cb; - } - ); + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.monitoringDidFailForRegionWithError = cb); + }); }; delegate.peripheralManagerDidStartAdvertising = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.peripheralManagerDidStartAdvertising = cb; - } - ); + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.peripheralManagerDidStartAdvertising = cb); + }); }; delegate.peripheralManagerDidUpdateState = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.peripheralManagerDidUpdateState = cb; - } - ); + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.peripheralManagerDidUpdateState = cb); + }); }; cordova.plugins.locationManager.setDelegate(delegate); @@ -404,13 +382,7 @@ export class IBeacon extends IonicNativePlugin { minor?: number, notifyEntryStateOnDisplay?: boolean ): BeaconRegion { - return new cordova.plugins.locationManager.BeaconRegion( - identifer, - uuid, - major, - minor, - notifyEntryStateOnDisplay - ); + return new cordova.plugins.locationManager.BeaconRegion(identifer, uuid, major, minor, notifyEntryStateOnDisplay); } /** @@ -506,7 +478,9 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the monitoring request. */ @Cordova({ otherPromise: true }) - startMonitoringForRegion(region: Region): Promise { return; } + startMonitoringForRegion(region: Region): Promise { + return; + } /** * Stop monitoring the specified region. It is valid to call @@ -523,7 +497,9 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the request to stop monitoring. */ @Cordova({ otherPromise: true }) - stopMonitoringForRegion(region: Region): Promise { return; } + stopMonitoringForRegion(region: Region): Promise { + return; + } /** * Request state the for specified region. When result is ready @@ -558,7 +534,9 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the monitoring request. */ @Cordova({ otherPromise: true }) - startRangingBeaconsInRegion(region: Region): Promise { return; } + startRangingBeaconsInRegion(region: Region): Promise { + return; + } /** * Stop ranging the specified region. It is valid to call @@ -575,7 +553,9 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the request to stop monitoring. */ @Cordova({ otherPromise: true }) - stopRangingBeaconsInRegion(region: Region): Promise { return; } + stopRangingBeaconsInRegion(region: Region): Promise { + return; + } /** * Queries the native layer to determine the current authorization in effect. diff --git a/src/@ionic-native/plugins/image-picker/index.ts b/src/@ionic-native/plugins/image-picker/index.ts index 15fe66146..5dd4c0b63 100644 --- a/src/@ionic-native/plugins/image-picker/index.ts +++ b/src/@ionic-native/plugins/image-picker/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - export interface ImagePickerOptions { /** * max images to be selected, defaults to 15. If this is set to 1, upon selection of a single image, the plugin will return it. (Android only) @@ -54,7 +53,7 @@ export interface ImagePickerOptions { export enum OutputType { FILE_URL = 0, - DATA_URL + DATA_URL, } /** @@ -89,9 +88,10 @@ export enum OutputType { plugin: 'cordova-plugin-telerik-imagepicker', pluginRef: 'window.imagePicker', repo: 'https://github.com/Telerik-Verified-Plugins/ImagePicker', - install: 'ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="your usage message"', + install: + 'ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="your usage message"', installVariables: ['PHOTO_LIBRARY_USAGE_DESCRIPTION'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class ImagePicker extends IonicNativePlugin { @@ -102,7 +102,7 @@ export class ImagePicker extends IonicNativePlugin { * otherwise rejects with an error. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getPictures(options: ImagePickerOptions): Promise { return; @@ -113,7 +113,7 @@ export class ImagePicker extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves with a boolean that indicates whether we have permission */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) hasReadPermission(): Promise { return; @@ -124,10 +124,9 @@ export class ImagePicker extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) requestReadPermission(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/image-resizer/index.ts b/src/@ionic-native/plugins/image-resizer/index.ts index 116577dc9..cfcc0ba09 100644 --- a/src/@ionic-native/plugins/image-resizer/index.ts +++ b/src/@ionic-native/plugins/image-resizer/index.ts @@ -77,7 +77,7 @@ export interface ImageResizerOptions { plugin: 'info.protonet.imageresizer', pluginRef: 'ImageResizer', repo: 'https://github.com/JoschkaSchulz/cordova-plugin-image-resizer', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) @Injectable() export class ImageResizer extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/in-app-browser/index.ts b/src/@ionic-native/plugins/in-app-browser/index.ts index c8ac45d85..6236259cb 100644 --- a/src/@ionic-native/plugins/in-app-browser/index.ts +++ b/src/@ionic-native/plugins/in-app-browser/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - CordovaInstance, - InstanceCheck, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { CordovaInstance, InstanceCheck, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable, Observer } from 'rxjs'; declare const cordova: Cordova & { InAppBrowser: any }; @@ -123,7 +118,14 @@ export interface InAppBrowserOptions { [key: string]: any; } -export type InAppBrowserEventType = 'loadstart' | 'loadstop' | 'loaderror' | 'exit' | 'beforeload' | 'message' | 'customscheme'; +export type InAppBrowserEventType = + | 'loadstart' + | 'loadstop' + | 'loaderror' + | 'exit' + | 'beforeload' + | 'message' + | 'customscheme'; export interface InAppBrowserEvent extends Event { /** the event name */ @@ -155,17 +157,11 @@ export class InAppBrowserObject { * The options string must not contain any blank space, and each feature's * name/value pairs must be separated by a comma. Feature names are case insensitive. */ - constructor( - url: string, - target?: string, - options?: string | InAppBrowserOptions - ) { + constructor(url: string, target?: string, options?: string | InAppBrowserOptions) { try { if (options && typeof options !== 'string') { options = Object.keys(options) - .map( - (key: string) => `${key}=${(options as InAppBrowserOptions)[key]}` - ) + .map((key: string) => `${key}=${(options as InAppBrowserOptions)[key]}`) .join(','); } @@ -234,19 +230,10 @@ export class InAppBrowserObject { */ @InstanceCheck() on(event: InAppBrowserEventType): Observable { - return new Observable( - (observer: Observer) => { - this._objectInstance.addEventListener( - event, - observer.next.bind(observer) - ); - return () => - this._objectInstance.removeEventListener( - event, - observer.next.bind(observer) - ); - } - ); + return new Observable((observer: Observer) => { + this._objectInstance.addEventListener(event, observer.next.bind(observer)); + return () => this._objectInstance.removeEventListener(event, observer.next.bind(observer)); + }); } /** @@ -256,19 +243,10 @@ export class InAppBrowserObject { */ @InstanceCheck() on(event: string): Observable { - return new Observable( - (observer: Observer) => { - this._objectInstance.addEventListener( - event, - observer.next.bind(observer) - ); - return () => - this._objectInstance.removeEventListener( - event, - observer.next.bind(observer) - ); - } - ); + return new Observable((observer: Observer) => { + this._objectInstance.addEventListener(event, observer.next.bind(observer)); + return () => this._objectInstance.removeEventListener(event, observer.next.bind(observer)); + }); } } @@ -308,7 +286,7 @@ export class InAppBrowserObject { plugin: 'cordova-plugin-inappbrowser', pluginRef: 'cordova.InAppBrowser', repo: 'https://github.com/apache/cordova-plugin-inappbrowser', - platforms: ['AmazonFire OS', 'Android', 'Browser', 'iOS', 'macOS', 'Windows'] + platforms: ['AmazonFire OS', 'Android', 'Browser', 'iOS', 'macOS', 'Windows'], }) @Injectable() export class InAppBrowser extends IonicNativePlugin { @@ -321,11 +299,7 @@ export class InAppBrowser extends IonicNativePlugin { * name/value pairs must be separated by a comma. Feature names are case insensitive. * @returns {InAppBrowserObject} */ - create( - url: string, - target?: string, - options?: string | InAppBrowserOptions - ): InAppBrowserObject { + create(url: string, target?: string, options?: string | InAppBrowserOptions): InAppBrowserObject { return new InAppBrowserObject(url, target, options); } } diff --git a/src/@ionic-native/plugins/in-app-purchase-2/index.ts b/src/@ionic-native/plugins/in-app-purchase-2/index.ts index 95c19c0af..a0a16d21a 100644 --- a/src/@ionic-native/plugins/in-app-purchase-2/index.ts +++ b/src/@ionic-native/plugins/in-app-purchase-2/index.ts @@ -1,7 +1,6 @@ import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; - export interface IAPProductOptions { id: string; alias?: string; @@ -12,21 +11,20 @@ export type IAPProducts = IAPProduct[] & { /** * Get product by ID */ - byId: { [id: string]: IAPProduct; } + byId: { [id: string]: IAPProduct }; /** * Get product by alias */ - byAlias: { [alias: string]: IAPProduct; } + byAlias: { [alias: string]: IAPProduct }; /** * Remove all products (for testing only). */ - reset: () => {} + reset: () => {}; }; export type IAPQueryCallback = ((product: IAPProduct) => void) | ((error: IAPError) => void); export interface IAPProduct { - id: string; alias?: string; @@ -151,7 +149,6 @@ export interface IAPProduct { off(callback: Function): void; trigger(action: string, args: any): void; - } export interface IAPProductEvents { @@ -548,11 +545,10 @@ export class IAPError { pluginRef: 'store', repo: 'https://github.com/j3k0/cordova-plugin-purchase', platforms: ['iOS', 'Android', 'Windows'], - install: 'ionic cordova plugin add cc.fovea.cordova.purchase --variable BILLING_KEY=""' + install: 'ionic cordova plugin add cc.fovea.cordova.purchase --variable BILLING_KEY=""', }) @Injectable() export class InAppPurchase2 extends IonicNativePlugin { - @CordovaProperty() QUIET: number; @@ -609,7 +605,6 @@ export class InAppPurchase2 extends IonicNativePlugin { @CordovaProperty() NON_CONSUMABLE: string; - @CordovaProperty() ERR_SETUP: number; @@ -673,7 +668,6 @@ export class InAppPurchase2 extends IonicNativePlugin { @CordovaProperty() ERR_SUBSCRIPTION_UPDATE_NOT_AVAILABLE: number; - @CordovaProperty() REGISTERED: string; @@ -704,7 +698,6 @@ export class InAppPurchase2 extends IonicNativePlugin { @CordovaProperty() DOWNLOADED: string; - /* validation error codes */ @CordovaProperty() @@ -761,8 +754,7 @@ export class InAppPurchase2 extends IonicNativePlugin { * @param onError {Function} function to call on error */ @Cordova({ sync: true }) - error(onError: Function): void { - } + error(onError: Function): void {} /** * Add or register a product @@ -800,8 +792,7 @@ export class InAppPurchase2 extends IonicNativePlugin { * @param callback {Function} */ @Cordova({ sync: true }) - off(callback: Function): void { - } + off(callback: Function): void {} /** * Initiate the purchase of a product. @@ -827,12 +818,14 @@ export class InAppPurchase2 extends IonicNativePlugin { * - `error` - called if the order couldn't be initiated. */ @Cordova({ sync: true }) - order(product: string | IAPProduct, additionalData?: any): { then: Function; error: Function; } { + order(product: string | IAPProduct, additionalData?: any): { then: Function; error: Function } { return; } @Cordova() - ready(callback: Function): void { return; } + ready(callback: Function): void { + return; + } /** * After you're done registering your store's product and events handlers, * time to call `store.refresh()`. @@ -872,16 +865,13 @@ export class InAppPurchase2 extends IonicNativePlugin { * and in the callback `product.finish()` should be called. */ @Cordova({ sync: true }) - refresh(): void { - } + refresh(): void {} /** Lightweight method like refresh but do not relogin user */ @Cordova({ sync: true }) - update(): void { - } + update(): void {} /** Opens the Manage Subscription page (AppStore, Play, Microsoft, ...). */ @Cordova({ sync: true }) manageSubscriptions(): void {} - } diff --git a/src/@ionic-native/plugins/in-app-purchase/index.ts b/src/@ionic-native/plugins/in-app-purchase/index.ts index aa8891f45..368adcb64 100644 --- a/src/@ionic-native/plugins/in-app-purchase/index.ts +++ b/src/@ionic-native/plugins/in-app-purchase/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - /** * @name In App Purchase * @description @@ -58,18 +57,17 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-inapppurchase', pluginRef: 'inAppPurchase', repo: 'https://github.com/AlexDisler/cordova-plugin-inapppurchase', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class InAppPurchase extends IonicNativePlugin { - /** * Retrieves a list of full product data from Apple/Google. This method must be called before making purchases. * @param {array} productId an array of product ids. * @returns {Promise} Returns a Promise that resolves with an array of objects. */ @Cordova({ - otherPromise: true + otherPromise: true, }) getProducts(productId: string[]): Promise { return; @@ -81,9 +79,9 @@ export class InAppPurchase extends IonicNativePlugin { * @returns {Promise<{transactionId: string, receipt: string, signature: string, productType: string}>} Returns a Promise that resolves with the transaction details. */ @Cordova({ - otherPromise: true + otherPromise: true, }) - buy(productId: string): Promise<{ transactionId: string, receipt: string, signature: string, productType: string }> { + buy(productId: string): Promise<{ transactionId: string; receipt: string; signature: string; productType: string }> { return; } @@ -93,9 +91,11 @@ export class InAppPurchase extends IonicNativePlugin { * @returns {Promise<{transactionId: string, receipt: string, signature: string, productType: string}>} Returns a Promise that resolves with the transaction details. */ @Cordova({ - otherPromise: true + otherPromise: true, }) - subscribe(productId: string): Promise<{ transactionId: string, receipt: string, signature: string, productType: string }> { + subscribe( + productId: string + ): Promise<{ transactionId: string; receipt: string; signature: string; productType: string }> { return; } @@ -107,7 +107,7 @@ export class InAppPurchase extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) consume(productType: string, receipt: string, signature: string): Promise { return; @@ -118,7 +118,7 @@ export class InAppPurchase extends IonicNativePlugin { * @returns {Promise} Returns a promise with an array of purchases. */ @Cordova({ - otherPromise: true + otherPromise: true, }) restorePurchases(): Promise { return; @@ -130,10 +130,9 @@ export class InAppPurchase extends IonicNativePlugin { */ @Cordova({ otherPromise: true, - platforms: ['iOS'] + platforms: ['iOS'], }) getReceipt(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/in-app-review/index.ts b/src/@ionic-native/plugins/in-app-review/index.ts index 334404ede..6782917d2 100644 --- a/src/@ionic-native/plugins/in-app-review/index.ts +++ b/src/@ionic-native/plugins/in-app-review/index.ts @@ -31,7 +31,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'com.omarben.inappreview', pluginRef: 'inappreview', repo: 'https://github.com/omaxlive/com.omarben.inappreview', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class InAppReview extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/index-app-content/index.ts b/src/@ionic-native/plugins/index-app-content/index.ts index 1e87c2ca8..12db856b3 100644 --- a/src/@ionic-native/plugins/index-app-content/index.ts +++ b/src/@ionic-native/plugins/index-app-content/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaFunctionOverride, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaFunctionOverride, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; export interface IndexItem { @@ -73,7 +68,7 @@ export interface IndexItem { plugin: 'cordova-plugin-indexappcontent', pluginRef: 'window.plugins.indexAppContent', repo: 'https://github.com/johanblomgren/cordova-plugin-indexappcontent', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class IndexAppContent extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/insomnia/index.ts b/src/@ionic-native/plugins/insomnia/index.ts index 4866b3965..2fc9a3a90 100644 --- a/src/@ionic-native/plugins/insomnia/index.ts +++ b/src/@ionic-native/plugins/insomnia/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - /** * @name Insomnia * @description @@ -34,11 +33,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-insomnia', pluginRef: 'plugins.insomnia', repo: 'https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin', - platforms: ['Android', 'Browser', 'Firefox OS', 'iOS', 'Windows', 'Windows Phone 8'] + platforms: ['Android', 'Browser', 'Firefox OS', 'iOS', 'Windows', 'Windows Phone 8'], }) @Injectable() export class Insomnia extends IonicNativePlugin { - /** * Keeps awake the application * @returns {Promise} @@ -56,5 +54,4 @@ export class Insomnia extends IonicNativePlugin { allowSleepAgain(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/instagram/index.ts b/src/@ionic-native/plugins/instagram/index.ts index e31389ff9..663764685 100644 --- a/src/@ionic-native/plugins/instagram/index.ts +++ b/src/@ionic-native/plugins/instagram/index.ts @@ -24,18 +24,17 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-instagram-plugin', pluginRef: 'Instagram', repo: 'https://github.com/vstirbu/InstagramPlugin', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Instagram extends IonicNativePlugin { - /** * Detect if the Instagram application is installed on the device. * * @returns {Promise} Returns a promise that returns a boolean value if installed, or the app version on android */ @Cordova({ - callbackStyle: 'node' + callbackStyle: 'node', }) isInstalled(): Promise { return; @@ -50,7 +49,7 @@ export class Instagram extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves if the image was shared */ @Cordova({ - callbackStyle: 'node' + callbackStyle: 'node', }) share(canvasIdOrDataUrl: string, caption?: string): Promise { return; @@ -62,10 +61,9 @@ export class Instagram extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves if the image was shared */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) shareAsset(assetLocalIdentifier: string): Promise { return; } - } diff --git a/src/@ionic-native/plugins/intel-security/index.ts b/src/@ionic-native/plugins/intel-security/index.ts index fd6b822e8..086154356 100644 --- a/src/@ionic-native/plugins/intel-security/index.ts +++ b/src/@ionic-native/plugins/intel-security/index.ts @@ -72,7 +72,7 @@ export interface IntelSecurityDataOptions { plugin: 'com-intel-security-cordova-plugin', pluginRef: 'intel.security', repo: 'https://github.com/AppSecurityApi/com-intel-security-cordova-plugin', - platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'], }) @Injectable() export class IntelSecurity extends IonicNativePlugin { @@ -95,7 +95,7 @@ export class IntelSecurity extends IonicNativePlugin { @Plugin({ pluginName: 'IntelSecurity', plugin: 'com-intel-security-cordova-plugin', - pluginRef: 'intel.security.secureData' + pluginRef: 'intel.security.secureData', }) export class IntelSecurityData { /** @@ -218,7 +218,7 @@ export class IntelSecurityData { @Plugin({ pluginName: 'IntelSecurity', plugin: 'com-intel-security-cordova-plugin', - pluginRef: 'intel.security.secureStorage' + pluginRef: 'intel.security.secureStorage', }) export class IntelSecurityStorage { /** @@ -242,11 +242,7 @@ export class IntelSecurityStorage { * @returns {Promise} Returns a Promise that resolves with the instance ID of the created secure data instance, or rejects with an error. */ @Cordova({ otherPromise: true }) - read(options: { - id: string; - storageType?: Number; - extraKey?: Number; - }): Promise { + read(options: { id: string; storageType?: Number; extraKey?: Number }): Promise { return; } @@ -259,11 +255,7 @@ export class IntelSecurityStorage { * @returns {Promise} Returns a Promise that resolves with no parameters, or rejects with an error. */ @Cordova({ otherPromise: true }) - write(options: { - id: String; - instanceID: Number; - storageType?: Number; - }): Promise { + write(options: { id: String; instanceID: Number; storageType?: Number }): Promise { return; } } diff --git a/src/@ionic-native/plugins/intercom/index.ts b/src/@ionic-native/plugins/intercom/index.ts index 9abc42340..2225dc1f1 100644 --- a/src/@ionic-native/plugins/intercom/index.ts +++ b/src/@ionic-native/plugins/intercom/index.ts @@ -31,7 +31,6 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class Intercom extends IonicNativePlugin { - /** * Register a identified user * @param options {any} Options @@ -215,6 +214,4 @@ export class Intercom extends IonicNativePlugin { sendPushTokenToIntercom(token: string): Promise { return; } - - } diff --git a/src/@ionic-native/plugins/ionic-webview/index.ts b/src/@ionic-native/plugins/ionic-webview/index.ts index 59d5f656f..7e8fb2e72 100644 --- a/src/@ionic-native/plugins/ionic-webview/index.ts +++ b/src/@ionic-native/plugins/ionic-webview/index.ts @@ -27,15 +27,13 @@ import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; pluginRef: 'window.Ionic.WebView', repo: 'https://github.com/ionic-team/cordova-plugin-ionic-webview', platforms: ['Android', 'iOS'], - install: 'ionic cordova plugin add cordova-plugin-ionic-webview' + install: 'ionic cordova plugin add cordova-plugin-ionic-webview', }) @Injectable() export class WebView extends IonicNativePlugin { - /** * Convert a `file://` URL to a URL that is compatible with the local web server in the Web View plugin. */ @CordovaProperty() convertFileSrc: (url: string) => string; - } diff --git a/src/@ionic-native/plugins/is-debug/index.ts b/src/@ionic-native/plugins/is-debug/index.ts index 7819e0457..e537733a5 100644 --- a/src/@ionic-native/plugins/is-debug/index.ts +++ b/src/@ionic-native/plugins/is-debug/index.ts @@ -26,7 +26,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-is-debug', pluginRef: 'cordova.plugins.IsDebug', repo: 'https://github.com/mattlewis92/cordova-plugin-is-debug', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class IsDebug extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/janalytics/index.ts b/src/@ionic-native/plugins/janalytics/index.ts index 7e7e25b65..cd2580152 100644 --- a/src/@ionic-native/plugins/janalytics/index.ts +++ b/src/@ionic-native/plugins/janalytics/index.ts @@ -27,10 +27,9 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-janalytics', pluginRef: 'JAnalytics', repo: 'https://github.com/jpush/cordova-plugin-janalytics', - install: - 'ionic cordova plugin add cordova-plugin-janalytics --variable APP_KEY=YOUR_APP_KEY', + install: 'ionic cordova plugin add cordova-plugin-janalytics --variable APP_KEY=YOUR_APP_KEY', installVariables: ['APP_KEY'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class JAnalytics extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/jins-meme/index.ts b/src/@ionic-native/plugins/jins-meme/index.ts index 5145b334e..0c5228fbc 100644 --- a/src/@ionic-native/plugins/jins-meme/index.ts +++ b/src/@ionic-native/plugins/jins-meme/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaCheck, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaCheck, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; declare const cordova: any; @@ -40,7 +35,7 @@ declare const cordova: any; plugin: 'cordova-plugin-jins-meme', pluginRef: 'JinsMemePlugin', repo: 'https://github.com/BlyncSync/cordova-plugin-jins-meme', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class JinsMeme extends IonicNativePlugin { @@ -64,7 +59,7 @@ export class JinsMeme extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'stopScan', - clearWithArgs: true + clearWithArgs: true, }) startScan(): Observable { return; @@ -83,7 +78,7 @@ export class JinsMeme extends IonicNativePlugin { * @returns {Observable} */ @CordovaCheck({ - observable: true + observable: true, }) connect(target: string): Observable { return new Observable((observer: any) => { @@ -129,7 +124,7 @@ export class JinsMeme extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'stopDataReport', - clearWithArgs: true + clearWithArgs: true, }) startDataReport(): Observable { return; diff --git a/src/@ionic-native/plugins/jumio/index.ts b/src/@ionic-native/plugins/jumio/index.ts index a1c7a729d..718a19b8c 100644 --- a/src/@ionic-native/plugins/jumio/index.ts +++ b/src/@ionic-native/plugins/jumio/index.ts @@ -73,22 +73,24 @@ export class JumioNetverifyConfig { watchlistSearchProfile: string; constructor(config?: { - enableVerification?: boolean, - callbackUrl?: string, - enableIdentityVerification?: boolean, - preselectedCountry?: string, - customerInternalReference?: string, - reportingCriteria?: string, - userReference?: string, - sendDebugInfoToJumio?: boolean, - dataExtractionOnMobileOnly?: boolean, - cameraPosition?: string, - preselectedDocumentVariant?: string, - documentTypes?: string[], - enableWatchlistScreening?: string, - watchlistSearchProfile?: string + enableVerification?: boolean; + callbackUrl?: string; + enableIdentityVerification?: boolean; + preselectedCountry?: string; + customerInternalReference?: string; + reportingCriteria?: string; + userReference?: string; + sendDebugInfoToJumio?: boolean; + dataExtractionOnMobileOnly?: boolean; + cameraPosition?: string; + preselectedDocumentVariant?: string; + documentTypes?: string[]; + enableWatchlistScreening?: string; + watchlistSearchProfile?: string; }) { - if (config) { Object.assign(this, config); } + if (config) { + Object.assign(this, config); + } } } @@ -144,18 +146,20 @@ export class JumioDocVerificationConfig { enableExtraction: boolean; constructor(config?: { - type: string, - userReference: string, - country: string, - customerInternalReference: string, - reportingCriteria?: string, - callbackUrl?: string, - documentName?: string, - customDocumentCode?: string, - cameraPosition?: string, - enableExtraction?: boolean + type: string; + userReference: string; + country: string; + customerInternalReference: string; + reportingCriteria?: string; + callbackUrl?: string; + documentName?: string; + customDocumentCode?: string; + cameraPosition?: string; + enableExtraction?: boolean; }) { - if (config) { Object.assign(this, config); } + if (config) { + Object.assign(this, config); + } } } @@ -178,12 +182,14 @@ class JumioAuthenticationConfig { callbackUrl: string; constructor(config?: { - enrollmentTransactionReference: string, - authenticationTransactionReference: string, - userReference: string, - callbackUrl?: string + enrollmentTransactionReference: string; + authenticationTransactionReference: string; + userReference: string; + callbackUrl?: string; }) { - if (config) { Object.assign(this, config); } + if (config) { + Object.assign(this, config); + } } } @@ -230,7 +236,9 @@ class BAMConfig { cameraPosition?: string; cardTypes?: string[]; }) { - if (config) { Object.assign(this, config); } + if (config) { + Object.assign(this, config); + } } } @@ -441,11 +449,10 @@ export class BAMCardInformation { pluginRef: 'Jumio', repo: 'https://github.com/Jumio/mobile-cordova', install: 'npm install git://github.com/Jumio/mobile-cordova.git', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Jumio extends IonicNativePlugin { - /** * Initialize Netverify * @param apiToken Specifies the API token of the Jumio merchant account @@ -455,7 +462,12 @@ export class Jumio extends IonicNativePlugin { * @return Returns a promise that resolves when something happens */ @Cordova() - initNetverify(apiToken: string, apiSecret: string, dataCenter: string, netverifyConfig: JumioNetverifyConfig): Promise { + initNetverify( + apiToken: string, + apiSecret: string, + dataCenter: string, + netverifyConfig: JumioNetverifyConfig + ): Promise { return; // We add return; here to avoid any IDE / Compiler errors } @@ -477,8 +489,12 @@ export class Jumio extends IonicNativePlugin { * @return Returns a promise that resolves when something happens */ @Cordova() - initDocumentVerification(apiToken: string, apiSecret: string, dataCenter: string, docVerificationConfig: JumioDocVerificationConfig): - Promise { + initDocumentVerification( + apiToken: string, + apiSecret: string, + dataCenter: string, + docVerificationConfig: JumioDocVerificationConfig + ): Promise { return; // We add return; here to avoid any IDE / Compiler errors } @@ -500,8 +516,12 @@ export class Jumio extends IonicNativePlugin { * @return Returns a promise that resolves when something happens */ @Cordova() - initAuthentication(apiToken: string, apiSecret: string, dataCenter: string, authenticationConfig: JumioAuthenticationConfig): - Promise { + initAuthentication( + apiToken: string, + apiSecret: string, + dataCenter: string, + authenticationConfig: JumioAuthenticationConfig + ): Promise { return; // We add return; here to avoid any IDE / Compiler errors } @@ -523,8 +543,7 @@ export class Jumio extends IonicNativePlugin { * @return Returns a promise that resolves when something happens */ @Cordova() - initBAM(apiToken: string, apiSecret: string, dataCenter: string, bamConfig: BAMConfig): - Promise { + initBAM(apiToken: string, apiSecret: string, dataCenter: string, bamConfig: BAMConfig): Promise { return; // We add return; here to avoid any IDE / Compiler errors } diff --git a/src/@ionic-native/plugins/keyboard/index.ts b/src/@ionic-native/plugins/keyboard/index.ts index fd6a1f2d1..5d9e80fc1 100644 --- a/src/@ionic-native/plugins/keyboard/index.ts +++ b/src/@ionic-native/plugins/keyboard/index.ts @@ -4,17 +4,16 @@ import { Observable } from 'rxjs'; export enum KeyboardStyle { Light = 'light', - Dark = 'dark' + Dark = 'dark', } export enum KeyboardResizeMode { Native = 'native', Ionic = 'ionic', Body = 'body', - None = 'none' + None = 'none', } - /** * @name Keyboard * @description @@ -41,7 +40,7 @@ export enum KeyboardResizeMode { plugin: 'cordova-plugin-ionic-keyboard', pluginRef: 'window.Keyboard', repo: 'https://github.com/ionic-team/cordova-plugin-ionic-keyboard', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Keyboard extends IonicNativePlugin { @@ -58,7 +57,7 @@ export class Keyboard extends IonicNativePlugin { */ @Cordova({ sync: true, - platforms: ['iOS'] + platforms: ['iOS'], }) hideFormAccessoryBar(hide: boolean): void {} @@ -67,7 +66,7 @@ export class Keyboard extends IonicNativePlugin { */ @Cordova({ sync: true, - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) hide(): void {} @@ -76,7 +75,7 @@ export class Keyboard extends IonicNativePlugin { */ @Cordova({ sync: true, - platforms: ['Android'] + platforms: ['Android'], }) show(): void {} @@ -86,7 +85,7 @@ export class Keyboard extends IonicNativePlugin { */ @Cordova({ sync: true, - platforms: ['iOS'] + platforms: ['iOS'], }) setResizeMode(mode: KeyboardResizeMode): void {} @@ -96,7 +95,7 @@ export class Keyboard extends IonicNativePlugin { */ @Cordova({ sync: true, - platforms: ['iOS'] + platforms: ['iOS'], }) setKeyboardStyle(style: KeyboardStyle): void {} @@ -106,7 +105,7 @@ export class Keyboard extends IonicNativePlugin { */ @Cordova({ sync: true, - platforms: ['iOS'] + platforms: ['iOS'], }) disableScroll(disable: boolean): void {} @@ -117,7 +116,7 @@ export class Keyboard extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'native.keyboardshow', - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) onKeyboardShow(): Observable { return; @@ -130,7 +129,7 @@ export class Keyboard extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'keyboardWillShow', - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) onKeyboardWillShow(): Observable { return; @@ -143,7 +142,7 @@ export class Keyboard extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'keyboardDidShow', - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) onKeyboardDidShow(): Observable { return; @@ -156,7 +155,7 @@ export class Keyboard extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'native.keyboardhide', - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) onKeyboardHide(): Observable { return; @@ -169,7 +168,7 @@ export class Keyboard extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'keyboardWillHide', - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) onKeyboardWillHide(): Observable { return; @@ -182,7 +181,7 @@ export class Keyboard extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'keyboardDidHide', - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) onKeyboardDidHide(): Observable { return; diff --git a/src/@ionic-native/plugins/keychain-touch-id/index.ts b/src/@ionic-native/plugins/keychain-touch-id/index.ts index 0b331e7b5..e7f473d7e 100644 --- a/src/@ionic-native/plugins/keychain-touch-id/index.ts +++ b/src/@ionic-native/plugins/keychain-touch-id/index.ts @@ -28,11 +28,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-keychain-touch-id', pluginRef: 'plugins.touchid', repo: 'https://github.com/sjhoeksma/cordova-plugin-keychain-touch-id', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class KeychainTouchId extends IonicNativePlugin { - /** * Check if Touch ID / Fingerprint is supported by the device * @return {Promise} Returns a promise that resolves when there is hardware support @@ -91,7 +90,5 @@ export class KeychainTouchId extends IonicNativePlugin { * @param locale {string} locale subtag from [this list](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry). */ @Cordova() - setLocale(locale: string): void { - } - + setLocale(locale: string): void {} } diff --git a/src/@ionic-native/plugins/keychain/index.ts b/src/@ionic-native/plugins/keychain/index.ts index 1d8fac8c5..0ee1bef30 100644 --- a/src/@ionic-native/plugins/keychain/index.ts +++ b/src/@ionic-native/plugins/keychain/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - /** * @name Keychain * @description @@ -32,11 +31,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-ios-keychain', pluginRef: 'window.Keychain', repo: 'https://github.com/ionic-team/cordova-plugin-ios-keychain', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class Keychain extends IonicNativePlugin { - /** * Retrieves a value for a key * @@ -44,7 +42,7 @@ export class Keychain extends IonicNativePlugin { * @param {string} [touchIDMessage] the message to show underneath the TouchID prompt (if any) */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) get(key: string, touchIDMessage?: string): Promise { return; @@ -58,7 +56,7 @@ export class Keychain extends IonicNativePlugin { * @param {boolean} [useTouchID] whether to store the value with security such that TouchID will be needed to grab it */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) set(key: string, value: string | number | boolean, useTouchID?: boolean): Promise { return; @@ -71,7 +69,7 @@ export class Keychain extends IonicNativePlugin { * @param {string} touchIDMessage the message to show underneath the TouchID prompt (if any) */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getJson(key: string, touchIDMessage?: string): Promise { return; @@ -85,7 +83,7 @@ export class Keychain extends IonicNativePlugin { * @param {boolean} [useTouchId] Wether to store the value with security such that TouchID will be needed to grab it */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) setJson(key: string, obj: any, useTouchId?: boolean): Promise { return; @@ -97,10 +95,9 @@ export class Keychain extends IonicNativePlugin { * @param {string} key the key to remove */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) remove(key: string): Promise { return; } - } diff --git a/src/@ionic-native/plugins/kommunicate/index.ts b/src/@ionic-native/plugins/kommunicate/index.ts index eb2ec8d04..7b65802d7 100644 --- a/src/@ionic-native/plugins/kommunicate/index.ts +++ b/src/@ionic-native/plugins/kommunicate/index.ts @@ -41,11 +41,10 @@ import { Observable } from 'rxjs'; plugin: 'kommunicate-cordova-plugin', pluginRef: 'kommunicate', repo: 'https://github.com/Kommunicate-io/Kommunicate-Cordova-Ionic-PhoneGap-Chat-Plugin', - platforms: ['Android', 'Browser', 'iOS'] + platforms: ['Android', 'Browser', 'iOS'], }) @Injectable() export class Kommunicate extends IonicNativePlugin { - /** * Login the user with the details passed in * Creates a new user with the details provided there is no existing user @@ -63,7 +62,9 @@ export class Kommunicate extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - login(kmUser: any): Promise { return; } + login(kmUser: any): Promise { + return; + } /** * Register for push notification @@ -71,7 +72,9 @@ export class Kommunicate extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - registerPushNotification(): Promise { return; } + registerPushNotification(): Promise { + return; + } /** * Check if any user is logged in or not @@ -79,7 +82,9 @@ export class Kommunicate extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - isLoggedIn(): Promise { return; } + isLoggedIn(): Promise { + return; + } /** * Update the token for push notifications @@ -88,7 +93,9 @@ export class Kommunicate extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - updatePushNotificationToken(token: string): Promise { return; } + updatePushNotificationToken(token: string): Promise { + return; + } /** * Launch the conversation screen (it contains all the existing conversations) @@ -96,7 +103,9 @@ export class Kommunicate extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - launchConversation(): Promise { return; } + launchConversation(): Promise { + return; + } /** * Launch the conversation identified by the given channel(conversation) key @@ -110,7 +119,9 @@ export class Kommunicate extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - launchParticularConversation(conversationObject: any): Promise { return; } + launchParticularConversation(conversationObject: any): Promise { + return; + } /** * Start a new conversation, details about the conversation to be passed as parameters @@ -120,7 +131,9 @@ export class Kommunicate extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - startNewConversation(conversationParams: any): Promise { return; } + startNewConversation(conversationParams: any): Promise { + return; + } /** * Process push notifications @@ -129,7 +142,9 @@ export class Kommunicate extends IonicNativePlugin { * @return {boolean} Returns true/false */ @Cordova({ sync: true }) - processPushNotification(data: any): boolean { return; } + processPushNotification(data: any): boolean { + return; + } /** * Logout the current user @@ -137,7 +152,9 @@ export class Kommunicate extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - logout(): Promise { return; } + logout(): Promise { + return; + } /** * Start a single chat (conversation) @@ -147,7 +164,9 @@ export class Kommunicate extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - startSingleChat(data: any): Promise { return; } + startSingleChat(data: any): Promise { + return; + } /** * Launches a conversation with the properties passed in the conversation param @@ -162,6 +181,7 @@ export class Kommunicate extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - conversationBuilder(converationObject: any): Promise { return; } - + conversationBuilder(converationObject: any): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/last-cam/index.ts b/src/@ionic-native/plugins/last-cam/index.ts index 9b9af241c..6bab7c96b 100644 --- a/src/@ionic-native/plugins/last-cam/index.ts +++ b/src/@ionic-native/plugins/last-cam/index.ts @@ -33,7 +33,7 @@ export interface LastCamStartupOptions { plugin: 'cordova-plugin-last-cam', pluginRef: 'LastCam', repo: 'https://github.com/bengejd/cordova-plugin-last-cam', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class LastCam extends IonicNativePlugin { @@ -44,7 +44,7 @@ export class LastCam extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) startCamera(options: LastCamStartupOptions): Promise { return; @@ -83,7 +83,7 @@ export class LastCam extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 1 + errorIndex: 1, }) takePicture(): Promise { return; @@ -104,7 +104,7 @@ export class LastCam extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 1 + errorIndex: 1, }) stopVideoCapture(): Promise { return; @@ -116,7 +116,7 @@ export class LastCam extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 1 + errorIndex: 1, }) recordingTimer(): Promise { return; @@ -129,7 +129,7 @@ export class LastCam extends IonicNativePlugin { @Cordova({ successIndex: 0, errorIndex: 1, - observable: true + observable: true, }) watchRecordingTimer(): Observable { return; diff --git a/src/@ionic-native/plugins/launch-navigator/index.ts b/src/@ionic-native/plugins/launch-navigator/index.ts index 8d52e75e3..2a381be23 100644 --- a/src/@ionic-native/plugins/launch-navigator/index.ts +++ b/src/@ionic-native/plugins/launch-navigator/index.ts @@ -2,7 +2,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface PromptsOptions { - /** * a function to pass the user's decision whether to remember their choice of app. * This will be passed a single boolean value indicating the user's decision. @@ -22,7 +21,6 @@ export interface PromptsOptions { */ bodyText?: string; - /** * text to display for the Yes button. * Defaults to "Yes" if not specified. @@ -37,7 +35,6 @@ export interface PromptsOptions { } export interface RememberChoiceOptions { - /** * whether to remember user choice of app for next time, instead of asking again for user choice. * `"prompt"` - Prompt user to decide whether to remember choice. @@ -49,7 +46,6 @@ export interface RememberChoiceOptions { */ enabled?: boolean | string; - /** * a function which asks the user whether to remember their choice of app. * If this is defined, then the default dialog prompt will not be shown, allowing for a custom UI for asking the user. @@ -103,7 +99,6 @@ export interface AppSelectionOptions { } export interface LaunchNavigatorOptions { - /** * A callback to invoke when the navigation app is successfully launched. */ @@ -172,7 +167,6 @@ export interface LaunchNavigatorOptions { */ launchModeAppleMaps?: string; - /** * If true, and input location type(s) doesn't match those required by the app, use geocoding to obtain the address/coords as required. Defaults to true. */ @@ -185,7 +179,6 @@ export interface LaunchNavigatorOptions { } export interface UserChoice { - /** * Indicates whether a user choice exists for a preferred navigator app. * @param callback - function to pass result to: will receive a boolean argument. @@ -277,11 +270,10 @@ export interface AppSelection { plugin: 'uk.co.workingedge.phonegap.plugin.launchnavigator', pluginRef: 'launchnavigator', repo: 'https://github.com/dpa99c/phonegap-launch-navigator', - platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'], }) @Injectable() export class LaunchNavigator extends IonicNativePlugin { - APP: any = { USER_SELECT: 'user_select', APPLE_MAPS: 'apple_maps', @@ -296,14 +288,14 @@ export class LaunchNavigator extends IonicNativePlugin { BING_MAPS: 'bing_maps', SYGIC: 'sygic', HERE_MAPS: 'here_maps', - MOOVIT: 'moovit' + MOOVIT: 'moovit', }; TRANSPORT_MODE: any = { DRIVING: 'driving', WALKING: 'walking', BICYCLING: 'bicycling', - TRANSIT: 'transit' + TRANSIT: 'transit', }; appSelection: AppSelection; @@ -315,7 +307,7 @@ export class LaunchNavigator extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) navigate(destination: string | number[], options?: LaunchNavigatorOptions): Promise { return; @@ -430,6 +422,5 @@ export class LaunchNavigator extends IonicNativePlugin { * @param options {LaunchNavigatorOptions} */ @Cordova({ sync: true }) - userSelect(destination: string | number[], options: LaunchNavigatorOptions): void { - } + userSelect(destination: string | number[], options: LaunchNavigatorOptions): void {} } diff --git a/src/@ionic-native/plugins/launch-review/index.ts b/src/@ionic-native/plugins/launch-review/index.ts index b76c48d7d..69a244298 100644 --- a/src/@ionic-native/plugins/launch-review/index.ts +++ b/src/@ionic-native/plugins/launch-review/index.ts @@ -31,11 +31,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-launch-review', pluginRef: 'LaunchReview', repo: 'https://github.com/dpa99c/cordova-launch-review', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class LaunchReview extends IonicNativePlugin { - /** * Launches App Store on current platform in order to leave a review for given app. * @param appId {string} - (optional) the platform-specific app ID to use to open the page in the store app. @@ -72,5 +71,4 @@ export class LaunchReview extends IonicNativePlugin { isRatingSupported(): boolean { return; } - } diff --git a/src/@ionic-native/plugins/line-login/index.ts b/src/@ionic-native/plugins/line-login/index.ts index 8e3c81575..d9f5db4a6 100644 --- a/src/@ionic-native/plugins/line-login/index.ts +++ b/src/@ionic-native/plugins/line-login/index.ts @@ -76,9 +76,10 @@ export interface LineLoginAccessToken { plugin: 'cordova-line-login-plugin', pluginRef: 'lineLogin', repo: 'https://github.com/nrikiji/cordova-line-login-plugin', - install: 'ionic cordova plugin add https://github.com/nrikiji/cordova-line-login-plugin.git --variable LINE_CHANNEL_ID="your_line_channel_id"', + install: + 'ionic cordova plugin add https://github.com/nrikiji/cordova-line-login-plugin.git --variable LINE_CHANNEL_ID="your_line_channel_id"', installVariables: ['LINE_CHANNEL_ID'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class LineLogin extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/local-notifications/index.ts b/src/@ionic-native/plugins/local-notifications/index.ts index 406df36fb..a9e040501 100755 --- a/src/@ionic-native/plugins/local-notifications/index.ts +++ b/src/@ionic-native/plugins/local-notifications/index.ts @@ -13,59 +13,59 @@ export enum ELocalNotificationTriggerUnit { YEAR = 'year', WEEKDAY = 'weekday', WEEKDAY_ORDINAL = 'weekdayOrdinal', - WEEK_OF_MONTH = 'weekOfMonth' + WEEK_OF_MONTH = 'weekOfMonth', } export interface ILocalNotificationEvery { - /** - * The minute. - */ - minute?: number; + /** + * The minute. + */ + minute?: number; - /** - * The hour. - */ - hour?: number; + /** + * The hour. + */ + hour?: number; - /** - * The day. - */ - day?: number; + /** + * The day. + */ + day?: number; - /** - * The day of week. - */ - weekday?: number; + /** + * The day of week. + */ + weekday?: number; - /** - * The week of yeaday of the ardinal week. - */ - week?: number; + /** + * The week of yeaday of the ardinal week. + */ + week?: number; - /** - * The day of the ordinal week. - */ - weekdayOrdinal?: number; + /** + * The day of the ordinal week. + */ + weekdayOrdinal?: number; - /** - * The week of month. - */ - weekOfMonth?: number; + /** + * The week of month. + */ + weekOfMonth?: number; - /** - * The month. - */ - month?: number; + /** + * The month. + */ + month?: number; - /** - * The quarter. - */ - quarter?: number; + /** + * The quarter. + */ + quarter?: number; - /** - * The year. - */ - year?: number; + /** + * The year. + */ + year?: number; } export interface ILocalNotificationTrigger { @@ -154,7 +154,7 @@ export interface ILocalNotificationTrigger { export enum ILocalNotificationActionType { INPUT = 'input', - BUTTON = 'button' + BUTTON = 'button', } /** @@ -531,7 +531,7 @@ export interface ILocalNotification { plugin: 'cordova-plugin-local-notification', pluginRef: 'cordova.plugins.notification.local', repo: 'https://github.com/katzer/cordova-plugin-local-notifications', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) @Injectable() export class LocalNotifications extends IonicNativePlugin { @@ -558,7 +558,7 @@ export class LocalNotifications extends IonicNativePlugin { * @param options {Notification | ILocalNotification[]} optional */ @Cordova({ - sync: true + sync: true, }) schedule(options?: ILocalNotification | ILocalNotification[]): void {} @@ -567,7 +567,7 @@ export class LocalNotifications extends IonicNativePlugin { * @param options {ILocalNotification} optional */ @Cordova({ - sync: true + sync: true, }) update(options?: ILocalNotification): void {} @@ -761,7 +761,7 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} An object with all default settings */ @Cordova({ - sync: true + sync: true, }) getDefaults(): Promise { return; @@ -772,7 +772,7 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - sync: true + sync: true, }) setDefaults(defaults: any): Promise { return; @@ -804,7 +804,7 @@ export class LocalNotifications extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'un', - clearWithArgs: true + clearWithArgs: true, }) on(eventName: string): Observable { return; @@ -816,7 +816,7 @@ export class LocalNotifications extends IonicNativePlugin { * @param args Optional arguments */ @Cordova({ - sync: true + sync: true, }) fireEvent(eventName: string, args: any): void {} diff --git a/src/@ionic-native/plugins/location-accuracy/index.ts b/src/@ionic-native/plugins/location-accuracy/index.ts index 7dd182258..0139c3ae6 100644 --- a/src/@ionic-native/plugins/location-accuracy/index.ts +++ b/src/@ionic-native/plugins/location-accuracy/index.ts @@ -33,7 +33,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-request-location-accuracy', pluginRef: 'cordova.plugins.locationAccuracy', repo: 'https://github.com/dpa99c/cordova-plugin-request-location-accuracy', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class LocationAccuracy extends IonicNativePlugin { @@ -130,5 +130,4 @@ export class LocationAccuracy extends IonicNativePlugin { request(accuracy: number): Promise { return; } - } diff --git a/src/@ionic-native/plugins/lottie-splash-screen/index.ts b/src/@ionic-native/plugins/lottie-splash-screen/index.ts index 088a48935..d13047cbb 100644 --- a/src/@ionic-native/plugins/lottie-splash-screen/index.ts +++ b/src/@ionic-native/plugins/lottie-splash-screen/index.ts @@ -29,7 +29,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; repo: 'https://github.com/timbru31/cordova-plugin-lottie-splashscreen', install: '', installVariables: [], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class LottieSplashScreen extends IonicNativePlugin { @@ -41,7 +41,7 @@ export class LottieSplashScreen extends IonicNativePlugin { * @param height {number} Height of the container that's rendering the Lottie animation */ @Cordova({ - sync: true + sync: true, }) show(location?: string, remote?: boolean, width?: number, height?: number): void {} diff --git a/src/@ionic-native/plugins/luxand/index.ts b/src/@ionic-native/plugins/luxand/index.ts index 6415cc14f..0921b1020 100644 --- a/src/@ionic-native/plugins/luxand/index.ts +++ b/src/@ionic-native/plugins/luxand/index.ts @@ -87,11 +87,10 @@ export interface OMLFacialData { plugin: 'codova-plugin-luxand', pluginRef: 'window.Luxand', repo: 'https://github.com/molobala/cordova-plugin-luxand', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Luxand extends IonicNativePlugin { - /** * Initialize Luxand SDK * @param config {LuxandConfig} LuxandConfig configuration object to use to init the SDK @@ -107,7 +106,7 @@ export class Luxand extends IonicNativePlugin { * @return {Promise} // Returns a promise that resolve if a face has been detected and saved by the tracker in the internal database */ @Cordova() - register(params: {timeout: number}): Promise { + register(params: { timeout: number }): Promise { return; } /** @@ -116,7 +115,7 @@ export class Luxand extends IonicNativePlugin { * @return {Promise} */ @Cordova() - login(params: {timeout: number}): Promise { + login(params: { timeout: number }): Promise { return; // Returns a promise that resolve if a face is recognize successfully } /** @@ -137,4 +136,3 @@ export class Luxand extends IonicNativePlugin { return; } } - diff --git a/src/@ionic-native/plugins/magnetometer/index.ts b/src/@ionic-native/plugins/magnetometer/index.ts index 210329a80..223765cf6 100644 --- a/src/@ionic-native/plugins/magnetometer/index.ts +++ b/src/@ionic-native/plugins/magnetometer/index.ts @@ -22,7 +22,6 @@ export interface MagnetometerReading { * Calculated total - always positive of magnetometer. (Number) */ magnitude: number; - } /** @@ -61,10 +60,7 @@ export interface MagnetometerReading { plugin: 'cordova-plugin-magnetometer', pluginRef: 'cordova.plugins.magnetometer', repo: 'https://github.com/sdesalas/cordova-plugin-magnetometer', - platforms: [ - 'Android', - 'iOS', - ] + platforms: ['Android', 'iOS'], }) @Injectable() export class Magnetometer extends IonicNativePlugin { @@ -87,10 +83,9 @@ export class Magnetometer extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse', observable: true, - clearFunction: 'stop' + clearFunction: 'stop', }) - watchReadings( - ): Observable { + watchReadings(): Observable { return; } } diff --git a/src/@ionic-native/plugins/market/index.ts b/src/@ionic-native/plugins/market/index.ts index f8083b83c..32c5b7486 100644 --- a/src/@ionic-native/plugins/market/index.ts +++ b/src/@ionic-native/plugins/market/index.ts @@ -22,11 +22,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-market', pluginRef: 'cordova.plugins.market', repo: 'https://github.com/xmartlabs/cordova-plugin-market', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Market extends IonicNativePlugin { - /** * Opens an app in Google Play / App Store * @param appId {string} Package name @@ -35,7 +34,7 @@ export class Market extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'success', - errorName: 'failure' + errorName: 'failure', }) open(appId: string): Promise { return; @@ -50,10 +49,9 @@ export class Market extends IonicNativePlugin { callbackStyle: 'object', successName: 'success', errorName: 'failure', - platforms: ['Android'] + platforms: ['Android'], }) search(keyword: string): Promise { return; } - } diff --git a/src/@ionic-native/plugins/media-capture/index.ts b/src/@ionic-native/plugins/media-capture/index.ts index abc896f07..5da76b20d 100644 --- a/src/@ionic-native/plugins/media-capture/index.ts +++ b/src/@ionic-native/plugins/media-capture/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; declare const navigator: any; @@ -38,10 +33,7 @@ export interface MediaFile { * @param {Function} successCallback * @param {Function} errorCallback */ - getFormatData( - successCallback: (data: MediaFileData) => any, - errorCallback?: (err: any) => any - ): void; + getFormatData(successCallback: (data: MediaFileData) => any, errorCallback?: (err: any) => any): void; } export interface MediaFileData { @@ -159,7 +151,7 @@ export interface ConfigurationData { plugin: 'cordova-plugin-media-capture', pluginRef: 'navigator.device.capture', repo: 'https://github.com/apache/cordova-plugin-media-capture', - platforms: ['Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class MediaCapture extends IonicNativePlugin { @@ -190,11 +182,9 @@ export class MediaCapture extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) - captureAudio( - options?: CaptureAudioOptions - ): Promise { + captureAudio(options?: CaptureAudioOptions): Promise { return; } @@ -204,11 +194,9 @@ export class MediaCapture extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) - captureImage( - options?: CaptureImageOptions - ): Promise { + captureImage(options?: CaptureImageOptions): Promise { return; } @@ -218,11 +206,9 @@ export class MediaCapture extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) - captureVideo( - options?: CaptureVideoOptions - ): Promise { + captureVideo(options?: CaptureVideoOptions): Promise { return; } @@ -232,7 +218,7 @@ export class MediaCapture extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'pendingcaptureresult' + event: 'pendingcaptureresult', }) onPendingCaptureResult(): Observable { return; @@ -244,7 +230,7 @@ export class MediaCapture extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'pendingcaptureerror' + event: 'pendingcaptureerror', }) onPendingCaptureError(): Observable { return; diff --git a/src/@ionic-native/plugins/media/index.ts b/src/@ionic-native/plugins/media/index.ts index 221fa1af0..434350db4 100644 --- a/src/@ionic-native/plugins/media/index.ts +++ b/src/@ionic-native/plugins/media/index.ts @@ -42,19 +42,15 @@ export class MediaObject { return () => (this.successCallback = () => {}); }); - this.onError = new Observable( - (observer: Observer) => { - this.errorCallback = observer.next.bind(observer); - return () => (this.errorCallback = () => {}); - } - ); + this.onError = new Observable((observer: Observer) => { + this.errorCallback = observer.next.bind(observer); + return () => (this.errorCallback = () => {}); + }); - this.onStatusUpdate = new Observable( - (observer: Observer) => { - this.statusCallback = observer.next.bind(observer); - return () => (this.statusCallback = () => {}); - } - ); + this.onStatusUpdate = new Observable((observer: Observer) => { + this.statusCallback = observer.next.bind(observer); + return () => (this.statusCallback = () => {}); + }); } /** @@ -88,10 +84,7 @@ export class MediaObject { * Starts or resumes playing an audio file. */ @CordovaInstance({ sync: true }) - play(iosOptions?: { - numberOfLoops?: number; - playAudioWhenScreenIsLocked?: boolean; - }): void {} + play(iosOptions?: { numberOfLoops?: number; playAudioWhenScreenIsLocked?: boolean }): void {} /** * Pauses playing an audio file. @@ -172,14 +165,14 @@ export enum MEDIA_STATUS { STARTING, RUNNING, PAUSED, - STOPPED + STOPPED, } export enum MEDIA_ERROR { ABORTED = 1, NETWORK, DECODE, - SUPPORTED + SUPPORTED, } export type MediaErrorCallback = (error: MediaError) => void; @@ -286,7 +279,7 @@ export type MediaErrorCallback = (error: MediaError) => void; repo: 'https://github.com/apache/cordova-plugin-media', plugin: 'cordova-plugin-media', pluginRef: 'Media', - platforms: ['Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class Media extends IonicNativePlugin { @@ -338,10 +331,7 @@ export class Media extends IonicNativePlugin { create(src: string): MediaObject { let instance: any; - if ( - checkAvailability(Media.getPluginRef(), null, Media.getPluginName()) === - true - ) { + if (checkAvailability(Media.getPluginRef(), null, Media.getPluginName()) === true) { // Creates a new media object instance = new (Media.getPlugin())(src); } diff --git a/src/@ionic-native/plugins/metrix/index.ts b/src/@ionic-native/plugins/metrix/index.ts index 5838d6978..c0c78f821 100644 --- a/src/@ionic-native/plugins/metrix/index.ts +++ b/src/@ionic-native/plugins/metrix/index.ts @@ -2,142 +2,142 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export class MetrixConfig { - private appId: string; - private secretId: number = null; - private info1: number = null; - private info2: number = null; - private info3: number = null; - private info4: number = null; - private defaultTrackerToken: string = null; - private shouldLaunchDeeplink = false; - private firebaseAppId: string = null; - private isLocationListeningEnable = false; - private eventUploadThreshold: number = null; - private eventUploadMaxBatchSize: number = null; - private eventMaxCount: number = null; - private eventUploadPeriodMillis: number = null; - private sessionTimeoutMillis: number = null; - private store: string = null; + private appId: string; + private secretId: number = null; + private info1: number = null; + private info2: number = null; + private info3: number = null; + private info4: number = null; + private defaultTrackerToken: string = null; + private shouldLaunchDeeplink = false; + private firebaseAppId: string = null; + private isLocationListeningEnable = false; + private eventUploadThreshold: number = null; + private eventUploadMaxBatchSize: number = null; + private eventMaxCount: number = null; + private eventUploadPeriodMillis: number = null; + private sessionTimeoutMillis: number = null; + private store: string = null; - private userIdListener: (userId: string) => void = null; - private sessionIdListener: (sessionId: string) => void = null; - private attributionChangeListener: (attribution: MetrixAttribution) => void = null; - private deeplinkResponseListener: (uri: string) => void = null; + private userIdListener: (userId: string) => void = null; + private sessionIdListener: (sessionId: string) => void = null; + private attributionChangeListener: (attribution: MetrixAttribution) => void = null; + private deeplinkResponseListener: (uri: string) => void = null; - constructor(appId: string) { - this.appId = appId; - } + constructor(appId: string) { + this.appId = appId; + } - setDefaultTracker(defaultTrackerToken: string) { - this.defaultTrackerToken = defaultTrackerToken; - } + setDefaultTracker(defaultTrackerToken: string) { + this.defaultTrackerToken = defaultTrackerToken; + } - setFirebaseAppId(firebaseAppId: string) { - this.firebaseAppId = firebaseAppId; - } + setFirebaseAppId(firebaseAppId: string) { + this.firebaseAppId = firebaseAppId; + } - setAppSecret(secretId: number, info1: number, info2: number, info3: number, info4: number) { - this.secretId = secretId; - this.info1 = info1; - this.info2 = info2; - this.info3 = info3; - this.info4 = info4; - } + setAppSecret(secretId: number, info1: number, info2: number, info3: number, info4: number) { + this.secretId = secretId; + this.info1 = info1; + this.info2 = info2; + this.info3 = info3; + this.info4 = info4; + } - setShouldLaunchDeeplink(shouldLaunchDeeplink: boolean) { - this.shouldLaunchDeeplink = shouldLaunchDeeplink; - } + setShouldLaunchDeeplink(shouldLaunchDeeplink: boolean) { + this.shouldLaunchDeeplink = shouldLaunchDeeplink; + } - setOnAttributionChangeListener(attributionChangeListener: (attribution: MetrixAttribution) => void) { - this.attributionChangeListener = attributionChangeListener; - } + setOnAttributionChangeListener(attributionChangeListener: (attribution: MetrixAttribution) => void) { + this.attributionChangeListener = attributionChangeListener; + } - setOnDeeplinkResponseListener(deeplinkResponseListener: (uri: string) => void) { - this.deeplinkResponseListener = deeplinkResponseListener; - } + setOnDeeplinkResponseListener(deeplinkResponseListener: (uri: string) => void) { + this.deeplinkResponseListener = deeplinkResponseListener; + } - setOnReceiveUserIdListener(userIdListener: (userId: string) => void) { - this.userIdListener = userIdListener; - } + setOnReceiveUserIdListener(userIdListener: (userId: string) => void) { + this.userIdListener = userIdListener; + } - setOnSessionIdListener(sessionIdListener: (sessionId: string) => void) { - this.sessionIdListener = sessionIdListener; - } + setOnSessionIdListener(sessionIdListener: (sessionId: string) => void) { + this.sessionIdListener = sessionIdListener; + } - setLocationListening(isLocationListeningEnable: boolean) { - this.isLocationListeningEnable = isLocationListeningEnable; - } + setLocationListening(isLocationListeningEnable: boolean) { + this.isLocationListeningEnable = isLocationListeningEnable; + } - setEventUploadThreshold(threshold: number) { - this.eventUploadThreshold = threshold; - } + setEventUploadThreshold(threshold: number) { + this.eventUploadThreshold = threshold; + } - setEventUploadMaxBatchSize(size: number) { - this.eventUploadMaxBatchSize = size; - } + setEventUploadMaxBatchSize(size: number) { + this.eventUploadMaxBatchSize = size; + } - setEventMaxCount(count: number) { - this.eventMaxCount = count; - } + setEventMaxCount(count: number) { + this.eventMaxCount = count; + } - setEventUploadPeriodMillis(period: number) { - this.eventUploadPeriodMillis = period; - } + setEventUploadPeriodMillis(period: number) { + this.eventUploadPeriodMillis = period; + } - setSessionTimeoutMillis(timeout: number) { - this.sessionTimeoutMillis = timeout; - } + setSessionTimeoutMillis(timeout: number) { + this.sessionTimeoutMillis = timeout; + } - setStore(store: string) { - this.store = store; - } + setStore(store: string) { + this.store = store; + } - private getAttributionChangeListener() { - return this.attributionChangeListener; - } + private getAttributionChangeListener() { + return this.attributionChangeListener; + } - private getDeeplinkResponseListener() { - return this.deeplinkResponseListener; - } + private getDeeplinkResponseListener() { + return this.deeplinkResponseListener; + } - private getOnReceiveUserIdListener() { - return this.userIdListener; - } + private getOnReceiveUserIdListener() { + return this.userIdListener; + } - private getOnSessionIdListener() { - return this.sessionIdListener; - } + private getOnSessionIdListener() { + return this.sessionIdListener; + } - private hasAttributionChangeListener() { - return this.attributionChangeListener !== null; - } + private hasAttributionChangeListener() { + return this.attributionChangeListener !== null; + } - private hasDeeplinkResponseListener() { - return this.deeplinkResponseListener !== null; - } + private hasDeeplinkResponseListener() { + return this.deeplinkResponseListener !== null; + } - private hasUserIdListener() { - return this.userIdListener !== null; - } + private hasUserIdListener() { + return this.userIdListener !== null; + } - private hasSessionIdListener() { - return this.sessionIdListener !== null; - } + private hasSessionIdListener() { + return this.sessionIdListener !== null; + } } export interface MetrixAttribution { - acquisitionAd: string; - acquisitionAdSet: string; - acquisitionCampaign: string; - acquisitionSource: string; - attributionStatus: MetrixAttributionStatus; + acquisitionAd: string; + acquisitionAdSet: string; + acquisitionCampaign: string; + acquisitionSource: string; + attributionStatus: MetrixAttributionStatus; } export enum MetrixAttributionStatus { - Attributed = 'ATTRIBUTED', - NotAttributedYet = 'NOT_ATTRIBUTED_YET', - AttributionNotNeeded = 'ATTRIBUTION_NOT_NEEDED', - Unknown = 'UNKNOWN' + Attributed = 'ATTRIBUTED', + NotAttributedYet = 'NOT_ATTRIBUTED_YET', + AttributionNotNeeded = 'ATTRIBUTION_NOT_NEEDED', + Unknown = 'UNKNOWN', } /** @@ -168,59 +168,59 @@ export enum MetrixAttributionStatus { * MetrixAttributionStatus */ @Plugin({ - pluginName: 'Metrix', - plugin: 'ir.metrix.sdk', - pluginRef: 'Metrix', - repo: 'https://github.com/metrixorg/MetrixSDK-CordovaPlugin', - platforms: ['Android'] + pluginName: 'Metrix', + plugin: 'ir.metrix.sdk', + pluginRef: 'Metrix', + repo: 'https://github.com/metrixorg/MetrixSDK-CordovaPlugin', + platforms: ['Android'], }) - @Injectable() export class Metrix extends IonicNativePlugin { + /** + * This method initializes Metrix SDK + * @param {MetrixConfig} config MetrixConfig object used as starting options + */ + @Cordova({ sync: true }) + create(config: MetrixConfig): void {} - /** - * This method initializes Metrix SDK - * @param {MetrixConfig} config MetrixConfig object used as starting options - */ - @Cordova({ sync: true }) - create(config: MetrixConfig): void { } + /** + * Function used to get Session Number + * @return {Promise} Returns a promise with session number value + */ + @Cordova() + getSessionNum(): Promise { + return; + } - /** - * Function used to get Session Number - * @return {Promise} Returns a promise with session number value - */ - @Cordova() - getSessionNum(): Promise { return; } + /** + * This method tracks an event + * @param {string} slug the slug of the event to be tracked + * @param {Map | object} attributes optional attributes of the event to be tracked + */ + @Cordova({ sync: true }) + newEvent(slug: string, attributes?: Map | object): void {} - /** - * This method tracks an event - * @param {string} slug the slug of the event to be tracked - * @param {Map | object} attributes optional attributes of the event to be tracked - */ - @Cordova({ sync: true }) - newEvent(slug: string, attributes?: Map | object): void {} + /** + * This method adds the provided attributes to all metrix events + * @param {Map | object} attributes the attributes to be added to all future events + */ + @Cordova({ sync: true }) + addUserAttributes(attributes: Map | object): void {} - /** - * This method adds the provided attributes to all metrix events - * @param {Map | object} attributes the attributes to be added to all future events - */ - @Cordova({ sync: true }) - addUserAttributes(attributes: Map | object): void {} + /** + * This method tracks a revenue + * @param {string} slug the slug of the event to be tracked + * @param {number} amount the amount of money gained by the revenue + * @param {number} currency (OPTIONAL) currency of the amount + * @param {string} orderId (OPTIONAL) id of the revenue + */ + @Cordova({ sync: true }) + newRevenue(slug: string, amount: number, currency?: number, orderId?: string): void {} - /** - * This method tracks a revenue - * @param {string} slug the slug of the event to be tracked - * @param {number} amount the amount of money gained by the revenue - * @param {number} currency (OPTIONAL) currency of the amount - * @param {string} orderId (OPTIONAL) id of the revenue - */ - @Cordova({ sync: true }) - newRevenue(slug: string, amount: number, currency?: number, orderId?: string): void {} - - /** - * By making this call, the Metrix SDK will try to find if there is any new attribution info inside of the deep link and if any, it will be sent to the Metrix backend. - * @param {string} url URL of the deeplink - */ - @Cordova({ sync: true }) - appWillOpenUrl(url: string): void {} + /** + * By making this call, the Metrix SDK will try to find if there is any new attribution info inside of the deep link and if any, it will be sent to the Metrix backend. + * @param {string} url URL of the deeplink + */ + @Cordova({ sync: true }) + appWillOpenUrl(url: string): void {} } diff --git a/src/@ionic-native/plugins/mixpanel/index.ts b/src/@ionic-native/plugins/mixpanel/index.ts index 8a3911fc3..3a85385de 100644 --- a/src/@ionic-native/plugins/mixpanel/index.ts +++ b/src/@ionic-native/plugins/mixpanel/index.ts @@ -29,7 +29,7 @@ declare var mixpanel: any; plugin: 'cordova-plugin-mixpanel', pluginRef: 'mixpanel', repo: 'https://github.com/samzilverberg/cordova-mixpanel-plugin', - platforms: ['Android', 'Browser', 'iOS'] + platforms: ['Android', 'Browser', 'iOS'], }) @Injectable() export class Mixpanel extends IonicNativePlugin { @@ -148,7 +148,7 @@ export class Mixpanel extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) track(eventName: string, eventProperties?: any): Promise { return; @@ -161,7 +161,7 @@ export class Mixpanel extends IonicNativePlugin { @Plugin({ plugin: 'cordova-plugin-mixpanel', pluginRef: 'mixpanel.people', - pluginName: 'Mixpanel' + pluginName: 'Mixpanel', }) @Injectable() export class MixpanelPeople extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/mlkit-translate/index.ts b/src/@ionic-native/plugins/mlkit-translate/index.ts index 43a2152cb..84c2a17b4 100644 --- a/src/@ionic-native/plugins/mlkit-translate/index.ts +++ b/src/@ionic-native/plugins/mlkit-translate/index.ts @@ -44,7 +44,7 @@ export interface LanguageModel { plugin: 'cordova-plugin-mlkit-translate', pluginRef: 'MLKitTranslate', repo: 'https://github.com/rigelglen/cordova-plugin-mlkit-translate', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class MLKitTranslate extends IonicNativePlugin { @@ -57,11 +57,7 @@ export class MLKitTranslate extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with the translated text */ @Cordova() - translate( - text: string, - targetLanguage: string, - sourceLanguage?: string - ): Promise { + translate(text: string, targetLanguage: string, sourceLanguage?: string): Promise { return; } diff --git a/src/@ionic-native/plugins/mobile-accessibility/index.ts b/src/@ionic-native/plugins/mobile-accessibility/index.ts index c924cdc6d..b20587bb5 100644 --- a/src/@ionic-native/plugins/mobile-accessibility/index.ts +++ b/src/@ionic-native/plugins/mobile-accessibility/index.ts @@ -25,30 +25,29 @@ import { Injectable } from '@angular/core'; plugin: 'phonegap-plugin-mobile-accessibility', pluginRef: 'window.MobileAccessibility', repo: 'https://github.com/phonegap/phonegap-mobile-accessibility', - platforms: ['Android Fire OS', 'Android', 'iOS', 'Windows'] + platforms: ['Android Fire OS', 'Android', 'iOS', 'Windows'], }) @Injectable() export class MobileAccessibility extends IonicNativePlugin { - MobileAccessibilityNotifications: { - ANNOUNCEMENT: 'ANNOUNCEMENT', - BOLD_TEXT_STATUS_CHANGED: 'BOLD_TEXT_STATUS_CHANGED', - CLOSED_CAPTIONING_STATUS_CHANGED: 'CLOSED_CAPTIONING_STATUS_CHANGED', - DARKER_SYSTEM_COLORS_STATUS_CHANGED: 'DARKER_SYSTEM_COLORS_STATUS_CHANGED', - GRAYSCALE_STATUS_CHANGED: 'GRAYSCALE_STATUS_CHANGED', - GUIDED_ACCESS_STATUS_CHANGED: 'GUIDED_ACCESS_STATUS_CHANGED', - INVERT_COLORS_STATUS_CHANGED: 'INVERT_COLORS_STATUS_CHANGED', - LAYOUT_CHANGED: 'LAYOUT_CHANGED', - MONO_AUDIO_STATUS_CHANGED: 'MONO_AUDIO_STATUS_CHANGED', - PAGE_SCROLLED: 'PAGE_SCROLLED', - REDUCE_MOTION_STATUS_CHANGED: 'REDUCE_MOTION_STATUS_CHANGED', - REDUCE_TRANSPARENCY_STATUS_CHANGED: 'REDUCE_TRANSPARENCY_STATUS_CHANGED', - SCREEN_CHANGED: 'SCREEN_CHANGED', - SCREEN_READER_STATUS_CHANGED: 'SCREEN_READER_STATUS_CHANGED', - SPEAK_SCREEN_STATUS_CHANGED: 'SPEAK_SCREEN_STATUS_CHANGED', - SPEAK_SELECTION_STATUS_CHANGED: 'SPEAK_SELECTION_STATUS_CHANGED', - SWITCH_CONTROL_STATUS_CHANGED: 'SWITCH_CONTROL_STATUS_CHANGED', - TOUCH_EXPLORATION_STATUS_CHANGED: 'TOUCH_EXPLORATION_STATUS_CHANGED' + ANNOUNCEMENT: 'ANNOUNCEMENT'; + BOLD_TEXT_STATUS_CHANGED: 'BOLD_TEXT_STATUS_CHANGED'; + CLOSED_CAPTIONING_STATUS_CHANGED: 'CLOSED_CAPTIONING_STATUS_CHANGED'; + DARKER_SYSTEM_COLORS_STATUS_CHANGED: 'DARKER_SYSTEM_COLORS_STATUS_CHANGED'; + GRAYSCALE_STATUS_CHANGED: 'GRAYSCALE_STATUS_CHANGED'; + GUIDED_ACCESS_STATUS_CHANGED: 'GUIDED_ACCESS_STATUS_CHANGED'; + INVERT_COLORS_STATUS_CHANGED: 'INVERT_COLORS_STATUS_CHANGED'; + LAYOUT_CHANGED: 'LAYOUT_CHANGED'; + MONO_AUDIO_STATUS_CHANGED: 'MONO_AUDIO_STATUS_CHANGED'; + PAGE_SCROLLED: 'PAGE_SCROLLED'; + REDUCE_MOTION_STATUS_CHANGED: 'REDUCE_MOTION_STATUS_CHANGED'; + REDUCE_TRANSPARENCY_STATUS_CHANGED: 'REDUCE_TRANSPARENCY_STATUS_CHANGED'; + SCREEN_CHANGED: 'SCREEN_CHANGED'; + SCREEN_READER_STATUS_CHANGED: 'SCREEN_READER_STATUS_CHANGED'; + SPEAK_SCREEN_STATUS_CHANGED: 'SPEAK_SCREEN_STATUS_CHANGED'; + SPEAK_SELECTION_STATUS_CHANGED: 'SPEAK_SELECTION_STATUS_CHANGED'; + SWITCH_CONTROL_STATUS_CHANGED: 'SWITCH_CONTROL_STATUS_CHANGED'; + TOUCH_EXPLORATION_STATUS_CHANGED: 'TOUCH_EXPLORATION_STATUS_CHANGED'; }; /** @@ -218,23 +217,20 @@ export class MobileAccessibility extends IonicNativePlugin { * @param textZoom {number} A percentage value by which text in the WebView should be scaled. */ @Cordova({ sync: true }) - setTextZoom(textZoom: number): void { - } + setTextZoom(textZoom: number): void {} /** * */ @Cordova({ sync: true }) - updateTextZoom(): void { - } + updateTextZoom(): void {} /** * A Boolean value which specifies whether to use the preferred text zoom of a default percent value of 100. * @param value {boolean} Returns the result */ @Cordova({ sync: true }) - usePreferredTextZoom(value: boolean): void { - } + usePreferredTextZoom(value: boolean): void {} /** * Posts a notification with a string for the screen reader to announce if it is running. @@ -254,14 +250,11 @@ export class MobileAccessibility extends IonicNativePlugin { * @param properties {any} */ @Cordova({ sync: true }) - speak(value: string, queueMode?: number, properties?: any): void { - } + speak(value: string, queueMode?: number, properties?: any): void {} /** * Stops speech. */ @Cordova({ sync: true }) - stop(): void { - } - + stop(): void {} } diff --git a/src/@ionic-native/plugins/mobile-messaging/index.ts b/src/@ionic-native/plugins/mobile-messaging/index.ts index 13a53e8e5..7bff2edd4 100644 --- a/src/@ionic-native/plugins/mobile-messaging/index.ts +++ b/src/@ionic-native/plugins/mobile-messaging/index.ts @@ -203,7 +203,7 @@ export class DefaultMessageStorage { plugin: 'com-infobip-plugins-mobilemessaging', pluginRef: 'MobileMessaging', repo: 'https://github.com/infobip/mobile-messaging-cordova-plugin', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class MobileMessaging extends IonicNativePlugin { @@ -215,10 +215,7 @@ export class MobileMessaging extends IonicNativePlugin { * @param {Function} onInitError. Error callback */ @Cordova({ sync: true }) - init( - config: Configuration, - onInitError?: (error: MobileMessagingError) => void - ) { + init(config: Configuration, onInitError?: (error: MobileMessagingError) => void) { return; } @@ -229,14 +226,14 @@ export class MobileMessaging extends IonicNativePlugin { * @param event */ @Cordova({ - observable: true + observable: true, }) register(event: Event): Observable { return; } @Cordova({ - observable: true + observable: true, }) on(event: Event): Observable { return; @@ -250,14 +247,14 @@ export class MobileMessaging extends IonicNativePlugin { * @param {Function} handler will be unregistered from event */ @Cordova({ - observable: true + observable: true, }) unregister(event: Event): Observable { return; } @Cordova({ - observable: true + observable: true, }) off(event: Event): Observable { return; @@ -279,13 +276,12 @@ export class MobileMessaging extends IonicNativePlugin { * } */ @Cordova({ - sync: true + sync: true, }) submitEvent(event: CustomEvent): void { return; } - /** * Sends an event to the server immediately. * You have to handle possible connection or server errors, do retries yourself. @@ -304,7 +300,7 @@ export class MobileMessaging extends IonicNativePlugin { * @param {Function} callback will be called on result, you have to handle error and do retries yourself */ @Cordova({ - observable: true + observable: true, }) submitEventImmediately(event: CustomEvent): Promise { return; @@ -380,10 +376,7 @@ export class MobileMessaging extends IonicNativePlugin { * @param {Boolean} primary or not */ @Cordova() - setInstallationAsPrimary( - pushRegistrationId: string, - primary: boolean - ): Promise { + setInstallationAsPrimary(pushRegistrationId: string, primary: boolean): Promise { return; } diff --git a/src/@ionic-native/plugins/ms-adal/index.ts b/src/@ionic-native/plugins/ms-adal/index.ts index f35bce88f..7d9957932 100644 --- a/src/@ionic-native/plugins/ms-adal/index.ts +++ b/src/@ionic-native/plugins/ms-adal/index.ts @@ -91,21 +91,14 @@ export interface UserInfo { plugin: 'cordova-plugin-ms-adal', pluginRef: 'Microsoft.ADAL', repo: 'https://github.com/AzureAD/azure-activedirectory-library-for-cordova', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) @Injectable() export class MSAdal extends IonicNativePlugin { - createAuthenticationContext(authority: string, validateAuthority = true) { let authContext: any; - if ( - checkAvailability(MSAdal.getPluginRef(), null, MSAdal.getPluginName()) === - true - ) { - authContext = new (MSAdal.getPlugin()).AuthenticationContext( - authority, - validateAuthority - ); + if (checkAvailability(MSAdal.getPluginRef(), null, MSAdal.getPluginName()) === true) { + authContext = new (MSAdal.getPlugin().AuthenticationContext)(authority, validateAuthority); } return new AuthenticationContext(authContext); } @@ -115,7 +108,6 @@ export class MSAdal extends IonicNativePlugin { * @hidden */ export class AuthenticationContext { - @InstanceProperty() authority: string; @@ -125,8 +117,7 @@ export class AuthenticationContext { @InstanceProperty() tokenCache: any; - constructor(private _objectInstance: any) { - } + constructor(private _objectInstance: any) {} /** * Acquires token using interactive flow. It always shows UI and skips token from cache. @@ -142,9 +133,16 @@ export class AuthenticationContext { * @returns {Promise} Promise either fulfilled with AuthenticationResult object or rejected with error */ @CordovaInstance({ - otherPromise: true + otherPromise: true, }) - acquireTokenAsync(resourceUrl: string, clientId: string, redirectUrl: string, userId?: string, extraQueryParameters?: any, claims?: string): Promise { + acquireTokenAsync( + resourceUrl: string, + clientId: string, + redirectUrl: string, + userId?: string, + extraQueryParameters?: any, + claims?: string + ): Promise { return; } @@ -159,12 +157,11 @@ export class AuthenticationContext { * @returns {Promise} Promise either fulfilled with AuthenticationResult object or rejected with error */ @CordovaInstance({ - otherPromise: true + otherPromise: true, }) acquireTokenSilentAsync(resourceUrl: string, clientId: string, userId?: string): Promise { return; } - } export class AuthenticationSettings { @@ -177,7 +174,7 @@ export class AuthenticationSettings { * @returns {Promise} Promise either fulfilled or rejected with error */ @CordovaInstance({ - otherPromise: true + otherPromise: true, }) static setUseBroker(useBroker: boolean): Promise { return; diff --git a/src/@ionic-native/plugins/music-controls/index.ts b/src/@ionic-native/plugins/music-controls/index.ts index 4291751bd..bac3a9e63 100644 --- a/src/@ionic-native/plugins/music-controls/index.ts +++ b/src/@ionic-native/plugins/music-controls/index.ts @@ -150,7 +150,7 @@ export interface MusicControlsOptions { plugin: 'cordova-plugin-music-controls', pluginRef: 'MusicControls', repo: 'https://github.com/homerours/cordova-music-controls-plugin', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) @Injectable() export class MusicControls extends IonicNativePlugin { @@ -178,7 +178,7 @@ export class MusicControls extends IonicNativePlugin { * @returns {Observable} */ @Cordova({ - observable: true + observable: true, }) subscribe(): Observable { return; @@ -202,7 +202,7 @@ export class MusicControls extends IonicNativePlugin { * @param args {Object} */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) updateElapsed(args: { elapsed: number; isPlaying: boolean }): void {} diff --git a/src/@ionic-native/plugins/native-audio/index.ts b/src/@ionic-native/plugins/native-audio/index.ts index cd3d60a56..8823bd628 100644 --- a/src/@ionic-native/plugins/native-audio/index.ts +++ b/src/@ionic-native/plugins/native-audio/index.ts @@ -34,7 +34,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-nativeaudio', pluginRef: 'plugins.NativeAudio', repo: 'https://github.com/floatinghotpot/cordova-plugin-nativeaudio', - platforms: ['Android', 'Browser', 'iOS'] + platforms: ['Android', 'Browser', 'iOS'], }) @Injectable() export class NativeAudio extends IonicNativePlugin { @@ -71,7 +71,7 @@ export class NativeAudio extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) play(id: string, completeCallback?: Function): Promise { return; @@ -117,5 +117,4 @@ export class NativeAudio extends IonicNativePlugin { setVolumeForComplexAsset(id: string, volume: number): Promise { return; } - } diff --git a/src/@ionic-native/plugins/native-geocoder/index.ts b/src/@ionic-native/plugins/native-geocoder/index.ts index 07ebb60a9..76504d8b3 100644 --- a/src/@ionic-native/plugins/native-geocoder/index.ts +++ b/src/@ionic-native/plugins/native-geocoder/index.ts @@ -36,11 +36,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-nativegeocoder', pluginRef: 'nativegeocoder', repo: 'https://github.com/sebastianbaar/cordova-plugin-nativegeocoder', - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) @Injectable() export class NativeGeocoder extends IonicNativePlugin { - /** * Reverse geocode a given latitude and longitude to find location address * @param latitude {number} The latitude @@ -49,9 +48,15 @@ export class NativeGeocoder extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) - reverseGeocode(latitude: number, longitude: number, options?: NativeGeocoderOptions): Promise { return; } + reverseGeocode( + latitude: number, + longitude: number, + options?: NativeGeocoderOptions + ): Promise { + return; + } /** * Forward geocode a given address to find coordinates @@ -60,9 +65,11 @@ export class NativeGeocoder extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) - forwardGeocode(addressString: string, options?: NativeGeocoderOptions): Promise { return; } + forwardGeocode(addressString: string, options?: NativeGeocoderOptions): Promise { + return; + } } /** diff --git a/src/@ionic-native/plugins/native-keyboard/index.ts b/src/@ionic-native/plugins/native-keyboard/index.ts index beb12ada6..6ca46e3a5 100644 --- a/src/@ionic-native/plugins/native-keyboard/index.ts +++ b/src/@ionic-native/plugins/native-keyboard/index.ts @@ -2,7 +2,6 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; export interface NativeKeyboardOptions { - /** * A function invoked when the user submits his input. Receives the text as a single property. Make sure your page is UTF-8 encoded so Chinese and Emoji are rendered OK. */ @@ -127,7 +126,6 @@ export interface NativeKeyboardOptions { * */ rightButton: NativeKeyboardButton; - } export interface NativeKeyboardButton { @@ -200,26 +198,23 @@ export interface NativeKeyboardUpdateMessengerOptions { plugin: 'cordova-plugin-native-keyboard', pluginRef: 'NativeKeyboard', repo: 'https://github.com/EddyVerbruggen/cordova-plugin-native-keyboard', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class NativeKeyboard extends IonicNativePlugin { - /** * Show messenger * @param options {NativeKeyboardOptions} */ @Cordova({ sync: true }) - showMessenger(options: NativeKeyboardOptions): void { - } + showMessenger(options: NativeKeyboardOptions): void {} /** * Hide messenger * @param options {NativeKeyboardOptions} */ @Cordova({ sync: true }) - hideMessenger(options: NativeKeyboardOptions): void { - } + hideMessenger(options: NativeKeyboardOptions): void {} /** * Programmatically pop up the keyboard again if the user dismissed it. @@ -246,5 +241,4 @@ export class NativeKeyboard extends IonicNativePlugin { updateMessenger(options: NativeKeyboardUpdateMessengerOptions): Promise { return; } - } diff --git a/src/@ionic-native/plugins/native-page-transitions/index.ts b/src/@ionic-native/plugins/native-page-transitions/index.ts index a22312036..004614709 100644 --- a/src/@ionic-native/plugins/native-page-transitions/index.ts +++ b/src/@ionic-native/plugins/native-page-transitions/index.ts @@ -66,7 +66,7 @@ export interface NativeTransitionOptions { plugin: 'com.telerik.plugins.nativepagetransitions', pluginRef: 'plugins.nativepagetransitions', repo: 'https://github.com/Telerik-Verified-Plugins/NativePageTransitions', - platforms: ['Android', 'iOS', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows Phone 8'], }) @Injectable() export class NativePageTransitions extends IonicNativePlugin { @@ -100,7 +100,6 @@ export class NativePageTransitions extends IonicNativePlugin { return; } - /** * Perform a slide animation * @param options {NativeTransitionOptions} Options for the transition @@ -111,7 +110,6 @@ export class NativePageTransitions extends IonicNativePlugin { return; } - /** * Perform a slide animation * @param options {NativeTransitionOptions} Options for the transition @@ -139,5 +137,4 @@ export class NativePageTransitions extends IonicNativePlugin { cancelPendingTransition(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/native-ringtones/index.ts b/src/@ionic-native/plugins/native-ringtones/index.ts index 57be3b30c..5a1403e9a 100644 --- a/src/@ionic-native/plugins/native-ringtones/index.ts +++ b/src/@ionic-native/plugins/native-ringtones/index.ts @@ -29,11 +29,10 @@ import { Injectable } from '@angular/core'; plugin: 'cordova-plugin-native-ringtones', pluginRef: 'cordova.plugins.NativeRingtones', repo: 'https://github.com/TongZhangzt/cordova-plugin-native-ringtones', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class NativeRingtones extends IonicNativePlugin { - /** * Get the ringtone list of the device * @return {Promise} Returns a promise that resolves when ringtones found successfully diff --git a/src/@ionic-native/plugins/native-storage/index.ts b/src/@ionic-native/plugins/native-storage/index.ts index 65153da4f..81e033edc 100644 --- a/src/@ionic-native/plugins/native-storage/index.ts +++ b/src/@ionic-native/plugins/native-storage/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - /** * @name Native Storage * @description Native storage of variables in Android and iOS @@ -32,7 +31,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-nativestorage', pluginRef: 'NativeStorage', repo: 'https://github.com/TheCocoaProject/cordova-plugin-nativestorage', - platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows'] + platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows'], }) @Injectable() export class NativeStorage extends IonicNativePlugin { @@ -42,7 +41,7 @@ export class NativeStorage extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) initWithSuiteName(reference: string): Promise { return; @@ -96,5 +95,4 @@ export class NativeStorage extends IonicNativePlugin { clear(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/native-view/index.ts b/src/@ionic-native/plugins/native-view/index.ts index 50b6b18c5..e9feefd75 100644 --- a/src/@ionic-native/plugins/native-view/index.ts +++ b/src/@ionic-native/plugins/native-view/index.ts @@ -54,7 +54,7 @@ export interface NativeMarketParams extends NativeParams { plugin: 'cordova-plugin-nativeview', pluginRef: 'cordova.plugins.NativeView', repo: 'https://github.com/mfdeveloper/cordova-plugin-nativeview', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class NativeView extends IonicNativePlugin { @@ -111,11 +111,7 @@ export class NativeView extends IonicNativePlugin { * @returns {Promise} Returns data information about the installed app */ @Cordova() - checkIfAppInstalled( - config: NativeParams, - success?: Function, - error?: Function - ): Promise { + checkIfAppInstalled(config: NativeParams, success?: Function, error?: Function): Promise { return; } @@ -128,11 +124,7 @@ export class NativeView extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - showMarket( - config: NativeMarketParams, - success?: Function, - error?: Function - ): Promise { + showMarket(config: NativeMarketParams, success?: Function, error?: Function): Promise { return; } @@ -148,13 +140,9 @@ export class NativeView extends IonicNativePlugin { * @returns {Promise} Returns a current FLAVOR string */ @Cordova({ - platforms: ['android'] + platforms: ['android'], }) - getBuildVariant( - config: { catchError?: boolean }, - success?: Function, - error?: Function - ): Promise { + getBuildVariant(config: { catchError?: boolean }, success?: Function, error?: Function): Promise { return; } } diff --git a/src/@ionic-native/plugins/navigation-bar/index.ts b/src/@ionic-native/plugins/navigation-bar/index.ts index b174d2501..7c96ef3ab 100644 --- a/src/@ionic-native/plugins/navigation-bar/index.ts +++ b/src/@ionic-native/plugins/navigation-bar/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - /** * @beta * @name Navigation Bar @@ -25,11 +24,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-navigationbar', pluginRef: 'navigationbar', repo: 'https://github.com/cranberrygame/cordova-plugin-navigationbar', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class NavigationBar extends IonicNativePlugin { - /** * hide automatically (or not) the navigation bar. * @param autohide {boolean} @@ -38,7 +36,7 @@ export class NavigationBar extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'success', - errorName: 'failure' + errorName: 'failure', }) setUp(autohide?: boolean): Promise { return; @@ -51,10 +49,9 @@ export class NavigationBar extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'success', - errorName: 'failure' + errorName: 'failure', }) hideNavigationBar(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/network-interface/index.ts b/src/@ionic-native/plugins/network-interface/index.ts index f3b2bf15e..e5e4758e2 100644 --- a/src/@ionic-native/plugins/network-interface/index.ts +++ b/src/@ionic-native/plugins/network-interface/index.ts @@ -36,7 +36,6 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class NetworkInterface extends IonicNativePlugin { - /** * Gets the WiFi IP address * @return {Promise} Returns a Promise that resolves with the IP address information. @@ -64,5 +63,4 @@ export class NetworkInterface extends IonicNativePlugin { getHttpProxyInformation(url: string): Promise { return; } - } diff --git a/src/@ionic-native/plugins/network/index.ts b/src/@ionic-native/plugins/network/index.ts index 68c9df6e1..1d04eb745 100644 --- a/src/@ionic-native/plugins/network/index.ts +++ b/src/@ionic-native/plugins/network/index.ts @@ -1,11 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaCheck, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaCheck, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable, merge } from 'rxjs'; declare const navigator: any; @@ -15,10 +9,10 @@ export enum Connection { ETHERNET, WIFI, CELL_2G, - CELL_3G , + CELL_3G, CELL_4G, CELL, - NONE + NONE, } /** @@ -68,11 +62,10 @@ export enum Connection { plugin: 'cordova-plugin-network-information', pluginRef: 'navigator.connection', repo: 'https://github.com/apache/cordova-plugin-network-information', - platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class Network extends IonicNativePlugin { - /** * Constants for possible connection types */ @@ -84,7 +77,7 @@ export class Network extends IonicNativePlugin { CELL_3G: '3g', CELL_4G: '4g', CELL: 'cellular', - NONE: 'none' + NONE: 'none', }; /** @@ -115,7 +108,7 @@ export class Network extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'offline', - element: document + element: document, }) onDisconnect(): Observable { return; @@ -128,7 +121,7 @@ export class Network extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'online', - element: document + element: document, }) onConnect(): Observable { return; diff --git a/src/@ionic-native/plugins/nfc/index.ts b/src/@ionic-native/plugins/nfc/index.ts index 8e3265385..4c124c0d0 100644 --- a/src/@ionic-native/plugins/nfc/index.ts +++ b/src/@ionic-native/plugins/nfc/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; declare let window: any; @@ -90,14 +85,13 @@ export interface NfcTag { plugin: 'phonegap-nfc', pluginRef: 'nfc', repo: 'https://github.com/chariotsolutions/phonegap-nfc', - platforms: ['Android', 'BlackBerry 10', 'Windows', 'Windows Phone 8', 'iOS'] + platforms: ['Android', 'BlackBerry 10', 'Windows', 'Windows Phone 8', 'iOS'], }) /** * @{ NFC } class methods */ @Injectable() export class NFC extends IonicNativePlugin { - // Flags for readerMode // https://developer.android.com/reference/android/nfc/NfcAdapter#FLAG_READER_NFC_A @CordovaProperty() @@ -125,7 +119,7 @@ export class NFC extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'disableReaderMode', - clearWithArgs: false + clearWithArgs: false, }) readerMode(flags: number): Observable { return; @@ -207,7 +201,7 @@ export class NFC extends IonicNativePlugin { successIndex: 0, errorIndex: 3, clearFunction: 'invalidateSession', - clearWithArgs: true + clearWithArgs: true, }) beginSession(onSuccess?: Function, onFailure?: Function): Observable { return; @@ -224,12 +218,9 @@ export class NFC extends IonicNativePlugin { successIndex: 0, errorIndex: 3, clearFunction: 'removeNdefListener', - clearWithArgs: true + clearWithArgs: true, }) - addNdefListener( - onSuccess?: Function, - onFailure?: Function - ): Observable { + addNdefListener(onSuccess?: Function, onFailure?: Function): Observable { return; } @@ -244,12 +235,9 @@ export class NFC extends IonicNativePlugin { successIndex: 0, errorIndex: 3, clearFunction: 'removeTagDiscoveredListener', - clearWithArgs: true + clearWithArgs: true, }) - addTagDiscoveredListener( - onSuccess?: Function, - onFailure?: Function - ): Observable { + addTagDiscoveredListener(onSuccess?: Function, onFailure?: Function): Observable { return; } @@ -265,13 +253,9 @@ export class NFC extends IonicNativePlugin { successIndex: 1, errorIndex: 4, clearFunction: 'removeMimeTypeListener', - clearWithArgs: true + clearWithArgs: true, }) - addMimeTypeListener( - mimeType: string, - onSuccess?: Function, - onFailure?: Function - ): Observable { + addMimeTypeListener(mimeType: string, onSuccess?: Function, onFailure?: Function): Observable { return; } @@ -284,12 +268,9 @@ export class NFC extends IonicNativePlugin { @Cordova({ observable: true, successIndex: 0, - errorIndex: 3 + errorIndex: 3, }) - addNdefFormatableListener( - onSuccess?: Function, - onFailure?: Function - ): Observable { + addNdefFormatableListener(onSuccess?: Function, onFailure?: Function): Observable { return; } @@ -413,7 +394,7 @@ export class NFC extends IonicNativePlugin { @Plugin({ pluginName: 'NFC', plugin: 'phonegap-nfc', - pluginRef: 'ndef' + pluginRef: 'ndef', }) /** * @description @@ -442,21 +423,12 @@ export class Ndef extends IonicNativePlugin { TNF_RESERVED: number; @Cordova({ sync: true }) - record( - tnf: number, - type: number[] | string, - id: number[] | string, - payload: number[] | string - ): NdefRecord { + record(tnf: number, type: number[] | string, id: number[] | string, payload: number[] | string): NdefRecord { return; } @Cordova({ sync: true }) - textRecord( - text: string, - languageCode?: string, - id?: number[] | string - ): NdefRecord { + textRecord(text: string, languageCode?: string, id?: number[] | string): NdefRecord { return; } @@ -466,11 +438,7 @@ export class Ndef extends IonicNativePlugin { } @Cordova({ sync: true }) - absoluteUriRecord( - uri: string, - payload: number[] | string, - id?: number[] | string - ): NdefRecord { + absoluteUriRecord(uri: string, payload: number[] | string, id?: number[] | string): NdefRecord { return; } @@ -532,7 +500,7 @@ export class Ndef extends IonicNativePlugin { @Plugin({ pluginName: 'NFC', plugin: 'phonegap-nfc', - pluginRef: 'util' + pluginRef: 'util', }) @Injectable() export class NfcUtil extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/ocr/index.ts b/src/@ionic-native/plugins/ocr/index.ts index b436558fb..a6c01edbc 100644 --- a/src/@ionic-native/plugins/ocr/index.ts +++ b/src/@ionic-native/plugins/ocr/index.ts @@ -148,11 +148,10 @@ export interface OCRResult { plugin: 'cordova-plugin-mobile-ocr', pluginRef: 'textocr', repo: 'https://github.com/NeutrinosPlatform/cordova-plugin-mobile-ocr', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class OCR extends IonicNativePlugin { - /** * Extract text from image * @param sourceType {OCRSourceType} type of image source @@ -163,5 +162,4 @@ export class OCR extends IonicNativePlugin { recText(sourceType: OCRSourceType, source: string): Promise { return; } - } diff --git a/src/@ionic-native/plugins/onesignal/index.ts b/src/@ionic-native/plugins/onesignal/index.ts index c6e5e1369..c568f1479 100644 --- a/src/@ionic-native/plugins/onesignal/index.ts +++ b/src/@ionic-native/plugins/onesignal/index.ts @@ -105,7 +105,7 @@ export enum OSLockScreenVisibility { /** * Not shown */ - Secret = -1 + Secret = -1, } /** @@ -123,7 +123,7 @@ export enum OSDisplayType { /** * native notification display. */ - Notification = 2 + Notification = 2, } /** @@ -300,7 +300,7 @@ export interface OSNotificationOpenedResult { export enum OSActionType { Opened = 0, - ActionTake = 1 + ActionTake = 1, } /** @@ -412,7 +412,7 @@ export enum OSActionType { plugin: 'onesignal-cordova-plugin', pluginRef: 'plugins.OneSignal', repo: 'https://github.com/OneSignal/OneSignal-Cordova-SDK', - platforms: ['Amazon Fire OS', 'Android', 'iOS', 'Windows'] + platforms: ['Amazon Fire OS', 'Android', 'iOS', 'Windows'], }) @Injectable() export class OneSignal extends IonicNativePlugin { @@ -423,7 +423,7 @@ export class OneSignal extends IonicNativePlugin { OSInFocusDisplayOption = { None: 0, InAppAlert: 1, - Notification: 2 + Notification: 2, }; /** @@ -444,7 +444,7 @@ export class OneSignal extends IonicNativePlugin { * @return {Observable} */ @Cordova({ - observable: true + observable: true, }) handleNotificationReceived(): Observable { return; @@ -458,7 +458,7 @@ export class OneSignal extends IonicNativePlugin { * @return {Observable} */ @Cordova({ - observable: true + observable: true, }) handleNotificationOpened(): Observable { return; @@ -477,12 +477,9 @@ export class OneSignal extends IonicNativePlugin { */ @Cordova({ sync: true, - platforms: ['iOS'] + platforms: ['iOS'], }) - iOSSettings(settings: { - kOSSettingsKeyAutoPrompt: boolean; - kOSSettingsKeyInAppLaunchURL: boolean; - }): any { + iOSSettings(settings: { kOSSettingsKeyAutoPrompt: boolean; kOSSettingsKeyInAppLaunchURL: boolean }): any { return; } @@ -501,7 +498,7 @@ export class OneSignal extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) promptForPushNotificationsWithUserResponse(): Promise { return; @@ -688,7 +685,7 @@ export class OneSignal extends IonicNativePlugin { * @return {Observable} */ @Cordova({ - observable: true + observable: true, }) addPermissionObserver(): Observable { return; @@ -704,7 +701,7 @@ export class OneSignal extends IonicNativePlugin { * @return {Observable} */ @Cordova({ - observable: true + observable: true, }) addSubscriptionObserver(): Observable { return; @@ -736,7 +733,7 @@ export class OneSignal extends IonicNativePlugin { * @return {Observable} */ @Cordova({ - observable: true + observable: true, }) addEmailSubscriptionObserver(): Observable { return; @@ -784,5 +781,4 @@ export class OneSignal extends IonicNativePlugin { */ @Cordova() removeExternalUserId(): void {} - } diff --git a/src/@ionic-native/plugins/open-native-settings/index.ts b/src/@ionic-native/plugins/open-native-settings/index.ts index c65f50c7f..2f3716abb 100644 --- a/src/@ionic-native/plugins/open-native-settings/index.ts +++ b/src/@ionic-native/plugins/open-native-settings/index.ts @@ -95,7 +95,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-open-native-settings', pluginRef: 'cordova.plugins.settings', repo: 'https://github.com/guyromb/Cordova-open-native-settings', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class OpenNativeSettings extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/openalpr/index.ts b/src/@ionic-native/plugins/openalpr/index.ts index eb92142b1..3af0f5608 100644 --- a/src/@ionic-native/plugins/openalpr/index.ts +++ b/src/@ionic-native/plugins/openalpr/index.ts @@ -46,7 +46,7 @@ export interface OpenALPRResult { plugin: 'cordova-plugin-openalpr', pluginRef: 'cordova.plugins.OpenALPR', repo: 'https://github.com/iMicknl/cordova-plugin-openalpr', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class OpenALPR extends IonicNativePlugin { @@ -58,7 +58,7 @@ export class OpenALPR extends IonicNativePlugin { IN: 'in', KR2: 'kr2', US: 'us', - VN2: 'vn2' + VN2: 'vn2', }; /** diff --git a/src/@ionic-native/plugins/paypal/index.ts b/src/@ionic-native/plugins/paypal/index.ts index a25232df8..e62b4617f 100644 --- a/src/@ionic-native/plugins/paypal/index.ts +++ b/src/@ionic-native/plugins/paypal/index.ts @@ -69,7 +69,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'com.paypal.cordova.mobilesdk', pluginRef: 'PayPalMobile', repo: 'https://github.com/paypal/PayPal-Cordova-Plugin', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class PayPal extends IonicNativePlugin { @@ -106,10 +106,7 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - prepareToRender( - environment: string, - configuration: PayPalConfiguration - ): Promise { + prepareToRender(environment: string, configuration: PayPalConfiguration): Promise { return; } @@ -253,13 +250,7 @@ export class PayPalItem { * @param {String} currency: ISO standard currency code. * @param {String} sku: The stock keeping unit for this item. 50 characters max (optional) */ - constructor( - name: string, - quantity: number, - price: string, - currency: string, - sku?: string - ) { + constructor(name: string, quantity: number, price: string, currency: string, sku?: string) { this.name = name; this.quantity = quantity; this.price = price; @@ -446,7 +437,7 @@ export class PayPalConfiguration implements PayPalConfigurationOptions { presentingInPopover: false, forceDefaultsInSandbox: false, sandboxUserPassword: null, - sandboxUserPin: null + sandboxUserPin: null, }; if (options && typeof options === 'object') { diff --git a/src/@ionic-native/plugins/pdf-generator/index.ts b/src/@ionic-native/plugins/pdf-generator/index.ts index 902157fee..3921270e4 100644 --- a/src/@ionic-native/plugins/pdf-generator/index.ts +++ b/src/@ionic-native/plugins/pdf-generator/index.ts @@ -57,10 +57,10 @@ export interface PDFGeneratorOptions { plugin: 'cordova-pdf-generator', pluginRef: 'cordova.plugins.pdf', repo: 'https://github.com/cesarvr/pdf-generator', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class PDFGenerator extends IonicNativePlugin { /** diff --git a/src/@ionic-native/plugins/pedometer/index.ts b/src/@ionic-native/plugins/pedometer/index.ts index f5debbc27..74cfb0601 100644 --- a/src/@ionic-native/plugins/pedometer/index.ts +++ b/src/@ionic-native/plugins/pedometer/index.ts @@ -39,7 +39,7 @@ export interface IPedometerData { plugin: 'cordova-plugin-pedometer', pluginRef: 'pedometer', repo: 'https://github.com/leecrossley/cordova-plugin-pedometer', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Pedometer extends IonicNativePlugin { @@ -83,7 +83,7 @@ export class Pedometer extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'stopPedometerUpdates' + clearFunction: 'stopPedometerUpdates', }) startPedometerUpdates(): Observable { return; @@ -107,12 +107,9 @@ export class Pedometer extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when pedometer data found */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) - queryData(options: { - startDate: Date; - endDate: Date; - }): Promise { + queryData(options: { startDate: Date; endDate: Date }): Promise { return; } } diff --git a/src/@ionic-native/plugins/phonegap-local-notification/index.ts b/src/@ionic-native/plugins/phonegap-local-notification/index.ts index 578bb630c..06760a5bc 100644 --- a/src/@ionic-native/plugins/phonegap-local-notification/index.ts +++ b/src/@ionic-native/plugins/phonegap-local-notification/index.ts @@ -1,11 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaInstance, - IonicNativePlugin, - Plugin, - checkAvailability -} from '@ionic-native/core'; +import { Cordova, CordovaInstance, IonicNativePlugin, Plugin, checkAvailability } from '@ionic-native/core'; declare const Notification: any; @@ -16,13 +10,7 @@ export class PLNObject { private _objectInstance: any; constructor(title: string, options: LocalNotificationOptions) { - if ( - checkAvailability( - PhonegapLocalNotification.pluginRef, - null, - PhonegapLocalNotification.pluginName - ) === true - ) { + if (checkAvailability(PhonegapLocalNotification.pluginRef, null, PhonegapLocalNotification.pluginName) === true) { this._objectInstance = new Notification(title, options); } } @@ -98,7 +86,7 @@ export interface LocalNotificationOptions { plugin: 'phonegap-plugin-local-notification', pluginRef: 'Notification', repo: 'https://github.com/phonegap/phonegap-plugin-local-notification', - platforms: ['Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class PhonegapLocalNotification extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/photo-library/index.ts b/src/@ionic-native/plugins/photo-library/index.ts index 80bbbc9c0..71261b53a 100644 --- a/src/@ionic-native/plugins/photo-library/index.ts +++ b/src/@ionic-native/plugins/photo-library/index.ts @@ -1,10 +1,4 @@ -import { - Cordova, - CordovaOptions, - IonicNativePlugin, - Plugin, - wrap -} from '@ionic-native/core'; +import { Cordova, CordovaOptions, IonicNativePlugin, Plugin, wrap } from '@ionic-native/core'; import { Observable, Observer } from 'rxjs'; import { Injectable } from '@angular/core'; @@ -27,22 +21,12 @@ export interface CordovaFiniteObservableOptions extends CordovaOptions { * * Wraps method that returns an observable that can be completed. Provided opts.resultFinalPredicate dictates when the observable completes. */ -export function CordovaFiniteObservable( - opts: CordovaFiniteObservableOptions = {} -) { +export function CordovaFiniteObservable(opts: CordovaFiniteObservableOptions = {}) { opts.observable = true; - return ( - target: Object, - methodName: string, - descriptor: TypedPropertyDescriptor - ) => { + return (target: Object, methodName: string, descriptor: TypedPropertyDescriptor) => { return { value(...args: any[]) { - const wrappedObservable: Observable = wrap( - this, - methodName, - opts - ).apply(this, args); + const wrappedObservable: Observable = wrap(this, methodName, opts).apply(this, args); return new Observable((observer: Observer) => { const wrappedSubscription = wrappedObservable.subscribe({ next: (x: any) => { @@ -56,14 +40,14 @@ export function CordovaFiniteObservable( }, complete: () => { observer.complete(); - } + }, }); return () => { wrappedSubscription.unsubscribe(); }; }); }, - enumerable: true + enumerable: true, }; }; } @@ -113,7 +97,7 @@ export function CordovaFiniteObservable( install: 'ionic cordova plugin add cordova-plugin-photo-library --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="To choose photos"', installVariables: ['PHOTO_LIBRARY_USAGE_DESCRIPTION'], - platforms: ['Android', 'Browser', 'iOS'] + platforms: ['Android', 'Browser', 'iOS'], }) @Injectable() export class PhotoLibrary extends IonicNativePlugin { @@ -123,9 +107,13 @@ export class PhotoLibrary extends IonicNativePlugin { * @return {Observable} Returns library items. If appropriate option was set, will be returned by chunks. */ @Cordova({ - observable: true + observable: true, }) - getLibrary(success?: (res?: any) => void, error?: (err?: any) => void, options?: GetLibraryOptions): Observable { + getLibrary( + success?: (res?: any) => void, + error?: (err?: any) => void, + options?: GetLibraryOptions + ): Observable { return; } @@ -135,7 +123,7 @@ export class PhotoLibrary extends IonicNativePlugin { * @return { Promise} Returns a promise that resolves when permissions are granted, and fails when not. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) requestAuthorization(options?: RequestAuthorizationOptions): Promise { return; @@ -146,7 +134,7 @@ export class PhotoLibrary extends IonicNativePlugin { * @return {Promise} Resolves to list of albums. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getAlbums(): Promise { return; @@ -160,12 +148,9 @@ export class PhotoLibrary extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) - getThumbnailURL( - photo: string | LibraryItem, - options?: GetThumbnailOptions - ): Promise { + getThumbnailURL(photo: string | LibraryItem, options?: GetThumbnailOptions): Promise { return; } @@ -177,7 +162,7 @@ export class PhotoLibrary extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) getPhotoURL(photo: string | LibraryItem, options?: any): Promise { return; @@ -191,12 +176,9 @@ export class PhotoLibrary extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) - getThumbnail( - photo: string | LibraryItem, - options?: GetThumbnailOptions - ): Promise { + getThumbnail(photo: string | LibraryItem, options?: GetThumbnailOptions): Promise { return; } @@ -208,7 +190,7 @@ export class PhotoLibrary extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) getPhoto(photo: string | LibraryItem, options?: any): Promise { return; @@ -224,13 +206,9 @@ export class PhotoLibrary extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) - saveImage( - url: string, - album: AlbumItem | string, - options?: GetThumbnailOptions - ): Promise { + saveImage(url: string, album: AlbumItem | string, options?: GetThumbnailOptions): Promise { return; } @@ -242,7 +220,7 @@ export class PhotoLibrary extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) saveVideo(url: string, album: AlbumItem | string): Promise { return; diff --git a/src/@ionic-native/plugins/photo-viewer/index.ts b/src/@ionic-native/plugins/photo-viewer/index.ts index 7311742c6..42b6f6b57 100644 --- a/src/@ionic-native/plugins/photo-viewer/index.ts +++ b/src/@ionic-native/plugins/photo-viewer/index.ts @@ -52,7 +52,7 @@ export interface PhotoViewerOptions { plugin: 'com-sarriaroman-photoviewer', pluginRef: 'PhotoViewer', repo: 'https://github.com/sarriaroman/photoviewer', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class PhotoViewer extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/pin-check/index.ts b/src/@ionic-native/plugins/pin-check/index.ts index 05f936d59..689fba786 100644 --- a/src/@ionic-native/plugins/pin-check/index.ts +++ b/src/@ionic-native/plugins/pin-check/index.ts @@ -29,7 +29,7 @@ import { Injectable } from '@angular/core'; plugin: 'cordova-plugin-pincheck', pluginRef: 'cordova.plugins.PinCheck', repo: 'https://github.com/shangyilim/cordova-plugin-pincheck', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class PinCheck extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/pin-dialog/index.ts b/src/@ionic-native/plugins/pin-dialog/index.ts index a61a349c5..433f7eb25 100644 --- a/src/@ionic-native/plugins/pin-dialog/index.ts +++ b/src/@ionic-native/plugins/pin-dialog/index.ts @@ -33,7 +33,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-pin-dialog', pluginRef: 'plugins.pinDialog', repo: 'https://github.com/Paldom/PinDialog', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class PinDialog extends IonicNativePlugin { @@ -46,13 +46,9 @@ export class PinDialog extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 4 // no error callback + errorIndex: 4, // no error callback }) - prompt( - message: string, - title: string, - buttons: string[] - ): Promise<{ buttonIndex: number; input1: string }> { + prompt(message: string, title: string, buttons: string[]): Promise<{ buttonIndex: number; input1: string }> { return; } } diff --git a/src/@ionic-native/plugins/pinterest/index.ts b/src/@ionic-native/plugins/pinterest/index.ts index c2b9dd20d..c8081a07d 100644 --- a/src/@ionic-native/plugins/pinterest/index.ts +++ b/src/@ionic-native/plugins/pinterest/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface PinterestUser { /** @@ -177,10 +172,9 @@ export interface PinterestPin { plugin: 'cordova-plugin-pinterest', pluginRef: 'cordova.plugins.Pinterest', repo: 'https://github.com/zyramedia/cordova-plugin-pinterest', - install: - 'ionic cordova plugin add cordova-plugin-pinterest --variable APP_ID=YOUR_APP_ID', + install: 'ionic cordova plugin add cordova-plugin-pinterest --variable APP_ID=YOUR_APP_ID', installVariables: ['APP_ID'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Pinterest extends IonicNativePlugin { @@ -211,7 +205,7 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves with the user's object */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getMe(fields?: string): Promise { return; @@ -224,7 +218,7 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getMyPins(fields?: string, limit?: number): Promise { return; @@ -237,7 +231,7 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getMyBoards(fields?: string, limit?: number): Promise { return; @@ -250,7 +244,7 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getMyLikes(fields?: string, limit?: number): Promise { return; @@ -263,12 +257,9 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) - getMyFollowers( - fields?: string, - limit?: number - ): Promise { + getMyFollowers(fields?: string, limit?: number): Promise { return; } @@ -279,12 +270,9 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) - getMyFollowedBoards( - fields?: string, - limit?: number - ): Promise { + getMyFollowedBoards(fields?: string, limit?: number): Promise { return; } @@ -295,7 +283,7 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getMyFollowedInterests(fields?: string, limit?: number): Promise { return; @@ -309,7 +297,7 @@ export class Pinterest extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) getUser(username: string, fields?: string): Promise { return; @@ -323,7 +311,7 @@ export class Pinterest extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) getBoard(boardId: string, fields?: string): Promise { return; @@ -338,13 +326,9 @@ export class Pinterest extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) - getBoardPins( - boardId: string, - fields?: string, - limit?: number - ): Promise { + getBoardPins(boardId: string, fields?: string, limit?: number): Promise { return; } @@ -366,7 +350,7 @@ export class Pinterest extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) createBoard(name: string, desc?: string): Promise { return; @@ -380,7 +364,7 @@ export class Pinterest extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) getPin(pinId: string, fields?: string): Promise { return; @@ -406,14 +390,9 @@ export class Pinterest extends IonicNativePlugin { */ @Cordova({ successIndex: 4, - errorIndex: 5 + errorIndex: 5, }) - createPin( - note: string, - boardId: string, - imageUrl: string, - link?: string - ): Promise { + createPin(note: string, boardId: string, imageUrl: string, link?: string): Promise { return; } } diff --git a/src/@ionic-native/plugins/power-management/index.ts b/src/@ionic-native/plugins/power-management/index.ts index 04bf46a9d..0a721ec08 100644 --- a/src/@ionic-native/plugins/power-management/index.ts +++ b/src/@ionic-native/plugins/power-management/index.ts @@ -25,7 +25,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-powermanagement-orig', pluginRef: 'powerManagement', repo: 'https://github.com/Viras-/cordova-plugin-powermanagement', - platforms: ['Android', 'iOS', 'Windows', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows', 'Windows Phone'], }) @Injectable() export class PowerManagement extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/preview-any-file/index.ts b/src/@ionic-native/plugins/preview-any-file/index.ts index 73328d611..dc2a9801f 100644 --- a/src/@ionic-native/plugins/preview-any-file/index.ts +++ b/src/@ionic-native/plugins/preview-any-file/index.ts @@ -30,7 +30,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; repo: 'https://github.com/mostafa-mansour1/previewAnyFile', // the github repository URL for the plugin install: '', // OPTIONAL install command, in case the plugin requires variables installVariables: [], // OPTIONAL the plugin requires variables - platforms: ['Android', 'iOS'] // Array of platforms supported, example: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], // Array of platforms supported, example: ['Android', 'iOS'] }) @Injectable() export class PreviewAnyFile extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/printer/index.ts b/src/@ionic-native/plugins/printer/index.ts index 5fca03528..3fcb44d2b 100644 --- a/src/@ionic-native/plugins/printer/index.ts +++ b/src/@ionic-native/plugins/printer/index.ts @@ -93,12 +93,14 @@ export interface PrintOptions { * Set to false to avoid margins. * The margins for each printed page. Each printer might have its own minimum margins depends on media type and paper format. */ - margin?: boolean | { - top?: string; - left?: string; - right?: string; - bottom?: string; - }; + margin?: + | boolean + | { + top?: string; + left?: string; + right?: string; + bottom?: string; + }; ui?: { hideNumberOfCopies?: string; // Set to true to hide the control for the number of copies. Only supported on iOS @@ -161,18 +163,16 @@ export interface PrintOptions { plugin: 'cordova-plugin-printer', pluginRef: 'cordova.plugins.printer', repo: 'https://github.com/katzer/cordova-plugin-printer', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) @Injectable() export class Printer extends IonicNativePlugin { - /** * Checks whether the device is capable of printing (uses `check()` internally) * @returns {Promise} */ isAvailable(): Promise { - return this.check() - .then((res: any) => Promise.resolve(res.avail)); + return this.check().then((res: any) => Promise.resolve(res.avail)); } /** @@ -182,10 +182,9 @@ export class Printer extends IonicNativePlugin { @CordovaCheck() check(): Promise { return getPromise((resolve: Function) => { - Printer.getPlugin() - .canPrintItem((avail: boolean, count: any) => { - resolve({ avail, count }); - }); + Printer.getPlugin().canPrintItem((avail: boolean, count: any) => { + resolve({ avail, count }); + }); }); } @@ -206,10 +205,9 @@ export class Printer extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 4 + errorIndex: 4, }) print(content?: string | HTMLElement, options?: PrintOptions): Promise { return; } - } diff --git a/src/@ionic-native/plugins/pspdfkit-cordova/index.ts b/src/@ionic-native/plugins/pspdfkit-cordova/index.ts index 426d7fbb4..f13a54936 100644 --- a/src/@ionic-native/plugins/pspdfkit-cordova/index.ts +++ b/src/@ionic-native/plugins/pspdfkit-cordova/index.ts @@ -1,5 +1,12 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, CordovaProperty, CordovaInstance, InstanceProperty, IonicNativePlugin } from '@ionic-native/core'; +import { + Plugin, + Cordova, + CordovaProperty, + CordovaInstance, + InstanceProperty, + IonicNativePlugin, +} from '@ionic-native/core'; import { Observable } from 'rxjs'; /** @@ -40,588 +47,587 @@ import { Observable } from 'rxjs'; pluginRef: 'PSPDFKit', repo: 'https://github.com/PSPDFKit/PSPDFKit-Cordova', install: 'ionic cordova plugin add pspdfkit-cordova', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class PSPDFKit extends IonicNativePlugin { - - /** - * Activates PSPDFKit with your license key from https://customers.pspdfkit.com. - * - * @param key {string} The license key. - * @return {Promise} Success and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Activates PSPDFKit with your license key from https://customers.pspdfkit.com. + * + * @param key {string} The license key. + * @return {Promise} Success and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() setLicenseKey(licenseKey: string): Promise { return; } - /** - * iOS: Displays a PDF in a full-screen modal. - * Android: Opens the PSPDFActivity to show a document from the local device file system. - * - * @param path {string} The path should be a string containing the file path (not URL) for the PDF. Relative paths are assumed to be relative to the www directory (if the path has a different base URL set, this will be ignored). To specify a path inside the application documents or library directory, use a `~`, e.g. `"~/Documents/mypdf.pdf"` or `"~/Library/Application Support/mypdf.pdf"`. Path can be null, but must not be omitted - * @param options {any} The `options` parameter is an optional object containing configuration properties for the PDF document and/or view controller. All currently supported values are listed below under Options. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * iOS: Displays a PDF in a full-screen modal. + * Android: Opens the PSPDFActivity to show a document from the local device file system. + * + * @param path {string} The path should be a string containing the file path (not URL) for the PDF. Relative paths are assumed to be relative to the www directory (if the path has a different base URL set, this will be ignored). To specify a path inside the application documents or library directory, use a `~`, e.g. `"~/Documents/mypdf.pdf"` or `"~/Library/Application Support/mypdf.pdf"`. Path can be null, but must not be omitted + * @param options {any} The `options` parameter is an optional object containing configuration properties for the PDF document and/or view controller. All currently supported values are listed below under Options. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() present(path: string, options?: any): Promise { return; } - /** - * Opens the PSPDFActivity to show a document from the app's assets folder. This method copies the - * file to the internal app directory on the device before showing it. - * @param assetFile {string} Relative path within the app's assets folder. - * @param options {any} PSPDFKit configuration options. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -Android - */ + /** + * Opens the PSPDFActivity to show a document from the app's assets folder. This method copies the + * file to the internal app directory on the device before showing it. + * @param assetFile {string} Relative path within the app's assets folder. + * @param options {any} PSPDFKit configuration options. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -Android + */ @Cordova() presentFromAssets(assetFile: string, options?: any): Promise { return; } - /** - * Displays a PDF in a full-screen modal and imports annotations from a given XFDF file. - * - * @param path {string} Should be a string containing the file path (not URL) for the PDF. Relative paths are assumed to be relative to the www directory (if the path has a different base URL set, this will be ignored). To specify a path inside the application documents or library directory, use a `~`, e.g. `"~/Documents/mypdf.pdf"` or `"~/Library/Application Support/mypdf.pdf"`. Path can be null, but must not be omitted - * @param xfdfPath {string} should be a string containing the file path (not URL) for the XFDF file backing the PDF document. Relative paths are assumed to be relative to the www directory (if the xfdf path has a different base URL set, we will create an XFDF file in `'"~/Documents/" + xfdfPath'`). To specify a path inside the application documents or library directory, use a ~, e.g. `"~/Documents/myXFDF.xfdf"` or `"~/Library/Application Support/myXFDF.xfdf"`. The xfdfPath cannot be null and must not be omitted. - * @param options {any} The `options` parameter is an optional object containing configuration properties for the PDF document and/or view controller. All currently supported values are listed below under Options. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Displays a PDF in a full-screen modal and imports annotations from a given XFDF file. + * + * @param path {string} Should be a string containing the file path (not URL) for the PDF. Relative paths are assumed to be relative to the www directory (if the path has a different base URL set, this will be ignored). To specify a path inside the application documents or library directory, use a `~`, e.g. `"~/Documents/mypdf.pdf"` or `"~/Library/Application Support/mypdf.pdf"`. Path can be null, but must not be omitted + * @param xfdfPath {string} should be a string containing the file path (not URL) for the XFDF file backing the PDF document. Relative paths are assumed to be relative to the www directory (if the xfdf path has a different base URL set, we will create an XFDF file in `'"~/Documents/" + xfdfPath'`). To specify a path inside the application documents or library directory, use a ~, e.g. `"~/Documents/myXFDF.xfdf"` or `"~/Library/Application Support/myXFDF.xfdf"`. The xfdfPath cannot be null and must not be omitted. + * @param options {any} The `options` parameter is an optional object containing configuration properties for the PDF document and/or view controller. All currently supported values are listed below under Options. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() presentWithXFDF(path: string, xfdfPath: string, options?: any): Promise { return; } - /** - * iOS: Dismisses the modally presented PDF view. - * Android: Dismisses any previously launched PDF activity. Calls the optional callback function after all activities have been dismissed. - * - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * iOS: Dismisses the modally presented PDF view. + * Android: Dismisses any previously launched PDF activity. Calls the optional callback function after all activities have been dismissed. + * + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() dismiss(): Promise { return; } - /** - * Reloads the current PDF. - * - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Reloads the current PDF. + * + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() reload(): Promise { return; } - /** - * Saves the document to original location if it has been changed. If there were no changes to the - * document, the document file will not be modified. - * Provides "wasModified" as a part of a successful response which will be equal to true if - * the file was modified and changes were saved. false if there was nothing to save. - * - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -Android - */ + /** + * Saves the document to original location if it has been changed. If there were no changes to the + * document, the document file will not be modified. + * Provides "wasModified" as a part of a successful response which will be equal to true if + * the file was modified and changes were saved. false if there was nothing to save. + * + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -Android + */ @Cordova() saveDocument(): Promise { return; } - /** - * Saves any changed annotations in the current document. - * - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Saves any changed annotations in the current document. + * + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() saveAnnotations(): Promise { return; } - /** - * Return true in the success (or result) callback if the document has unsaved annotation. Returns false otherwise. - * - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Return true in the success (or result) callback if the document has unsaved annotation. Returns false otherwise. + * + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() getHasDirtyAnnotations(): Promise { return; } - /** - * Triggers a search for the specified query. - * - * @param query {string} Search Term to query - * @param animated {boolean} Determines if the search should be animated (if omitted, the search will not be animated). The optional headless argument determines whether the search UI should be disaplyed (if omitted, the search UI *will* be displayed). - * @param headless {boolean} Determines whether the search UI should be disaplyed (if omitted, the search UI *will* be displayed). - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Triggers a search for the specified query. + * + * @param query {string} Search Term to query + * @param animated {boolean} Determines if the search should be animated (if omitted, the search will not be animated). The optional headless argument determines whether the search UI should be disaplyed (if omitted, the search UI *will* be displayed). + * @param headless {boolean} Determines whether the search UI should be disaplyed (if omitted, the search UI *will* be displayed). + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() search(query: string, animated?: boolean, headless?: boolean): Promise { return; } - /** - * Sets multiple document and view controller settings at once. - * - * @param options {any} The options set will be applied to the current document (if there is one) as well as all subsequently displayed documents. All currently supported values are listed below under Options. - * @param animated {boolean} determines if the property should be animated. Not all property changes can be animated, so if the property does not support animation the animated argument will be ignored. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Sets multiple document and view controller settings at once. + * + * @param options {any} The options set will be applied to the current document (if there is one) as well as all subsequently displayed documents. All currently supported values are listed below under Options. + * @param animated {boolean} determines if the property should be animated. Not all property changes can be animated, so if the property does not support animation the animated argument will be ignored. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() setOptions(options: any, animated: boolean): Promise { return; } - /** - * Gets several document or view controller options in a single call. - * - * @param names {any} array of option names - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Gets several document or view controller options in a single call. + * + * @param names {any} array of option names + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() getOptions(names: any): Promise { return; } - /** - * Sets a single document or view controller settings at once. - * - * @param name {string} the option name - * @param value {any} the option value - * @param animated {boolean} determines if the property should be animated. Not all property changes can be animated, so if the property does not support animation the animated argument will be ignored. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Sets a single document or view controller settings at once. + * + * @param name {string} the option name + * @param value {any} the option value + * @param animated {boolean} determines if the property should be animated. Not all property changes can be animated, so if the property does not support animation the animated argument will be ignored. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() setOption(name: string, value: any, animated: boolean): Promise { return; } - /** - * Gets a single document or view controller settings at once. - * - * @param name {string} the option name - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Gets a single document or view controller settings at once. + * + * @param name {string} the option name + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() getOption(name: string): Promise { return; } - /** - * Sets the current visible page. - * - * @param page {number} the page index - * @param animated {boolean} Optional argument. Determines if the page change should be animated (if omitted, the search will not be animated). - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Sets the current visible page. + * + * @param page {number} the page index + * @param animated {boolean} Optional argument. Determines if the page change should be animated (if omitted, the search will not be animated). + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() setPage(page: number, animated?: boolean): Promise { return; } - /** - * Gets the currently visible page. - * - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Gets the currently visible page. + * + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() getPage(): Promise { return; } - /** - * Gets the page count of the current document. - * - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Gets the page count of the current document. + * + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() getPageCount(): Promise { return; } - /** - * Scrolls to the next page. - * - * @param animated {boolean} Optional argument. Determines if the page change should be animated (if omitted, the search will not be animated). - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Scrolls to the next page. + * + * @param animated {boolean} Optional argument. Determines if the page change should be animated (if omitted, the search will not be animated). + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() scrollToNextPage(animated?: boolean): Promise { return; } - /** - * Scrolls to the previous page. - * - * @param animated {boolean} Optional argument. Determines if the page change should be animated (if omitted, the search will not be animated). - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Scrolls to the previous page. + * + * @param animated {boolean} Optional argument. Determines if the page change should be animated (if omitted, the search will not be animated). + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() scrollToPreviousPage(animated?: boolean): Promise { return; } - /** - * Sets the appearance mode. - * - * @param appearanceMode {string} the appearance mode. Can be 'default', 'sepia', or 'night' - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Sets the appearance mode. + * + * @param appearanceMode {string} the appearance mode. Can be 'default', 'sepia', or 'night' + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() setAppearanceMode(appearanceMode: string): Promise { return; } - /** - * Clears the entire render cache. This invalidates render caches for all previously rendered documents. - * Consider using `removeCacheForPresentedDocument()` or `clearCacheForPage()` instead of this, - * since invalidating single documents or specific page caches since excessive cache invalidation may decrease performance. - * - * @param clearDiskCache {boolean} optional parameter. Android: if set to true clears disk cache as well. iOS: has no effect. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Clears the entire render cache. This invalidates render caches for all previously rendered documents. + * Consider using `removeCacheForPresentedDocument()` or `clearCacheForPage()` instead of this, + * since invalidating single documents or specific page caches since excessive cache invalidation may decrease performance. + * + * @param clearDiskCache {boolean} optional parameter. Android: if set to true clears disk cache as well. iOS: has no effect. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() clearCache(clearDiskCache?: boolean): Promise { return; } - /** - * Clears the cache from the currently presented document. - * - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Clears the cache from the currently presented document. + * + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() removeCacheForPresentedDocument(): Promise { return; } - /** - * Invalidates the render cache for the specified page. - * - * @param pageIndex {number} 0-based index of the page whose render cache should be invalidated. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -Android - */ + /** + * Invalidates the render cache for the specified page. + * + * @param pageIndex {number} 0-based index of the page whose render cache should be invalidated. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -Android + */ @Cordova() clearCacheForPage(pageIndex: number): Promise { return; } - /** - * Hides the annotation toolbar - * - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Hides the annotation toolbar + * + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() hideAnnotationToolbar(): Promise { return; } - /** - * Shows the annotation toolbar - * - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Shows the annotation toolbar + * + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() showAnnotationToolbar(): Promise { return; } - /** - * Toggles the annotation toolbar - * - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Toggles the annotation toolbar + * + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() toggleAnnotationToolbar(): Promise { return; } - /** - * Applies the passed in document Instant JSON. - * - * @param jsonValue {string} The document Instant JSON to apply. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Applies the passed in document Instant JSON. + * + * @param jsonValue {string} The document Instant JSON to apply. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() applyInstantJSON(jsonValue: string): Promise { return; } - /** - * Adds a new annotation to the current document using the Instant JSON Annotation - * payload - https://pspdfkit.com/guides/ios/current/importing-exporting/instant-json/#instant-annotation-json-api - * - * @param jsonAnnotation {string} Instant JSON of the annotation to add. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Adds a new annotation to the current document using the Instant JSON Annotation + * payload - https://pspdfkit.com/guides/ios/current/importing-exporting/instant-json/#instant-annotation-json-api + * + * @param jsonAnnotation {string} Instant JSON of the annotation to add. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() addAnnotation(jsonAnnotation: string): Promise { return; } - /** - * Removes a given annotation from the current document. The annotaion is expected to be in Instant - * JSON format - https://pspdfkit.com/guides/ios/current/importing-exporting/instant-json/#instant-annotation-json-api - * - * @param jsonAnnotation {string} Instant JSON of the annotation to remove. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Removes a given annotation from the current document. The annotaion is expected to be in Instant + * JSON format - https://pspdfkit.com/guides/ios/current/importing-exporting/instant-json/#instant-annotation-json-api + * + * @param jsonAnnotation {string} Instant JSON of the annotation to remove. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() removeAnnotation(jsonAnnotation: string): Promise { return; } - /** - * Gets all annotations of the given type from the page. - * - * @param pageIndex {number} The page to get the annotations for. - * @param type {string} The type of annotations to get (See here for types https://pspdfkit.com/guides/server/current/api/json-format/) or `null` to get all annotations. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Gets all annotations of the given type from the page. + * + * @param pageIndex {number} The page to get the annotations for. + * @param type {string} The type of annotations to get (See here for types https://pspdfkit.com/guides/server/current/api/json-format/) or `null` to get all annotations. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() getAnnotations(pageIndex: number, type?: string): Promise { return; } - /** - * Gets all unsaved changes to annotations. - * - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Gets all unsaved changes to annotations. + * + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() getAllUnsavedAnnotations(): Promise { return; } - /** - * Sets the value of the form element of the fully qualified name. - * - * @param value {string} the value. - * @param fullyQualifiedName {string} the fully qualified name of the form element. - * @return {Promise} callback Success (result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Sets the value of the form element of the fully qualified name. + * + * @param value {string} the value. + * @param fullyQualifiedName {string} the fully qualified name of the form element. + * @return {Promise} callback Success (result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() setFormFieldValue(value: string, fullyQualifiedName: string): Promise { return; } - /** - * Gets the value of the form element of the fully qualified name. - * - * @param fullyQualifiedName {string} description. - * @return {Promise} callback Success (result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Gets the value of the form element of the fully qualified name. + * + * @param fullyQualifiedName {string} description. + * @return {Promise} callback Success (result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() getFormFieldValue(fullyQualifiedName: string): Promise { return; } - /** - * Imports all annotations from the specified XFDF file to the current document. - * - * @param xfdfPath {string} XFDF file path to import annotations - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Imports all annotations from the specified XFDF file to the current document. + * + * @param xfdfPath {string} XFDF file path to import annotations + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() importXFDF(xfdfPath: string): Promise { return; } - /** - * Exports all annotations from the current document to the specified XFDF file path. - * - * @param xfdfPath {string} XFDF file path to export annotations - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Exports all annotations from the current document to the specified XFDF file path. + * + * @param xfdfPath {string} XFDF file path to export annotations + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() exportXFDF(xfdfPath: string): Promise { return; } - /** - * Processes annotations (embed, remove, flatten, or print) and saves the processed document to the given document path. - * - * @param annotationChange {string} the annotation change. Can be 'flatten', 'remove', 'embed' or 'print' - * @param processedDocumentPath {string} description. - * @param annotationType {string} The optional string annotationType argument. If omitted, we process 'All' annotations. The annotation type can have one of the following values: None, Undefined, Link, Highlight, StrikeOut, Underline, Squiggly, FreeText, Ink, Square, Circle, Line, Text, Stamp, Caret, RichMedia, Screen, Widget, Sound, FileAttachment, Polygon, PolyLine, Popup, Watermark, TrapNet, 3D, Redact, All. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - * -Android - */ + /** + * Processes annotations (embed, remove, flatten, or print) and saves the processed document to the given document path. + * + * @param annotationChange {string} the annotation change. Can be 'flatten', 'remove', 'embed' or 'print' + * @param processedDocumentPath {string} description. + * @param annotationType {string} The optional string annotationType argument. If omitted, we process 'All' annotations. The annotation type can have one of the following values: None, Undefined, Link, Highlight, StrikeOut, Underline, Squiggly, FreeText, Ink, Square, Circle, Line, Text, Stamp, Caret, RichMedia, Screen, Widget, Sound, FileAttachment, Polygon, PolyLine, Popup, Watermark, TrapNet, 3D, Redact, All. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + * -Android + */ @Cordova() processAnnotations(annotationChange: string, processedDocumentPath: string, annotationType: string): Promise { return; } - /** - * Generates a PDF document from HTML string. - * - * @param html {string} HTML string. - * @param fileName {string} File name of the generated PDF. - * @param options {string} Options to be considered when converting the HTML string to PDF. - * @return {Promise} callback Success (or result) and error callback function. - * - * __Supported Platforms__ - * - * -iOS - */ + /** + * Generates a PDF document from HTML string. + * + * @param html {string} HTML string. + * @param fileName {string} File name of the generated PDF. + * @param options {string} Options to be considered when converting the HTML string to PDF. + * @return {Promise} callback Success (or result) and error callback function. + * + * __Supported Platforms__ + * + * -iOS + */ @Cordova() convertPDFFromHTMLString(html: string, fileName: string, options: string): Promise { return; diff --git a/src/@ionic-native/plugins/purchases/index.ts b/src/@ionic-native/plugins/purchases/index.ts index 018f1579e..ccf86fcd7 100644 --- a/src/@ionic-native/plugins/purchases/index.ts +++ b/src/@ionic-native/plugins/purchases/index.ts @@ -48,7 +48,7 @@ export enum PURCHASE_TYPE { */ export enum ProductType { SUBS = 'subs', - INAPP = 'inapp' + INAPP = 'inapp', } export enum PRORATION_MODE { @@ -81,7 +81,6 @@ export enum PRORATION_MODE { } export enum PACKAGE_TYPE { - /** * A package that was defined with a custom identifier. */ @@ -140,7 +139,7 @@ export enum INTRO_ELIGIBILITY_STATUS { /** * The user is eligible for a free trial or intro pricing for this product. */ - INTRO_ELIGIBILITY_STATUS_ELIGIBLE + INTRO_ELIGIBILITY_STATUS_ELIGIBLE, } /** @@ -211,13 +210,12 @@ export enum INTRO_ELIGIBILITY_STATUS { plugin: 'cordova-plugin-purchases@1.1.0', pluginRef: 'Purchases', // the variable reference to call the plugin, example: navigator.geolocation repo: 'https://github.com/RevenueCat/cordova-plugin-purchases', // the github repository URL for the plugin - platforms: ['Android', 'iOS'] // Array of platforms supported, example: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], // Array of platforms supported, example: ['Android', 'iOS'] }) @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class Purchases extends IonicNativePlugin { - static ATTRIBUTION_NETWORKS = ATTRIBUTION_NETWORK; /** * Enum for attribution networks @@ -263,11 +261,7 @@ export class Purchases extends IonicNativePlugin { * to acknowledge the purchases yourself. */ @Cordova({ sync: true }) - setup( - apiKey: string, - appUserID?: string | null, - observerMode = false - ): void {} + setup(apiKey: string, appUserID?: string | null, observerMode = false): void {} /** * Set this to true if you are passing in an appUserID but it is anonymous, this is true by default if you didn't pass an appUserID @@ -285,11 +279,7 @@ export class Purchases extends IonicNativePlugin { * @param {string?} networkUserId An optional unique id for identifying the user. Needs to be a string. */ @Cordova({ sync: true }) - addAttributionData( - data: { [key: string]: any }, - network: ATTRIBUTION_NETWORK, - networkUserId?: string - ): void {} + addAttributionData(data: { [key: string]: any }, network: ATTRIBUTION_NETWORK, networkUserId?: string): void {} /** * Gets the Offerings configured in the dashboard @@ -310,12 +300,9 @@ export class Purchases extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) - getProducts( - productIdentifiers: string[], - type: PURCHASE_TYPE = PURCHASE_TYPE.SUBS - ): Promise { + getProducts(productIdentifiers: string[], type: PURCHASE_TYPE = PURCHASE_TYPE.SUBS): Promise { return; } @@ -340,13 +327,13 @@ export class Purchases extends IonicNativePlugin { @Cordova({ successIndex: 1, errorIndex: 2, - observable: true + observable: true, }) makePurchase( productIdentifier: string, oldSKU?: string | null, type: PURCHASE_TYPE = PURCHASE_TYPE.SUBS - ): Promise<{ productIdentifier: string; purchaserInfo: PurchaserInfo; }> { + ): Promise<{ productIdentifier: string; purchaserInfo: PurchaserInfo }> { return; } @@ -363,13 +350,13 @@ export class Purchases extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) purchaseProduct( productIdentifier: string, upgradeInfo?: UpgradeInfo | null, type: PURCHASE_TYPE = PURCHASE_TYPE.SUBS - ): Promise<{ productIdentifier: string; purchaserInfo: PurchaserInfo; }> { + ): Promise<{ productIdentifier: string; purchaserInfo: PurchaserInfo }> { return; } @@ -385,12 +372,12 @@ export class Purchases extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) purchasePackage( aPackage: PurchasesPackage, upgradeInfo?: UpgradeInfo | null - ): Promise<{ productIdentifier: string; purchaserInfo: PurchaserInfo; }> { + ): Promise<{ productIdentifier: string; purchaserInfo: PurchaserInfo }> { return; } @@ -469,7 +456,7 @@ export class Purchases extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'onPurchaserInfoUpdated', - element: 'window' + element: 'window', }) onPurchaserInfoUpdated(): Observable { return; @@ -524,7 +511,7 @@ export class Purchases extends IonicNativePlugin { @Cordova() checkTrialOrIntroductoryPriceEligibility( productIdentifiers: string[] - ): Promise<{ [productId: string]: IntroEligibility; }> { + ): Promise<{ [productId: string]: IntroEligibility }> { return; } @@ -607,20 +594,17 @@ export class Purchases extends IonicNativePlugin { /** * @deprecated use PurchasesProduct instead */ -export interface RCProduct { -} +export interface RCProduct {} /** * @deprecated use PurchaserInfo instead */ -export interface RCPurchaserInfo { -} +export interface RCPurchaserInfo {} /** * @deprecated use PurchasesError instead */ -export interface RCError { -} +export interface RCError {} /** * The EntitlementInfo object gives you access to all of the information about the status of a user entitlement. */ diff --git a/src/@ionic-native/plugins/push/index.ts b/src/@ionic-native/plugins/push/index.ts index e08309476..abbadc638 100644 --- a/src/@ionic-native/plugins/push/index.ts +++ b/src/@ionic-native/plugins/push/index.ts @@ -4,9 +4,7 @@ import { Observable } from 'rxjs'; declare const window: any; -export type EventResponse = RegistrationEventResponse & - NotificationEventResponse & - Error; +export type EventResponse = RegistrationEventResponse & NotificationEventResponse & Error; export interface RegistrationEventResponse { /** @@ -326,7 +324,7 @@ export type PushEvent = string; pluginRef: 'PushNotification', repo: 'https://github.com/phonegap/phonegap-plugin-push', install: 'ionic cordova plugin add phonegap-plugin-push', - platforms: ['Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class Push extends IonicNativePlugin { @@ -353,7 +351,7 @@ export class Push extends IonicNativePlugin { * @param channel {Channel} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) createChannel(channel?: Channel): Promise { return; @@ -364,7 +362,7 @@ export class Push extends IonicNativePlugin { * @param id {string} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) deleteChannel(id?: string): Promise { return; @@ -386,15 +384,13 @@ export class Push extends IonicNativePlugin { @Plugin({ pluginName: 'Push', plugin: 'phonegap-plugin-push', - pluginRef: 'PushNotification' + pluginRef: 'PushNotification', }) export class PushObject { private _objectInstance: any; constructor(options: PushOptions) { - if ( - checkAvailability('PushNotification', 'init', 'PushNotification') === true - ) { + if (checkAvailability('PushNotification', 'init', 'PushNotification') === true) { if (typeof window !== 'undefined') { this._objectInstance = window.PushNotification.init(options); } @@ -409,7 +405,7 @@ export class PushObject { @CordovaInstance({ observable: true, clearFunction: 'off', - clearWithArgs: true + clearWithArgs: true, }) on(event: PushEvent): Observable { return; @@ -434,7 +430,7 @@ export class PushObject { * @param count */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) setApplicationIconBadgeNumber(count?: number): Promise { return; @@ -455,7 +451,7 @@ export class PushObject { * @param [id] */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) finish(id?: string): Promise { return; diff --git a/src/@ionic-native/plugins/pushape-push/index.ts b/src/@ionic-native/plugins/pushape-push/index.ts index b4066e652..0fab7872e 100644 --- a/src/@ionic-native/plugins/pushape-push/index.ts +++ b/src/@ionic-native/plugins/pushape-push/index.ts @@ -237,7 +237,6 @@ export interface Channel { export type PushEvent = 'registration' | 'notification' | 'error'; - /** Extended Pushape types */ export interface PushapePushOptions { @@ -302,7 +301,6 @@ export interface PushapeRegistrationEventResponse extends RegistrationEventRespo }) @Injectable() export class PushapePush extends IonicNativePlugin { - /** * Init push notifications * @param options {PushapeOptions} @@ -326,7 +324,7 @@ export class PushapePush extends IonicNativePlugin { * @param channel {Channel} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) createChannel(channel?: Channel): Promise { return; @@ -337,7 +335,7 @@ export class PushapePush extends IonicNativePlugin { * @param id {string} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) deleteChannel(id?: string): Promise { return; @@ -351,7 +349,6 @@ export class PushapePush extends IonicNativePlugin { listChannels(): Promise { return; } - } /** @@ -360,15 +357,13 @@ export class PushapePush extends IonicNativePlugin { @Plugin({ pluginName: 'PushapePush', plugin: 'pushape-cordova-push', - pluginRef: 'PushNotification' + pluginRef: 'PushNotification', }) export class PushObject { private _objectInstance: any; constructor(options: PushapeOptions) { - if ( - checkAvailability('PushNotification', 'init', 'PushNotification') === true - ) { + if (checkAvailability('PushNotification', 'init', 'PushNotification') === true) { if (typeof window !== 'undefined') { this._objectInstance = window.PushNotification.init(options); } @@ -429,7 +424,7 @@ export class PushObject { * @param [id] */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) finish(id?: string): Promise { return; diff --git a/src/@ionic-native/plugins/qqsdk/index.ts b/src/@ionic-native/plugins/qqsdk/index.ts index e6027011d..1d1dc4b8b 100644 --- a/src/@ionic-native/plugins/qqsdk/index.ts +++ b/src/@ionic-native/plugins/qqsdk/index.ts @@ -2,7 +2,6 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; export interface QQShareOptions { - /** * The clinet type, QQ or TIM * Default is QQ @@ -163,21 +162,20 @@ export interface QQShareOptions { }) @Injectable() export class QQSDK extends IonicNativePlugin { - /** * QQ Share Scene */ Scene = { QQ: 0, QQZone: 1, - Favorite: 2 + Favorite: 2, }; /** * client type: QQ application or TIM application */ ClientType = { QQ: 0, - TIM: 1 + TIM: 1, }; /** @@ -186,14 +184,14 @@ export class QQSDK extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the success return, or rejects with an error. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) ssoLogin(options: QQShareOptions): Promise { return; } @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) logout(): Promise { return; @@ -205,7 +203,7 @@ export class QQSDK extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the success return, or rejects with an error. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) checkClientInstalled(options: QQShareOptions): Promise { return; @@ -217,7 +215,7 @@ export class QQSDK extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the success return, or rejects with an error. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) shareText(options: QQShareOptions): Promise { return; @@ -229,7 +227,7 @@ export class QQSDK extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the success return, or rejects with an error. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) shareImage(options: QQShareOptions): Promise { return; @@ -241,7 +239,7 @@ export class QQSDK extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the success return, or rejects with an error. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) shareNews(options: QQShareOptions): Promise { return; @@ -253,7 +251,7 @@ export class QQSDK extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the success return, or rejects with an error. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) shareAudio(options: QQShareOptions): Promise { return; diff --git a/src/@ionic-native/plugins/qr-scanner/index.ts b/src/@ionic-native/plugins/qr-scanner/index.ts index 01c6c98d5..8354659ba 100644 --- a/src/@ionic-native/plugins/qr-scanner/index.ts +++ b/src/@ionic-native/plugins/qr-scanner/index.ts @@ -109,7 +109,7 @@ export interface QRScannerStatus { plugin: 'cordova-plugin-qrscanner', pluginRef: 'QRScanner', repo: 'https://github.com/bitpay/cordova-plugin-qrscanner', - platforms: ['Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class QRScanner extends IonicNativePlugin { @@ -118,7 +118,7 @@ export class QRScanner extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - callbackStyle: 'node' + callbackStyle: 'node', }) prepare(): Promise { return; @@ -131,7 +131,7 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node', observable: true, - clearFunction: 'cancelScan' + clearFunction: 'cancelScan', }) scan(): Observable { return; @@ -160,7 +160,7 @@ export class QRScanner extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - callbackStyle: 'node' + callbackStyle: 'node', }) enableLight(): Promise { return; @@ -180,7 +180,7 @@ export class QRScanner extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - callbackStyle: 'node' + callbackStyle: 'node', }) disableLight(): Promise { return; @@ -191,7 +191,7 @@ export class QRScanner extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - callbackStyle: 'node' + callbackStyle: 'node', }) useFrontCamera(): Promise { return; @@ -202,7 +202,7 @@ export class QRScanner extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - callbackStyle: 'node' + callbackStyle: 'node', }) useBackCamera(): Promise { return; @@ -214,7 +214,7 @@ export class QRScanner extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - callbackStyle: 'node' + callbackStyle: 'node', }) useCamera(camera: number): Promise { return; @@ -251,7 +251,7 @@ export class QRScanner extends IonicNativePlugin { * Opens settings to edit app permissions. */ @Cordova({ - sync: true + sync: true, }) openSettings(): void {} } diff --git a/src/@ionic-native/plugins/quikkly/index.ts b/src/@ionic-native/plugins/quikkly/index.ts index c188318b4..f7a0c5eea 100644 --- a/src/@ionic-native/plugins/quikkly/index.ts +++ b/src/@ionic-native/plugins/quikkly/index.ts @@ -11,11 +11,12 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-quikkly', pluginRef: 'cordova.plugins.quikkly', repo: 'https://github.com/quikkly/cordova-plugin-quikkly.git', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class QuikklyPlugin extends IonicNativePlugin { @Cordova() - openScanner(): Promise { return ; } + openScanner(): Promise { + return; + } } - diff --git a/src/@ionic-native/plugins/regula-document-reader/index.ts b/src/@ionic-native/plugins/regula-document-reader/index.ts index b45aeb31f..d7afc7888 100644 --- a/src/@ionic-native/plugins/regula-document-reader/index.ts +++ b/src/@ionic-native/plugins/regula-document-reader/index.ts @@ -29,14 +29,12 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class RegulaDocumentReader extends IonicNativePlugin { - /** * Initialize the scanner * @param license {any} License data */ @Cordova() - initReader(license: any): void { - } + initReader(license: any): void {} /** * Run the scanner diff --git a/src/@ionic-native/plugins/rollbar/index.ts b/src/@ionic-native/plugins/rollbar/index.ts index 188031c07..96b2a5de6 100644 --- a/src/@ionic-native/plugins/rollbar/index.ts +++ b/src/@ionic-native/plugins/rollbar/index.ts @@ -24,13 +24,13 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'resgrid-cordova-plugins-rollbar', pluginRef: 'cordova.plugins.Rollbar', repo: 'https://github.com/Resgrid/cordova-plugins-rollbar', - install: 'ionic cordova plugin add resgrid-cordova-plugins-rollbar --variable ROLLBAR_ACCESS_TOKEN="YOUR_ROLLBAR_ACCEESS_TOKEN" --variable ROLLBAR_ENVIRONMENT="ROLLBAR_ENVIRONMENT"', + install: + 'ionic cordova plugin add resgrid-cordova-plugins-rollbar --variable ROLLBAR_ACCESS_TOKEN="YOUR_ROLLBAR_ACCEESS_TOKEN" --variable ROLLBAR_ENVIRONMENT="ROLLBAR_ENVIRONMENT"', installVariables: ['ROLLBAR_ACCESS_TOKEN', 'ROLLBAR_ENVIRONMENT'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Rollbar extends IonicNativePlugin { - /** * This function initializes the monitoring of your application * @return {Promise} Returns a promise that resolves when the plugin successfully initializes @@ -39,5 +39,4 @@ export class Rollbar extends IonicNativePlugin { init(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/safari-view-controller/index.ts b/src/@ionic-native/plugins/safari-view-controller/index.ts index 496d9ab88..4cd535ee7 100644 --- a/src/@ionic-native/plugins/safari-view-controller/index.ts +++ b/src/@ionic-native/plugins/safari-view-controller/index.ts @@ -64,7 +64,7 @@ export interface SafariViewControllerOptions { plugin: 'cordova-plugin-safariviewcontroller', pluginRef: 'SafariViewController', repo: 'https://github.com/EddyVerbruggen/cordova-plugin-safariviewcontroller', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class SafariViewController extends IonicNativePlugin { @@ -85,7 +85,7 @@ export class SafariViewController extends IonicNativePlugin { @Cordova({ successIndex: 1, errorIndex: 2, - observable: true + observable: true, }) show(options?: SafariViewControllerOptions): Observable { return; diff --git a/src/@ionic-native/plugins/screen-orientation/index.ts b/src/@ionic-native/plugins/screen-orientation/index.ts index 129a65970..316673e0b 100644 --- a/src/@ionic-native/plugins/screen-orientation/index.ts +++ b/src/@ionic-native/plugins/screen-orientation/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; /** @@ -60,7 +55,7 @@ import { Observable } from 'rxjs'; plugin: 'cordova-plugin-screen-orientation', pluginRef: 'screen.orientation', repo: 'https://github.com/apache/cordova-plugin-screen-orientation', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) @Injectable() export class ScreenOrientation extends IonicNativePlugin { @@ -74,7 +69,7 @@ export class ScreenOrientation extends IonicNativePlugin { LANDSCAPE_SECONDARY: 'landscape-secondary', PORTRAIT: 'portrait', LANDSCAPE: 'landscape', - ANY: 'any' + ANY: 'any', }; /** * Listen to orientation change event @@ -83,7 +78,7 @@ export class ScreenOrientation extends IonicNativePlugin { @Cordova({ eventObservable: true, event: 'orientationchange', - element: 'window' + element: 'window', }) onChange(): Observable { return; diff --git a/src/@ionic-native/plugins/screenshot/index.ts b/src/@ionic-native/plugins/screenshot/index.ts index 36ff4f0a7..4957322cd 100644 --- a/src/@ionic-native/plugins/screenshot/index.ts +++ b/src/@ionic-native/plugins/screenshot/index.ts @@ -26,11 +26,10 @@ declare const navigator: any; plugin: 'com.darktalker.cordova.screenshot', pluginRef: 'navigator.screenshot', repo: 'https://github.com/gitawego/cordova-screenshot', - platforms: ['Android', 'iOS', 'macOS'] + platforms: ['Android', 'iOS', 'macOS'], }) @Injectable() export class Screenshot extends IonicNativePlugin { - /** * Takes screenshot and saves the image * @@ -42,22 +41,20 @@ export class Screenshot extends IonicNativePlugin { * @returns {Promise} */ save(format?: string, quality?: number, filename?: string): Promise { - return getPromise( - (resolve, reject) => { - navigator.screenshot.save( - (error: any, result: any) => { - if (error) { - reject(error); - } else { - resolve(result); - } - }, - format, - quality, - filename - ); - } - ); + return getPromise((resolve, reject) => { + navigator.screenshot.save( + (error: any, result: any) => { + if (error) { + reject(error); + } else { + resolve(result); + } + }, + format, + quality, + filename + ); + }); } /** @@ -68,19 +65,14 @@ export class Screenshot extends IonicNativePlugin { * @returns {Promise} */ URI(quality?: number): Promise { - return getPromise( - (resolve, reject) => { - navigator.screenshot.URI( - (error: any, result: any) => { - if (error) { - reject(error); - } else { - resolve(result); - } - }, - quality - ); - } - ); + return getPromise((resolve, reject) => { + navigator.screenshot.URI((error: any, result: any) => { + if (error) { + reject(error); + } else { + resolve(result); + } + }, quality); + }); } } diff --git a/src/@ionic-native/plugins/secure-storage-echo/index.ts b/src/@ionic-native/plugins/secure-storage-echo/index.ts index bd1df612d..a3b0b96bd 100644 --- a/src/@ionic-native/plugins/secure-storage-echo/index.ts +++ b/src/@ionic-native/plugins/secure-storage-echo/index.ts @@ -36,7 +36,7 @@ export class SecureStorageEchoObject { * @returns {Promise} */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) get(key: string): Promise { return; @@ -49,7 +49,7 @@ export class SecureStorageEchoObject { * @returns {Promise} */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) set(key: string, value: string): Promise { return; @@ -61,7 +61,7 @@ export class SecureStorageEchoObject { * @returns {Promise} returns a promise that resolves with the key that was removed */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) remove(key: string): Promise { return; @@ -72,7 +72,7 @@ export class SecureStorageEchoObject { * @returns {Promise} returns a promise that resolves with array of keys storage */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) keys(): Promise { return; @@ -83,7 +83,7 @@ export class SecureStorageEchoObject { * @returns {Promise} */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) clear(): Promise { return; @@ -150,7 +150,7 @@ export class SecureStorageEchoObject { plugin: 'cordova-plugin-secure-storage-echo', pluginRef: 'cordova.plugins.SecureStorage', repo: 'https://github.com/mibrito707/cordova-plugin-secure-storage-echo', - platforms: ['Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class SecureStorageEcho extends IonicNativePlugin { @@ -162,12 +162,12 @@ export class SecureStorageEcho extends IonicNativePlugin { @CordovaCheck() create(store: string, options?: SecureStorageEchoOptions): Promise { return getPromise((res: Function, rej: Function) => { - const instance = new (SecureStorageEcho.getPlugin())( - () => res(new SecureStorageEchoObject(instance)), - () => rej(new SecureStorageEchoObject(instance)), - store, - options - ); - }); + const instance = new (SecureStorageEcho.getPlugin())( + () => res(new SecureStorageEchoObject(instance)), + () => rej(new SecureStorageEchoObject(instance)), + store, + options + ); + }); } } diff --git a/src/@ionic-native/plugins/secure-storage/index.ts b/src/@ionic-native/plugins/secure-storage/index.ts index 318337fd3..d73a8c8e2 100644 --- a/src/@ionic-native/plugins/secure-storage/index.ts +++ b/src/@ionic-native/plugins/secure-storage/index.ts @@ -13,7 +13,7 @@ export class SecureStorageObject { * @returns {Promise} */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) get(key: string): Promise { return; @@ -26,7 +26,7 @@ export class SecureStorageObject { * @returns {Promise} */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) set(key: string, value: string): Promise { return; @@ -38,7 +38,7 @@ export class SecureStorageObject { * @returns {Promise} returns a promise that resolves with the key that was removed */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) remove(key: string): Promise { return; @@ -49,7 +49,7 @@ export class SecureStorageObject { * @returns {Promise} returns a promise that resolves with array of keys storage */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) keys(): Promise { return; @@ -60,7 +60,7 @@ export class SecureStorageObject { * @returns {Promise} */ @CordovaInstance({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) clear(): Promise { return; @@ -127,7 +127,7 @@ export class SecureStorageObject { plugin: 'cordova-plugin-secure-storage-echo', pluginRef: 'cordova.plugins.SecureStorage', repo: 'https://github.com/mibrito707/cordova-plugin-secure-storage-echo', - platforms: ['Android', 'Browser', 'iOS', 'Windows'] + platforms: ['Android', 'Browser', 'iOS', 'Windows'], }) @Injectable() export class SecureStorage extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/sensors/index.ts b/src/@ionic-native/plugins/sensors/index.ts index 5f15a041a..0274de724 100644 --- a/src/@ionic-native/plugins/sensors/index.ts +++ b/src/@ionic-native/plugins/sensors/index.ts @@ -50,7 +50,6 @@ export const enum TYPE_SENSOR { }) @Injectable() export class Sensors extends IonicNativePlugin { - /** * This function enables the sensor * @param {string} TYPE_SENSOR Specify the sensor to enable @@ -78,5 +77,4 @@ export class Sensors extends IonicNativePlugin { getState(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/serial/index.ts b/src/@ionic-native/plugins/serial/index.ts index 3ba5197aa..8832d3580 100644 --- a/src/@ionic-native/plugins/serial/index.ts +++ b/src/@ionic-native/plugins/serial/index.ts @@ -54,7 +54,7 @@ export interface SerialOpenOptions { plugin: 'cordovarduino', pluginRef: 'serial', repo: 'https://github.com/xseignard/cordovarduino', - platforms: ['Android', 'Ubuntu'] + platforms: ['Android', 'Ubuntu'], }) @Injectable() export class Serial extends IonicNativePlugin { @@ -66,7 +66,7 @@ export class Serial extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) requestPermission(options?: SerialPermissionOptions): Promise { return; @@ -121,7 +121,7 @@ export class Serial extends IonicNativePlugin { * @returns {Observable} Observable returns an observable that you can subscribe to */ @Cordova({ - observable: true + observable: true, }) registerReadCallback(): Observable { return; diff --git a/src/@ionic-native/plugins/service-discovery/index.ts b/src/@ionic-native/plugins/service-discovery/index.ts index cecda97e1..6000f32c0 100644 --- a/src/@ionic-native/plugins/service-discovery/index.ts +++ b/src/@ionic-native/plugins/service-discovery/index.ts @@ -27,11 +27,10 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; plugin: 'cordova-plugin-discovery', pluginRef: 'serviceDiscovery', repo: 'https://github.com/scottdermott/cordova-plugin-discovery', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class ServiceDiscovery extends IonicNativePlugin { - /** * Finds and returns metadata about devices discovered on the network via SSDP / UPnP / DLNA * @param service {string} The service name to discover @@ -41,5 +40,4 @@ export class ServiceDiscovery extends IonicNativePlugin { getNetworkServices(service: string): Promise { return; } - } diff --git a/src/@ionic-native/plugins/shake/index.ts b/src/@ionic-native/plugins/shake/index.ts index 1c2b9ad1a..e4c4b49d0 100644 --- a/src/@ionic-native/plugins/shake/index.ts +++ b/src/@ionic-native/plugins/shake/index.ts @@ -24,7 +24,7 @@ import { Observable } from 'rxjs'; plugin: 'cordova-plugin-shake', pluginRef: 'shake', repo: 'https://github.com/leecrossley/cordova-plugin-shake', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class Shake extends IonicNativePlugin { @@ -37,7 +37,7 @@ export class Shake extends IonicNativePlugin { observable: true, clearFunction: 'stopWatch', successIndex: 0, - errorIndex: 2 + errorIndex: 2, }) startWatch(sensitivity?: number): Observable { return; diff --git a/src/@ionic-native/plugins/shop-checkout/index.ts b/src/@ionic-native/plugins/shop-checkout/index.ts index bff260dd9..25a10dc3d 100644 --- a/src/@ionic-native/plugins/shop-checkout/index.ts +++ b/src/@ionic-native/plugins/shop-checkout/index.ts @@ -27,7 +27,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; plugin: 'cordova-plugin-shop-checkout', pluginRef: 'shopCheckout', repo: 'https://github.com/tradedepot/cordova-shop-checkout', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class ShopCheckout extends IonicNativePlugin { @@ -61,7 +61,6 @@ export class ShopCheckout extends IonicNativePlugin { return; } - /** * @return {Promise} Returns a promise */ diff --git a/src/@ionic-native/plugins/sign-in-with-apple/index.ts b/src/@ionic-native/plugins/sign-in-with-apple/index.ts index 2c1fd871d..1d2552a03 100644 --- a/src/@ionic-native/plugins/sign-in-with-apple/index.ts +++ b/src/@ionic-native/plugins/sign-in-with-apple/index.ts @@ -157,11 +157,10 @@ export interface AppleSignInErrorResponse extends NSError { plugin: 'cordova-plugin-sign-in-with-apple', pluginRef: 'cordova.plugins.SignInWithApple', repo: 'https://github.com/twogate/cordova-plugin-sign-in-with-apple', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class SignInWithApple extends IonicNativePlugin { - /** * Starts the authorization flows named during controller initialization * @see https://developer.apple.com/documentation/authenticationservices/asauthorizationcontroller/3153047-performrequests @@ -173,5 +172,4 @@ export class SignInWithApple extends IonicNativePlugin { signin(options: ASAuthorizationAppleIDRequest = {}): Promise { return; } - } diff --git a/src/@ionic-native/plugins/sim/index.ts b/src/@ionic-native/plugins/sim/index.ts index abd5f3af2..56c7f61d4 100644 --- a/src/@ionic-native/plugins/sim/index.ts +++ b/src/@ionic-native/plugins/sim/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - /** * @name Sim * @description @@ -38,7 +37,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-sim', pluginRef: 'plugins.sim', repo: 'https://github.com/pbakondy/cordova-plugin-sim', - platforms: ['Android', 'iOS', 'Windows', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows', 'Windows Phone'], }) @Injectable() export class Sim extends IonicNativePlugin { @@ -56,7 +55,7 @@ export class Sim extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) hasReadPermission(): Promise { return; @@ -67,7 +66,7 @@ export class Sim extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) requestReadPermission(): Promise { return; diff --git a/src/@ionic-native/plugins/siri-shortcuts/index.ts b/src/@ionic-native/plugins/siri-shortcuts/index.ts index 50d04b140..c759caff5 100644 --- a/src/@ionic-native/plugins/siri-shortcuts/index.ts +++ b/src/@ionic-native/plugins/siri-shortcuts/index.ts @@ -82,7 +82,7 @@ export interface ActivatedShortcutOptions { plugin: 'cordova-plugin-siri-shortcuts', pluginRef: 'cordova.plugins.SiriShortcuts', repo: 'https://github.com/bartwesselink/cordova-plugin-siri-shortcuts', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class SiriShortcuts extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/smartlook/index.ts b/src/@ionic-native/plugins/smartlook/index.ts index 124b0d54e..a8ddc142a 100644 --- a/src/@ionic-native/plugins/smartlook/index.ts +++ b/src/@ionic-native/plugins/smartlook/index.ts @@ -196,11 +196,10 @@ export class SmartlookRenderingMode { plugin: 'https://github.com/smartlook/cordova-smartlook.git', pluginRef: 'cordova.plugins.SmartlookPlugin', repo: 'https://github.com/smartlook/cordova-smartlook.git', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Smartlook extends IonicNativePlugin { - /** * Setup and start Smartlook SDK recording. * @param config SmartlookSetupConfig object. diff --git a/src/@ionic-native/plugins/sms-retriever/index.ts b/src/@ionic-native/plugins/sms-retriever/index.ts index 8f26717f7..3d0fa5072 100644 --- a/src/@ionic-native/plugins/sms-retriever/index.ts +++ b/src/@ionic-native/plugins/sms-retriever/index.ts @@ -32,23 +32,23 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; repo: 'https://github.com/hanatharesh2712/ionic-native-sms-retriever-plugin-master', install: 'ionic cordova plugin add cordova-plugin-sms-retriever-manager --variable PLAY_SERVICES_VERSION="15.0.1"', installVariables: ['PLAY_SERVICES_VERSION'], - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class SmsRetriever extends IonicNativePlugin { - /** - * This function start wathching message arrive event and retrive message text. - * @return {Promise} Returns a promise that resolves when retrives SMS text or TIMEOUT after 5 min. - */ + /** + * This function start wathching message arrive event and retrive message text. + * @return {Promise} Returns a promise that resolves when retrives SMS text or TIMEOUT after 5 min. + */ @Cordova() startWatching(): Promise { return; } - /** - * This function is to get hash string of APP. - * @return {Promise} Returns a promise that resolves when successfully generate hash of APP. - */ + /** + * This function is to get hash string of APP. + * @return {Promise} Returns a promise that resolves when successfully generate hash of APP. + */ @Cordova() getAppHash(): Promise { return; diff --git a/src/@ionic-native/plugins/sms/index.ts b/src/@ionic-native/plugins/sms/index.ts index 757b8d381..56267661f 100644 --- a/src/@ionic-native/plugins/sms/index.ts +++ b/src/@ionic-native/plugins/sms/index.ts @@ -48,7 +48,7 @@ export interface SmsOptionsAndroid { plugin: 'cordova-sms-plugin', pluginRef: 'sms', repo: 'https://github.com/cordova-sms/cordova-sms-plugin', - platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'], }) @Injectable() export class SMS extends IonicNativePlugin { @@ -61,13 +61,9 @@ export class SMS extends IonicNativePlugin { */ @Cordova({ successIndex: 3, - errorIndex: 4 + errorIndex: 4, }) - send( - phoneNumber: string | string[], - message: string, - options?: SmsOptions - ): Promise { + send(phoneNumber: string | string[], message: string, options?: SmsOptions): Promise { return; } @@ -76,7 +72,7 @@ export class SMS extends IonicNativePlugin { * @return {Promise} returns a promise that resolves with a boolean that indicates if we have permission */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) hasPermission(): Promise { return; diff --git a/src/@ionic-native/plugins/social-sharing/index.ts b/src/@ionic-native/plugins/social-sharing/index.ts index f6c3b6d39..6368b45eb 100644 --- a/src/@ionic-native/plugins/social-sharing/index.ts +++ b/src/@ionic-native/plugins/social-sharing/index.ts @@ -36,7 +36,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-x-socialsharing', pluginRef: 'plugins.socialsharing', repo: 'https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin', - platforms: ['Android', 'Browser', 'iOS', 'Windows', 'Windows Phone'] + platforms: ['Android', 'Browser', 'iOS', 'Windows', 'Windows Phone'], }) @Injectable() export class SocialSharing extends IonicNativePlugin { @@ -50,14 +50,9 @@ export class SocialSharing extends IonicNativePlugin { */ @Cordova({ successIndex: 4, - errorIndex: 5 + errorIndex: 5, }) - share( - message?: string, - subject?: string, - file?: string | string[], - url?: string - ): Promise { + share(message?: string, subject?: string, file?: string | string[], url?: string): Promise { return; } @@ -67,7 +62,7 @@ export class SocialSharing extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) shareWithOptions(options: { message?: string; @@ -91,15 +86,9 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ successIndex: 5, errorIndex: 6, - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) - canShareVia( - appName: string, - message?: string, - subject?: string, - image?: string, - url?: string - ): Promise { + canShareVia(appName: string, message?: string, subject?: string, image?: string, url?: string): Promise { return; } @@ -113,7 +102,7 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ successIndex: 3, errorIndex: 4, - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) shareViaTwitter(message: string, image?: string, url?: string): Promise { return; @@ -129,13 +118,9 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ successIndex: 3, errorIndex: 4, - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) - shareViaFacebook( - message: string, - image?: string, - url?: string - ): Promise { + shareViaFacebook(message: string, image?: string, url?: string): Promise { return; } @@ -150,7 +135,7 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ successIndex: 4, errorIndex: 5, - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) shareViaFacebookWithPasteMessageHint( message: string, @@ -168,7 +153,7 @@ export class SocialSharing extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) shareViaInstagram(message: string, image: string): Promise { return; @@ -184,13 +169,9 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ successIndex: 3, errorIndex: 4, - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) - shareViaWhatsApp( - message: string, - image?: string, - url?: string - ): Promise { + shareViaWhatsApp(message: string, image?: string, url?: string): Promise { return; } @@ -205,14 +186,9 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ successIndex: 4, errorIndex: 5, - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) - shareViaWhatsAppToReceiver( - receiver: string, - message: string, - image?: string, - url?: string - ): Promise { + shareViaWhatsAppToReceiver(receiver: string, message: string, image?: string, url?: string): Promise { return; } @@ -223,7 +199,7 @@ export class SocialSharing extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) shareViaSMS(messge: string, phoneNumber: string): Promise { return; @@ -234,7 +210,7 @@ export class SocialSharing extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) canShareViaEmail(): Promise { return; @@ -253,7 +229,7 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Android'], successIndex: 6, - errorIndex: 7 + errorIndex: 7, }) shareViaEmail( message: string, @@ -278,15 +254,9 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ successIndex: 5, errorIndex: 6, - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) - shareVia( - appName: string, - message: string, - subject?: string, - image?: string, - url?: string - ): Promise { + shareVia(appName: string, message: string, subject?: string, image?: string, url?: string): Promise { return; } @@ -296,7 +266,7 @@ export class SocialSharing extends IonicNativePlugin { */ @Cordova({ sync: true, - platforms: ['iOS'] + platforms: ['iOS'], }) setIPadPopupCoordinates(targetBounds: string): void {} @@ -306,7 +276,7 @@ export class SocialSharing extends IonicNativePlugin { * @returns {Promise } */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) saveToPhotoAlbum(fileOrFileArray: string | string[]): Promise { return; diff --git a/src/@ionic-native/plugins/speech-recognition/index.ts b/src/@ionic-native/plugins/speech-recognition/index.ts index 71399f201..1c2de0574 100644 --- a/src/@ionic-native/plugins/speech-recognition/index.ts +++ b/src/@ionic-native/plugins/speech-recognition/index.ts @@ -104,7 +104,7 @@ export interface SpeechRecognitionListeningOptionsAndroid { plugin: 'cordova-plugin-speechrecognition', pluginRef: 'plugins.speechRecognition', repo: 'https://github.com/pbakondy/cordova-plugin-speechrecognition', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class SpeechRecognition extends IonicNativePlugin { @@ -123,11 +123,9 @@ export class SpeechRecognition extends IonicNativePlugin { */ @Cordova({ callbackOrder: 'reverse', - observable: true + observable: true, }) - startListening( - options?: SpeechRecognitionListeningOptions - ): Observable { + startListening(options?: SpeechRecognitionListeningOptions): Observable { return; } diff --git a/src/@ionic-native/plugins/speechkit/index.ts b/src/@ionic-native/plugins/speechkit/index.ts index 526af4c4b..b06ada25e 100644 --- a/src/@ionic-native/plugins/speechkit/index.ts +++ b/src/@ionic-native/plugins/speechkit/index.ts @@ -25,31 +25,27 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-nuance-speechkit', pluginRef: 'plugins.speechkit', repo: 'https://github.com/Shmarkus/cordova-plugin-nuance-speechkit', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class SpeechKit extends IonicNativePlugin { - /** * Speak text out loud in given language * @returns {Promise} */ @Cordova() - tts( - text: string, - language: string, - voice: string - ): Promise { return; } + tts(text: string, language: string, voice: string): Promise { + return; + } /** * Try to recognize what the user said * @returns {Promise} */ @Cordova({ - platforms: ['Android'] + platforms: ['Android'], }) - asr( - language: string - ): Promise { return; } - + asr(language: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/spinner-dialog/index.ts b/src/@ionic-native/plugins/spinner-dialog/index.ts index 0b8ac8a42..13c04bd9f 100644 --- a/src/@ionic-native/plugins/spinner-dialog/index.ts +++ b/src/@ionic-native/plugins/spinner-dialog/index.ts @@ -50,11 +50,10 @@ export interface SpinnerDialogIOSOptions { plugin: 'cordova-plugin-native-spinner', pluginRef: 'SpinnerDialog', repo: 'https://github.com/greybax/cordova-plugin-native-spinner', - platforms: ['Android', 'iOS', 'Windows Phone 8', 'Windows'] + platforms: ['Android', 'iOS', 'Windows Phone 8', 'Windows'], }) @Injectable() export class SpinnerDialog extends IonicNativePlugin { - /** * Shows the spinner dialog * @param title {string} Spinner title (shows on Android only) @@ -63,18 +62,15 @@ export class SpinnerDialog extends IonicNativePlugin { * @param iOSOptions {object} Options for iOS only */ @Cordova({ - sync: true + sync: true, }) - show(title?: string, message?: string, cancelCallback?: any, iOSOptions?: SpinnerDialogIOSOptions): void { - } + show(title?: string, message?: string, cancelCallback?: any, iOSOptions?: SpinnerDialogIOSOptions): void {} /** * Hides the spinner dialog if visible */ @Cordova({ - sync: true + sync: true, }) - hide(): void { - } - + hide(): void {} } diff --git a/src/@ionic-native/plugins/splash-screen/index.ts b/src/@ionic-native/plugins/splash-screen/index.ts index e9136013a..e9aa74b20 100644 --- a/src/@ionic-native/plugins/splash-screen/index.ts +++ b/src/@ionic-native/plugins/splash-screen/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - /** * @name Splash Screen * @description This plugin displays and hides a splash screen during application launch. The methods below allows showing and hiding the splashscreen after the app has loaded. @@ -23,27 +22,23 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-splashscreen', pluginRef: 'navigator.splashscreen', repo: 'https://github.com/apache/cordova-plugin-splashscreen', - platforms: ['Amazon Fire OS', 'Android', 'iOS', 'Windows'] + platforms: ['Amazon Fire OS', 'Android', 'iOS', 'Windows'], }) @Injectable() export class SplashScreen extends IonicNativePlugin { - /** * Shows the splashscreen */ @Cordova({ - sync: true + sync: true, }) - show(): void { - } + show(): void {} /** * Hides the splashscreen */ @Cordova({ - sync: true + sync: true, }) - hide(): void { - } - + hide(): void {} } diff --git a/src/@ionic-native/plugins/spotify-auth/index.ts b/src/@ionic-native/plugins/spotify-auth/index.ts index 716104876..f6241af54 100644 --- a/src/@ionic-native/plugins/spotify-auth/index.ts +++ b/src/@ionic-native/plugins/spotify-auth/index.ts @@ -94,7 +94,7 @@ export interface AuthorizationData { repo: 'https://github.com/Festify/cordova-spotify-oauth', install: 'ionic cordova plugin add cordova-spotify-oauth --variable LOCAL_STORAGE_KEY="SpotifyOAuthData"', installVariables: ['LOCAL_STORAGE_KEY'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class SpotifyAuth extends IonicNativePlugin { @@ -118,7 +118,7 @@ export class SpotifyAuth extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - sync: false + sync: false, }) authorize(cfg: Config): Promise { return; @@ -133,7 +133,7 @@ export class SpotifyAuth extends IonicNativePlugin { * @return {void} */ @Cordova({ - sync: true + sync: true, }) - forget(): void { } + forget(): void {} } diff --git a/src/@ionic-native/plugins/sqlite-db-copy/index.ts b/src/@ionic-native/plugins/sqlite-db-copy/index.ts index b912cce4b..80085f969 100644 --- a/src/@ionic-native/plugins/sqlite-db-copy/index.ts +++ b/src/@ionic-native/plugins/sqlite-db-copy/index.ts @@ -27,7 +27,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-dbcopy', pluginRef: 'window.plugins.sqlDB', repo: 'https://github.com/an-rahulpandey/cordova-plugin-dbcopy', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class SqliteDbCopy extends IonicNativePlugin { @@ -45,7 +45,7 @@ export class SqliteDbCopy extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) copy(dbname: string, location: number): Promise { return; @@ -58,7 +58,7 @@ export class SqliteDbCopy extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) checkDbOnStorage(dbname: string, source: string): Promise { return; @@ -79,14 +79,9 @@ export class SqliteDbCopy extends IonicNativePlugin { */ @Cordova({ successIndex: 4, - errorIndex: 5 + errorIndex: 5, }) - copyDbFromStorage( - dbname: string, - location: number, - source: string, - deleteolddb: boolean - ): Promise { + copyDbFromStorage(dbname: string, location: number, source: string, deleteolddb: boolean): Promise { return; } /** @@ -105,14 +100,9 @@ export class SqliteDbCopy extends IonicNativePlugin { */ @Cordova({ successIndex: 4, - errorIndex: 5 + errorIndex: 5, }) - copyDbToStorage( - dbname: string, - location: number, - destination: string, - overwrite: boolean - ): Promise { + copyDbToStorage(dbname: string, location: number, destination: string, overwrite: boolean): Promise { return; } /** @@ -129,7 +119,7 @@ export class SqliteDbCopy extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 3 + errorIndex: 3, }) remove(dbname: string, location: number): Promise { return; diff --git a/src/@ionic-native/plugins/sqlite-porter/index.ts b/src/@ionic-native/plugins/sqlite-porter/index.ts index 8a75a4974..683c8d3b7 100644 --- a/src/@ionic-native/plugins/sqlite-porter/index.ts +++ b/src/@ionic-native/plugins/sqlite-porter/index.ts @@ -43,11 +43,10 @@ import { Injectable } from '@angular/core'; plugin: 'uk.co.workingedge.cordova.plugin.sqliteporter', pluginRef: 'cordova.plugins.sqlitePorter', repo: 'https://github.com/dpa99c/cordova-sqlite-porter', - platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'iOS', 'Tizen', 'Windows', 'Windows Phone'] + platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'iOS', 'Tizen', 'Windows', 'Windows Phone'], }) @Injectable() 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. * @param db {Object} Database object @@ -57,7 +56,7 @@ export class SQLitePorter extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'successFn', - errorName: 'errorFn' + errorName: 'errorFn', }) importSqlToDb(db: any, sql: string): Promise { return; @@ -71,7 +70,7 @@ export class SQLitePorter extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'successFn', - errorName: 'errorFn' + errorName: 'errorFn', }) exportDbToSql(db: any): Promise { return; @@ -86,7 +85,7 @@ export class SQLitePorter extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'successFn', - errorName: 'errorFn' + errorName: 'errorFn', }) importJsonToDb(db: any, json: any): Promise { return; @@ -100,7 +99,7 @@ export class SQLitePorter extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'successFn', - errorName: 'errorFn' + errorName: 'errorFn', }) exportDbToJson(db: any): Promise { return; @@ -114,10 +113,9 @@ export class SQLitePorter extends IonicNativePlugin { @Cordova({ callbackStyle: 'object', successName: 'successFn', - errorName: 'errorFn' + errorName: 'errorFn', }) wipeDb(db: any): Promise { return; } - } diff --git a/src/@ionic-native/plugins/sqlite/index.ts b/src/@ionic-native/plugins/sqlite/index.ts index 5deba9eed..ef1a13734 100644 --- a/src/@ionic-native/plugins/sqlite/index.ts +++ b/src/@ionic-native/plugins/sqlite/index.ts @@ -5,7 +5,7 @@ import { CordovaInstance, InstanceProperty, IonicNativePlugin, - Plugin + Plugin, } from '@ionic-native/core'; declare const sqlitePlugin: any; @@ -37,12 +37,7 @@ export interface SQLiteDatabaseConfig { * @hidden */ export interface DbTransaction { - executeSql: ( - sql: any, - values?: any[], - success?: Function, - error?: Function - ) => void; + executeSql: (sql: any, values?: any[], success?: Function, error?: Function) => void; } /** @@ -69,7 +64,7 @@ export class SQLiteObject { @InstanceProperty() openDBs: any; @CordovaInstance({ - sync: true + sync: true, }) addTransaction(transaction: (tx: SQLiteTransaction) => void): void {} @@ -79,7 +74,7 @@ export class SQLiteObject { */ @CordovaInstance({ successIndex: 2, - errorIndex: 1 + errorIndex: 1, }) transaction(fn: (tx: DbTransaction) => void): Promise { return; @@ -95,7 +90,7 @@ export class SQLiteObject { } @CordovaInstance({ - sync: true + sync: true, }) startNextTransaction(): void {} @@ -134,7 +129,7 @@ export class SQLiteObject { } @CordovaInstance({ - sync: true + sync: true, }) abortallPendingTransactions(): void {} } @@ -182,7 +177,7 @@ export class SQLiteObject { pluginRef: 'sqlitePlugin', plugin: 'cordova-sqlite-storage', repo: 'https://github.com/litehelpers/Cordova-sqlite-storage', - platforms: ['Android', 'iOS', 'macOS', 'Windows'] + platforms: ['Android', 'iOS', 'macOS', 'Windows'], }) @Injectable() export class SQLite extends IonicNativePlugin { @@ -197,11 +192,7 @@ export class SQLite extends IonicNativePlugin { @CordovaCheck() create(config: SQLiteDatabaseConfig): Promise { return new Promise((resolve, reject) => { - sqlitePlugin.openDatabase( - config, - (db: any) => resolve(new SQLiteObject(db)), - reject - ); + sqlitePlugin.openDatabase(config, (db: any) => resolve(new SQLiteObject(db)), reject); }); } diff --git a/src/@ionic-native/plugins/ssh-connect/index.ts b/src/@ionic-native/plugins/ssh-connect/index.ts index 6146da701..ccb433a3d 100644 --- a/src/@ionic-native/plugins/ssh-connect/index.ts +++ b/src/@ionic-native/plugins/ssh-connect/index.ts @@ -35,11 +35,10 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; plugin: 'cordova-plugin-ssh-connect', pluginRef: 'cordova.plugins.sshConnect', repo: 'https://github.com/JosePerez27/cordova-plugin-ssh-connect', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class SSHConnect extends IonicNativePlugin { - /** * Establish a remote ssh connection * @param {user} user The remote host user diff --git a/src/@ionic-native/plugins/star-prnt/index.ts b/src/@ionic-native/plugins/star-prnt/index.ts index b065357f9..649741663 100644 --- a/src/@ionic-native/plugins/star-prnt/index.ts +++ b/src/@ionic-native/plugins/star-prnt/index.ts @@ -419,7 +419,7 @@ export enum Emulation { /** SM-S210i, SM-S220i, SM-S230i, SM-T300i/T300, SM-T400i */ EscPosMobile = 'EscPosMobile', /** SP700 */ - StarDotImpact = 'StarDotImpact' + StarDotImpact = 'StarDotImpact', } /** @@ -439,7 +439,7 @@ export enum Encoding { /** Traditional Chinese */ Big5 = 'Big5', /** UFT8 */ - UTF8 = 'UTF-8' + UTF8 = 'UTF-8', } /** @@ -484,7 +484,7 @@ export enum CodePageType { CP3847 = 'CP3847', CP3848 = 'CP3848', UTF8 = 'UTF8', - Blank = 'Blank' + Blank = 'Blank', } /** @@ -506,7 +506,7 @@ export enum InternationalType { LatinAmerica = 'LatinAmerica', Korea = 'Korea', Ireland = 'Ireland', - Legal = 'Legal' + Legal = 'Legal', } /** @@ -516,7 +516,7 @@ export enum FontStyleType { /** Font-A (12 x 24 dots) / Specify 7 x 9 font (half dots) */ A = 'A', /** Font-B (9 x 24 dots) / Specify 5 x 9 font (2P-1) */ - B = 'B' + B = 'B', } /** @@ -526,7 +526,7 @@ export enum CutPaperAction { FullCut = 'FullCut', FullCutWithFeed = 'FullCutWithFeed', PartialCut = 'PartialCut', - PartialCutWithFeed = 'PartialCutWithFeed' + PartialCutWithFeed = 'PartialCutWithFeed', } /** @@ -535,7 +535,7 @@ export enum CutPaperAction { export enum BlackMarkType { Valid = 'Valid', Invalid = 'Invalid', - ValidWithDetection = 'ValidWithDetection' + ValidWithDetection = 'ValidWithDetection', } /** @@ -545,7 +545,7 @@ export enum LogoSize { Normal = 'Normal', DoubleWidth = 'DoubleWidth', DoubleHeight = 'DoubleHeight', - DoubleWidthDoubleHeight = 'DoubleWidthDoubleHeight' + DoubleWidthDoubleHeight = 'DoubleWidthDoubleHeight', } /** @@ -554,7 +554,7 @@ export enum LogoSize { export enum AlignmentPosition { Left = 'Left', Center = 'Center', - Right = 'Right' + Right = 'Right', } /** @@ -569,7 +569,7 @@ export enum BarcodeSymbology { JAN13 = 'JAN13', NW7 = 'NW7', UPCA = 'UPCA', - UPCE = 'UPCE' + UPCE = 'UPCE', } /** @@ -584,7 +584,7 @@ export enum BarcodeWidth { Mode6 = 'Mode6', Mode7 = 'Mode7', Mode8 = 'Mode8', - Mode9 = 'Mode9' + Mode9 = 'Mode9', } /** @@ -592,7 +592,7 @@ export enum BarcodeWidth { */ export enum QrCodeModel { No1 = 'No1', - No2 = 'No2' + No2 = 'No2', } /** @@ -602,7 +602,7 @@ export enum QrCodeLevel { H = 'H', L = 'L', M = 'M', - Q = 'Q' + Q = 'Q', } /** @@ -612,7 +612,7 @@ export enum BitmapConverterRotation { Normal = 'Normal', Left90 = 'Left90', Right90 = 'Right90', - Rotate180 = 'Rotate180' + Rotate180 = 'Rotate180', } /** @@ -646,7 +646,7 @@ export interface CommandsArray extends Array {} plugin: 'cordova-plugin-starprnt', // npm package name, example: cordova-plugin-camera pluginRef: 'starprnt', // the variable reference to call the plugin, example: navigator.geolocation repo: 'https://github.com/auctifera-josed/starprnt', // the github repository URL for the plugin - platforms: ['Android', 'iOS'] // Array of platforms supported, example: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], // Array of platforms supported, example: ['Android', 'iOS'] }) @Injectable() export class StarPRNT extends IonicNativePlugin { @@ -660,7 +660,7 @@ export class StarPRNT extends IonicNativePlugin { StarGraphic: 'StarGraphic', EscPos: 'EscPos', EscPosMobile: 'EscPosMobile', - StarDotImpact: 'StarDotImpact' + StarDotImpact: 'StarDotImpact', }; /** @@ -673,7 +673,7 @@ export class StarPRNT extends IonicNativePlugin { Windows1251: 'Windows-1251', GB2312: 'GB2312', Big5: 'Big5', - UTF8: 'UTF-8' + UTF8: 'UTF-8', }; /** @@ -718,7 +718,7 @@ export class StarPRNT extends IonicNativePlugin { CP3847: 'CP3847', CP3848: 'CP3848', UTF8: 'UTF8', - Blank: 'Blank' + Blank: 'Blank', }; /** @@ -740,7 +740,7 @@ export class StarPRNT extends IonicNativePlugin { LatinAmerica: 'LatinAmerica', Korea: 'Korea', Ireland: 'Ireland', - Legal: 'Legal' + Legal: 'Legal', }; /** @@ -750,7 +750,7 @@ export class StarPRNT extends IonicNativePlugin { /** Font-A (12 x 24 dots) / Specify 7 x 9 font (half dots) */ A: 'A', /** Font-B (9 x 24 dots) / Specify 5 x 9 font (2P-1) */ - B: 'B' + B: 'B', }; /** @@ -760,7 +760,7 @@ export class StarPRNT extends IonicNativePlugin { FullCut: 'FullCut', FullCutWithFeed: 'FullCutWithFeed', PartialCut: 'PartialCut', - PartialCutWithFeed: 'PartialCutWithFeed' + PartialCutWithFeed: 'PartialCutWithFeed', }; /** @@ -769,7 +769,7 @@ export class StarPRNT extends IonicNativePlugin { BlackMarkType = { Valid: 'Valid', Invalid: 'Invalid', - ValidWithDetection: 'ValidWithDetection' + ValidWithDetection: 'ValidWithDetection', }; /** @@ -778,7 +778,7 @@ export class StarPRNT extends IonicNativePlugin { AlignmentPosition = { Left: 'Left', Center: 'Center', - Right: 'Right' + Right: 'Right', }; /** @@ -788,7 +788,7 @@ export class StarPRNT extends IonicNativePlugin { Normal: 'Normal', DoubleWidth: 'DoubleWidth', DoubleHeight: 'DoubleHeight', - DoubleWidthDoubleHeight: 'DoubleWidthDoubleHeight' + DoubleWidthDoubleHeight: 'DoubleWidthDoubleHeight', }; /** @@ -803,7 +803,7 @@ export class StarPRNT extends IonicNativePlugin { JAN13: 'JAN13', NW7: 'NW7', UPCA: 'UPCA', - UPCE: 'UPCE' + UPCE: 'UPCE', }; /** @@ -818,7 +818,7 @@ export class StarPRNT extends IonicNativePlugin { Mode6: 'Mode6', Mode7: 'Mode7', Mode8: 'Mode8', - Mode9: 'Mode9' + Mode9: 'Mode9', }; /** @@ -826,7 +826,7 @@ export class StarPRNT extends IonicNativePlugin { */ QrCodeModel = { No1: 'No1', - No2: 'No2' + No2: 'No2', }; /** @@ -836,7 +836,7 @@ export class StarPRNT extends IonicNativePlugin { H: 'H', L: 'L', M: 'M', - Q: 'Q' + Q: 'Q', }; /** @@ -846,7 +846,7 @@ export class StarPRNT extends IonicNativePlugin { Normal: 'Normal', Left90: 'Left90', Right90: 'Right90', - Rotate180: 'Rotate180' + Rotate180: 'Rotate180', }; /** @@ -878,11 +878,7 @@ export class StarPRNT extends IonicNativePlugin { * @return {Promise} Success! if printed correctly or error message string returned by the SDK. */ @Cordova() - printRawText( - port: string, - emulation: string, - printObj: PrintObj - ): Promise { + printRawText(port: string, emulation: string, printObj: PrintObj): Promise { return; } @@ -894,11 +890,7 @@ export class StarPRNT extends IonicNativePlugin { * @return {Promise} Success! if printed correctly or error message string returned by the SDK. */ @Cordova() - printRasterReceipt( - port: string, - emulation: string, - rasterObj: RasterObj - ): Promise { + printRasterReceipt(port: string, emulation: string, rasterObj: RasterObj): Promise { return; } @@ -910,11 +902,7 @@ export class StarPRNT extends IonicNativePlugin { * @return {Promise} Success! if printed correctly or error message string returned by the SDK. */ @Cordova() - printImage( - port: string, - emulation: string, - imageObj: ImageObj - ): Promise { + printImage(port: string, emulation: string, imageObj: ImageObj): Promise { return; } @@ -937,11 +925,7 @@ export class StarPRNT extends IonicNativePlugin { * @return {Promise} Success! if printed correctly or error message string returned by the SDK. */ @Cordova() - print( - port: string, - emulation: string, - commandsArray: CommandsArray - ): Promise { + print(port: string, emulation: string, commandsArray: CommandsArray): Promise { return; } @@ -953,13 +937,9 @@ export class StarPRNT extends IonicNativePlugin { */ @Cordova({ observable: true, - callbackStyle: 'node' + callbackStyle: 'node', }) - connect( - port: string, - emulation: string, - hasBarcodeReader: boolean - ): Observable { + connect(port: string, emulation: string, hasBarcodeReader: boolean): Observable { return; } @@ -969,7 +949,7 @@ export class StarPRNT extends IonicNativePlugin { */ @Cordova({ eventObservable: true, - event: 'starPrntData' + event: 'starPrntData', }) getStatus(): Observable { return; diff --git a/src/@ionic-native/plugins/status-bar/index.ts b/src/@ionic-native/plugins/status-bar/index.ts index a49edfdbb..92a81fafb 100644 --- a/src/@ionic-native/plugins/status-bar/index.ts +++ b/src/@ionic-native/plugins/status-bar/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Status Bar @@ -34,7 +29,7 @@ import { plugin: 'cordova-plugin-statusbar', pluginRef: 'StatusBar', repo: 'https://github.com/apache/cordova-plugin-statusbar', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) @Injectable() export class StatusBar extends IonicNativePlugin { @@ -51,7 +46,7 @@ export class StatusBar extends IonicNativePlugin { * @param {boolean} doesOverlay Whether the status bar overlays the main app view. */ @Cordova({ - sync: true + sync: true, }) overlaysWebView(doesOverlay: boolean) {} @@ -59,7 +54,7 @@ export class StatusBar extends IonicNativePlugin { * Use the default statusbar (dark text, for light backgrounds). */ @Cordova({ - sync: true + sync: true, }) styleDefault() {} @@ -67,7 +62,7 @@ export class StatusBar extends IonicNativePlugin { * Use the lightContent statusbar (light text, for dark backgrounds). */ @Cordova({ - sync: true + sync: true, }) styleLightContent() {} @@ -75,7 +70,7 @@ export class StatusBar extends IonicNativePlugin { * Use the blackTranslucent statusbar (light text, for dark backgrounds). */ @Cordova({ - sync: true + sync: true, }) styleBlackTranslucent() {} @@ -83,7 +78,7 @@ export class StatusBar extends IonicNativePlugin { * Use the blackOpaque statusbar (light text, for dark backgrounds). */ @Cordova({ - sync: true + sync: true, }) styleBlackOpaque() {} @@ -96,7 +91,7 @@ export class StatusBar extends IonicNativePlugin { * @param {string} colorName The name of the color (from above) */ @Cordova({ - sync: true + sync: true, }) backgroundColorByName(colorName: string) {} @@ -108,7 +103,7 @@ export class StatusBar extends IonicNativePlugin { * @param {string} hexString The hex value of the color. */ @Cordova({ - sync: true + sync: true, }) backgroundColorByHexString(hexString: string) {} @@ -116,7 +111,7 @@ export class StatusBar extends IonicNativePlugin { * Hide the StatusBar */ @Cordova({ - sync: true + sync: true, }) hide() {} @@ -124,7 +119,7 @@ export class StatusBar extends IonicNativePlugin { * Show the StatusBar */ @Cordova({ - sync: true + sync: true, }) show() {} } diff --git a/src/@ionic-native/plugins/stepcounter/index.ts b/src/@ionic-native/plugins/stepcounter/index.ts index 5a459eb02..d7079088a 100644 --- a/src/@ionic-native/plugins/stepcounter/index.ts +++ b/src/@ionic-native/plugins/stepcounter/index.ts @@ -29,11 +29,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-stepcounter', pluginRef: 'stepcounter', repo: 'https://github.com/ihadeed/cordova-plugin-stepcounter', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() 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 520907e20..d408b0767 100644 --- a/src/@ionic-native/plugins/streaming-media/index.ts +++ b/src/@ionic-native/plugins/streaming-media/index.ts @@ -77,7 +77,7 @@ export interface StreamingAudioOptions { plugin: 'cordova-plugin-streaming-media', pluginRef: 'plugins.streamingMedia', repo: 'https://github.com/nchutchind/cordova-plugin-streaming-media', - platforms: ['Amazon Fire OS', 'Android', 'iOS'] + platforms: ['Amazon Fire OS', 'Android', 'iOS'], }) @Injectable() export class StreamingMedia extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/stripe/index.ts b/src/@ionic-native/plugins/stripe/index.ts index c06f14638..7b2160b88 100644 --- a/src/@ionic-native/plugins/stripe/index.ts +++ b/src/@ionic-native/plugins/stripe/index.ts @@ -84,11 +84,11 @@ export interface StripeCardTokenRes { * Card Object. */ card: { - brand: string, - exp_month: number, - exp_year: number, - funding: string, - last4: string + brand: string; + exp_month: number; + exp_year: number; + funding: string; + last4: string; }; /** * Token Request Date Time. @@ -140,11 +140,10 @@ export interface StripeCardTokenRes { plugin: 'cordova-plugin-stripe', pluginRef: 'cordova.plugins.stripe', repo: 'https://github.com/zyramedia/cordova-plugin-stripe', - platforms: ['Android', 'Browser', 'iOS'] + platforms: ['Android', 'Browser', 'iOS'], }) @Injectable() export class Stripe extends IonicNativePlugin { - /** * Set publishable key * @param publishableKey {string} Publishable key @@ -215,5 +214,4 @@ export class Stripe extends IonicNativePlugin { getCardType(cardNumber: string): Promise { return; } - } diff --git a/src/@ionic-native/plugins/sum-up/index.ts b/src/@ionic-native/plugins/sum-up/index.ts index c87e5f2e2..e60234cc0 100644 --- a/src/@ionic-native/plugins/sum-up/index.ts +++ b/src/@ionic-native/plugins/sum-up/index.ts @@ -56,7 +56,6 @@ export interface SumUpPayment { * @hidden */ export class SumUpKeys { - // The generated accessToken, to automate the login process accessToken: string; @@ -124,10 +123,9 @@ export class SumUpKeys { plugin: 'cordova-sumup-plugin', pluginRef: 'window.SumUp', repo: 'https://github.com/mariusbackes/cordova-plugin-sumup', - install: - 'cordova plugin add cordova-sumup-plugin --variable SUMUP_API_KEY=INSERT_YOUR_KEY', + install: 'cordova plugin add cordova-sumup-plugin --variable SUMUP_API_KEY=INSERT_YOUR_KEY', installVariables: ['SUMUP_API_KEY'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class SumUp extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/taptic-engine/index.ts b/src/@ionic-native/plugins/taptic-engine/index.ts index 27db61111..50d43f39b 100644 --- a/src/@ionic-native/plugins/taptic-engine/index.ts +++ b/src/@ionic-native/plugins/taptic-engine/index.ts @@ -29,7 +29,7 @@ import { Injectable } from '@angular/core'; plugin: 'cordova-plugin-taptic-engine', pluginRef: 'TapticEngine', repo: 'https://github.com/EddyVerbruggen/cordova-plugin-taptic-engine', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class TapticEngine extends IonicNativePlugin { @@ -49,9 +49,7 @@ export class TapticEngine extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves on success and rejects on error */ @Cordova() - notification(options: { - type: 'success' | 'warning' | 'error'; - }): Promise { + notification(options: { type: 'success' | 'warning' | 'error' }): Promise { return; } diff --git a/src/@ionic-native/plugins/tealium-adidentifier/index.ts b/src/@ionic-native/plugins/tealium-adidentifier/index.ts index fe938c337..0ae0289fc 100644 --- a/src/@ionic-native/plugins/tealium-adidentifier/index.ts +++ b/src/@ionic-native/plugins/tealium-adidentifier/index.ts @@ -30,7 +30,7 @@ import { Injectable } from '@angular/core'; pluginRef: 'window.tealiumAdIdentifier', // the variable reference to call the plugin, example: navigator.geolocation repo: 'https://github.com/Tealium/cordova-plugin', // the github repository URL for the plugin platforms: ['Android', 'iOS'], // Array of platforms supported, example: ['Android', 'iOS'] - install: '' // OPTIONAL install command, in case the plugin requires variables + install: '', // OPTIONAL install command, in case the plugin requires variables }) @Injectable() export class TealiumAdIdentifier extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/tealium-installreferrer/index.ts b/src/@ionic-native/plugins/tealium-installreferrer/index.ts index 675a56e03..152b05708 100644 --- a/src/@ionic-native/plugins/tealium-installreferrer/index.ts +++ b/src/@ionic-native/plugins/tealium-installreferrer/index.ts @@ -30,7 +30,7 @@ import { Injectable } from '@angular/core'; pluginRef: 'window.tealiumInstallReferrer', // the variable reference to call the plugin, example: navigator.geolocation repo: 'https://github.com/Tealium/cordova-plugin', // the github repository URL for the plugin platforms: ['Android'], // Array of platforms supported, example: ['Android', 'iOS'] - install: '' // OPTIONAL install command, in case the plugin requires variables + install: '', // OPTIONAL install command, in case the plugin requires variables }) @Injectable() export class TealiumInstallReferrer extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/tealium/index.ts b/src/@ionic-native/plugins/tealium/index.ts index de7e4b2c8..768a0beee 100644 --- a/src/@ionic-native/plugins/tealium/index.ts +++ b/src/@ionic-native/plugins/tealium/index.ts @@ -76,7 +76,7 @@ export interface TealConfig { pluginRef: 'window.tealium', // the variable reference to call the plugin, example: navigator.geolocation repo: 'https://github.com/Tealium/cordova-plugin', // the github repository URL for the plugin platforms: ['Android', 'iOS'], // Array of platforms supported, example: ['Android', 'iOS'] - install: '' // OPTIONAL install command, in case the plugin requires variables + install: '', // OPTIONAL install command, in case the plugin requires variables }) @Injectable() export class Tealium extends IonicNativePlugin { @@ -121,11 +121,7 @@ export class Tealium extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - track( - eventType: string, - dataObject: any, - instanceName: string - ): Promise { + track(eventType: string, dataObject: any, instanceName: string): Promise { return; } @@ -137,11 +133,7 @@ export class Tealium extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - addPersistent( - keyName: string, - value: string | string[] | any, - instanceName: string - ): Promise { + addPersistent(keyName: string, value: string | string[] | any, instanceName: string): Promise { return; } @@ -153,11 +145,7 @@ export class Tealium extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - addVolatile( - keyName: string, - value: string | string[], - instanceName: string - ): Promise { + addVolatile(keyName: string, value: string | string[], instanceName: string): Promise { return; } @@ -191,11 +179,7 @@ export class Tealium extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - getPersistent( - keyName: string, - instanceName: string, - callback: any - ): Promise { + getPersistent(keyName: string, instanceName: string, callback: any): Promise { return; } /** @@ -206,11 +190,7 @@ export class Tealium extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - getVolatile( - keyName: string, - instanceName: string, - callback: any - ): Promise { + getVolatile(keyName: string, instanceName: string, callback: any): Promise { return; } @@ -222,11 +202,7 @@ export class Tealium extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - addRemoteCommand( - commandName: string, - instanceName: string, - callback: any - ): Promise { + addRemoteCommand(commandName: string, instanceName: string, callback: any): Promise { return; } diff --git a/src/@ionic-native/plugins/text-to-speech/index.ts b/src/@ionic-native/plugins/text-to-speech/index.ts index 09c76060e..41a6d4ea9 100644 --- a/src/@ionic-native/plugins/text-to-speech/index.ts +++ b/src/@ionic-native/plugins/text-to-speech/index.ts @@ -36,11 +36,10 @@ export interface TTSOptions { plugin: 'cordova-plugin-tts', pluginRef: 'TTS', repo: 'https://github.com/vilic/cordova-plugin-tts', - platforms: ['Android', 'iOS', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows Phone 8'], }) @Injectable() export class TextToSpeech extends IonicNativePlugin { - /** * This function speaks * @param textOrOptions {string | TTSOptions} Text to speak or TTSOptions @@ -48,7 +47,7 @@ export class TextToSpeech extends IonicNativePlugin { */ @Cordova({ successIndex: 1, - errorIndex: 2 + errorIndex: 2, }) speak(textOrOptions: string | TTSOptions): Promise { return; @@ -62,5 +61,4 @@ export class TextToSpeech extends IonicNativePlugin { stop(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/theme-detection/index.ts b/src/@ionic-native/plugins/theme-detection/index.ts index 746e4443c..5c24de486 100644 --- a/src/@ionic-native/plugins/theme-detection/index.ts +++ b/src/@ionic-native/plugins/theme-detection/index.ts @@ -44,11 +44,10 @@ export interface ThemeDetectionResponse { repo: 'https://github.com/mariusbackes/cordova-plugin-theme-detection', install: 'cordova plugin add cordova-plugin-theme-detection', installVariables: [], - platforms: ['iOS', 'Android'] + platforms: ['iOS', 'Android'], }) @Injectable() export class ThemeDetection extends IonicNativePlugin { - /** * * @return {Promise} @@ -68,5 +67,4 @@ export class ThemeDetection extends IonicNativePlugin { isDarkModeEnabled(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/themeable-browser/index.ts b/src/@ionic-native/plugins/themeable-browser/index.ts index 51130e54f..0bc01fba0 100644 --- a/src/@ionic-native/plugins/themeable-browser/index.ts +++ b/src/@ionic-native/plugins/themeable-browser/index.ts @@ -73,17 +73,9 @@ export interface ThemeableBrowserOptions { export class ThemeableBrowserObject { private _objectInstance: any; - constructor( - url: string, - target: string, - styleOptions: ThemeableBrowserOptions - ) { + constructor(url: string, target: string, styleOptions: ThemeableBrowserOptions) { try { - this._objectInstance = cordova.ThemeableBrowser.open( - url, - target, - styleOptions - ); + this._objectInstance = cordova.ThemeableBrowser.open(url, target, styleOptions); } catch (e) { if (typeof window !== 'undefined') { window.open(url); @@ -142,15 +134,8 @@ export class ThemeableBrowserObject { @InstanceCheck({ observable: true }) on(event: string): Observable { return new Observable(observer => { - this._objectInstance.addEventListener( - event, - observer.next.bind(observer) - ); - return () => - this._objectInstance.removeEventListener( - event, - observer.next.bind(observer) - ); + this._objectInstance.addEventListener(event, observer.next.bind(observer)); + return () => this._objectInstance.removeEventListener(event, observer.next.bind(observer)); }); } } @@ -254,8 +239,8 @@ export class ThemeableBrowserObject { 'iOS', 'Ubuntu', 'Windows', - 'Windows Phone' - ] + 'Windows Phone', + ], }) @Injectable() export class ThemeableBrowser extends IonicNativePlugin { @@ -266,11 +251,7 @@ export class ThemeableBrowser extends IonicNativePlugin { * @param styleOptions {ThemeableBrowserOptions} Themeable browser options * @returns {ThemeableBrowserObject} */ - create( - url: string, - target: string, - styleOptions: ThemeableBrowserOptions - ): ThemeableBrowserObject { + create(url: string, target: string, styleOptions: ThemeableBrowserOptions): ThemeableBrowserObject { return new ThemeableBrowserObject(url, target, styleOptions); } } diff --git a/src/@ionic-native/plugins/three-dee-touch/index.ts b/src/@ionic-native/plugins/three-dee-touch/index.ts index 0b3ce261f..3382d4fc2 100644 --- a/src/@ionic-native/plugins/three-dee-touch/index.ts +++ b/src/@ionic-native/plugins/three-dee-touch/index.ts @@ -124,7 +124,7 @@ export interface ThreeDeeTouchForceTouch { plugin: 'cordova-plugin-3dtouch', pluginRef: 'ThreeDeeTouch', repo: 'https://github.com/EddyVerbruggen/cordova-plugin-3dtouch', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class ThreeDeeTouch extends IonicNativePlugin { @@ -142,7 +142,7 @@ export class ThreeDeeTouch extends IonicNativePlugin { * @returns {Observable} Returns an observable that sends a `ThreeDeeTouchForceTouch` object */ @Cordova({ - observable: true + observable: true, }) watchForceTouches(): Observable { return; @@ -157,9 +157,9 @@ export class ThreeDeeTouch extends IonicNativePlugin { * @param {string} iconTemplate (optional) Can be used to provide your own icon */ @Cordova({ - sync: true + sync: true, }) - configureQuickActions(quickActions: ThreeDeeTouchQuickAction[]): void { } + configureQuickActions(quickActions: ThreeDeeTouchQuickAction[]): void {} /** * When a home icon is pressed, your app launches and this JS callback is invoked. @@ -175,7 +175,7 @@ export class ThreeDeeTouch extends IonicNativePlugin { * UIWebView and WKWebView (the webviews powering Cordova apps) don't allow the fancy new link preview feature of iOS9. */ @Cordova({ - sync: true + sync: true, }) enableLinkPreview(): void {} @@ -183,7 +183,7 @@ export class ThreeDeeTouch extends IonicNativePlugin { * Disabled the link preview feature, if enabled. */ @Cordova({ - sync: true + sync: true, }) disableLinkPreview(): void {} } diff --git a/src/@ionic-native/plugins/toast/index.ts b/src/@ionic-native/plugins/toast/index.ts index 8f08c6eee..cc5328843 100644 --- a/src/@ionic-native/plugins/toast/index.ts +++ b/src/@ionic-native/plugins/toast/index.ts @@ -65,7 +65,7 @@ export interface ToastOptions { plugin: 'cordova-plugin-x-toast', pluginRef: 'plugins.toast', repo: 'https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin', - platforms: ['Android', 'BlackBerry 10', 'iOS', 'Windows', 'Windows Phone 8'] + platforms: ['Android', 'BlackBerry 10', 'iOS', 'Windows', 'Windows Phone 8'], }) @Injectable() export class Toast extends IonicNativePlugin { @@ -79,7 +79,7 @@ export class Toast extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'hide' + clearFunction: 'hide', }) show(message: string, duration: string, position: string): Observable { return; @@ -107,7 +107,7 @@ export class Toast extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'hide' + clearFunction: 'hide', }) showWithOptions(options: ToastOptions): Observable { return; @@ -120,7 +120,7 @@ export class Toast extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'hide' + clearFunction: 'hide', }) showShortTop(message: string): Observable { return; @@ -133,7 +133,7 @@ export class Toast extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'hide' + clearFunction: 'hide', }) showShortCenter(message: string): Observable { return; @@ -146,7 +146,7 @@ export class Toast extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'hide' + clearFunction: 'hide', }) showShortBottom(message: string): Observable { return; @@ -159,7 +159,7 @@ export class Toast extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'hide' + clearFunction: 'hide', }) showLongTop(message: string): Observable { return; @@ -172,7 +172,7 @@ export class Toast extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'hide' + clearFunction: 'hide', }) showLongCenter(message: string): Observable { return; @@ -185,7 +185,7 @@ export class Toast extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'hide' + clearFunction: 'hide', }) showLongBottom(message: string): Observable { return; diff --git a/src/@ionic-native/plugins/touch-id/index.ts b/src/@ionic-native/plugins/touch-id/index.ts index a14a125e2..e73c03b19 100644 --- a/src/@ionic-native/plugins/touch-id/index.ts +++ b/src/@ionic-native/plugins/touch-id/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - /** * @name Touch ID * @description @@ -48,11 +47,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-touch-id', pluginRef: 'plugins.touchid', repo: 'https://github.com/EddyVerbruggen/cordova-plugin-touch-id', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class TouchID extends IonicNativePlugin { - /** * Checks Whether TouchID is available or not. * @@ -93,7 +91,10 @@ export class TouchID extends IonicNativePlugin { * @returns {Promise} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above). */ @Cordova() - verifyFingerprintWithCustomPasswordFallbackAndEnterPasswordLabel(message: string, enterPasswordLabel: string): Promise { + verifyFingerprintWithCustomPasswordFallbackAndEnterPasswordLabel( + message: string, + enterPasswordLabel: string + ): Promise { return; } @@ -106,5 +107,4 @@ export class TouchID extends IonicNativePlugin { didFingerprintDatabaseChange(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/twitter-connect/index.ts b/src/@ionic-native/plugins/twitter-connect/index.ts index bcecd64b0..8f8e46637 100644 --- a/src/@ionic-native/plugins/twitter-connect/index.ts +++ b/src/@ionic-native/plugins/twitter-connect/index.ts @@ -56,9 +56,10 @@ export interface TwitterConnectResponse { plugin: 'twitter-connect-plugin', pluginRef: 'TwitterConnect', repo: 'https://github.com/chroa/twitter-connect-plugin', - install: 'ionic cordova plugin add https://github.com/chroa/twitter-connect-plugin --variable FABRIC_KEY= --variable TWITTER_KEY= --variable TWITTER_SECRET=', + install: + 'ionic cordova plugin add https://github.com/chroa/twitter-connect-plugin --variable FABRIC_KEY= --variable TWITTER_KEY= --variable TWITTER_SECRET=', installVariables: ['FABRIC_KEY', 'TWITTER_KEY', 'TWITTER_SECRET'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class TwitterConnect extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/uid/index.ts b/src/@ionic-native/plugins/uid/index.ts index 17c78ee6b..8c7ac63d5 100644 --- a/src/@ionic-native/plugins/uid/index.ts +++ b/src/@ionic-native/plugins/uid/index.ts @@ -41,7 +41,7 @@ import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-uid', pluginRef: 'cordova.plugins.uid', repo: 'https://github.com/lionelhe/cordova-plugin-uid', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class Uid extends IonicNativePlugin { @@ -64,5 +64,4 @@ export class Uid extends IonicNativePlugin { /** Get the Media Access Control address (MAC). */ @CordovaProperty() MAC: string; - } diff --git a/src/@ionic-native/plugins/unique-device-id/index.ts b/src/@ionic-native/plugins/unique-device-id/index.ts index 252fd7926..a86fff83b 100644 --- a/src/@ionic-native/plugins/unique-device-id/index.ts +++ b/src/@ionic-native/plugins/unique-device-id/index.ts @@ -25,11 +25,10 @@ import { Injectable } from '@angular/core'; plugin: 'cordova-plugin-uniquedeviceid', pluginRef: 'window.plugins.uniqueDeviceID', repo: 'https://github.com/Paldom/UniqueDeviceID', - platforms: ['Android', 'iOS', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows Phone 8'], }) @Injectable() export class UniqueDeviceID extends IonicNativePlugin { - /** * Gets a unique, cross-install, app-specific device id. * @return {Promise} Returns a promise that resolves when something happens @@ -38,5 +37,4 @@ export class UniqueDeviceID extends IonicNativePlugin { get(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/unvired-cordova-sdk/index.ts b/src/@ionic-native/plugins/unvired-cordova-sdk/index.ts index 39060951c..e923ec0ed 100644 --- a/src/@ionic-native/plugins/unvired-cordova-sdk/index.ts +++ b/src/@ionic-native/plugins/unvired-cordova-sdk/index.ts @@ -8,7 +8,7 @@ import { Observable } from 'rxjs'; export enum OutboxLockStatus { LockApplied = 0, DataBeingSent = 1, - DataNotInQueue = 2 + DataNotInQueue = 2, } /** @@ -17,7 +17,7 @@ export enum OutboxLockStatus { export enum LogLevel { important = 7, error = 8, - debug = 9 + debug = 9, } /** @@ -32,7 +32,7 @@ export enum AuthenticateAndActivateResultType { /** * This value indicates that UMP was unable to validate users credentials. */ - auth_activation_error = 3 + auth_activation_error = 3, } export enum AuthenticateLocalResultType { @@ -43,7 +43,7 @@ export enum AuthenticateLocalResultType { /** * This value indicates that UnviredCordovaSDK was unable to validate users credentials. You can retrieve the error information from AuthenticateLocalResult. */ - login_error = 5 + login_error = 5, } export enum LoginListenerType { @@ -64,12 +64,12 @@ export enum LoginListenerType { /** * If there are multiple accounts active & no account is specified in the login(), then this value is returned indicating that a current account needs to be specified for the login(). */ - app_requires_current_account = 6 + app_requires_current_account = 6, /** * This value indicates app can proceed with demo mode. */ - login_demo = 7 + login_demo = 7, } export enum LoginType { @@ -117,7 +117,7 @@ export enum LoginType { /** * TODO: */ - custom = 'CUSTOM' + custom = 'CUSTOM', } export enum ResultType { @@ -128,7 +128,7 @@ export enum ResultType { /** * This value indicates an error. */ - error + error, } export enum RequestType { @@ -155,7 +155,7 @@ export enum RequestType { /** * Set this type if the data exchange with UMP is 1:0. This handles the case where no server response is expected. */ - REQ = 'REQ' + REQ = 'REQ', } export enum NotificationListenerType { @@ -202,7 +202,7 @@ export enum NotificationListenerType { /** * Notify attachment downloads completed */ - attachmentDownloadCompleted = 10 + attachmentDownloadCompleted = 10, } export enum AttachmentItemStatus { @@ -214,7 +214,7 @@ export enum AttachmentItemStatus { UPLOADED, ERROR_IN_UPLOAD, MARKED_FOR_DELETE, - EXTERNAL + EXTERNAL, } export class Settings { @@ -375,18 +375,16 @@ export class LoginParameters { */ demoData: string; - /** * Set 'true' if the application supports demo mode otherwise set 'false'. */ demoModeRequired: boolean; - - /* - * Set this value to true to persist web application database. By default, this value is false. - */ + /* + * Set this value to true to persist web application database. By default, this value is false. + */ persistWebDb: boolean; - /* + /* * Optional jwt token parameter. Please check with your Unvired Admin for this value. * For Example: * loginParameters.jwtOptions = {"app": "myapp"}; @@ -542,11 +540,10 @@ export class AuthenticateLocalResult extends UnviredResult { repo: 'https://github.com/unvired/cordova-plugin-unvired-sdk/', // the github repository URL for the plugin install: 'ionic cordova plugin add @ionic-native/unvired-cordova-sdk', // OPTIONAL install command, in case the plugin requires variables installVariables: [], // OPTIONAL the plugin requires variables - platforms: ['iOS', 'Android', 'Windows', 'Browser'] // Array of platforms supported, example: ['Android', 'iOS'] + platforms: ['iOS', 'Android', 'Windows', 'Browser'], // Array of platforms supported, example: ['Android', 'iOS'] }) @Injectable() export class UnviredCordovaSDK extends IonicNativePlugin { - loginParameters: LoginParameters; /** @@ -1120,7 +1117,13 @@ export class UnviredCordovaSDK extends IonicNativePlugin { * @param autoSave This defines whether to save the response to database. */ @Cordova() - syncForeground(reqype: RequestType, header: any, customData: any, paFunction: string, autoSave: boolean): Promise { + syncForeground( + reqype: RequestType, + header: any, + customData: any, + paFunction: string, + autoSave: boolean + ): Promise { return; } @@ -1149,7 +1152,15 @@ export class UnviredCordovaSDK extends IonicNativePlugin { * @param bypassAttachment Set this flag to false if you want to upload attachments first and then make the server call. */ @Cordova() - syncBackground(reqype: RequestType, header: any, customData: any, paFunction: string, beName: string, belid: string, bypassAttachment: boolean): Promise { + syncBackground( + reqype: RequestType, + header: any, + customData: any, + paFunction: string, + beName: string, + belid: string, + bypassAttachment: boolean + ): Promise { return; } @@ -1162,7 +1173,7 @@ export class UnviredCordovaSDK extends IonicNativePlugin { * 5. Idle // there is no synchronisation activity going on. */ @Cordova({ - observable: true + observable: true, }) getSynchronizationState(): Observable { return; @@ -1225,7 +1236,7 @@ export class UnviredCordovaSDK extends IonicNativePlugin { * Only one class can subscribe to notifications are any point of time. */ @Cordova({ - observable: true + observable: true, }) registerNotifListener(): Observable { return; diff --git a/src/@ionic-native/plugins/uptime/index.ts b/src/@ionic-native/plugins/uptime/index.ts index 4b97637c5..2fedcfa7b 100644 --- a/src/@ionic-native/plugins/uptime/index.ts +++ b/src/@ionic-native/plugins/uptime/index.ts @@ -25,7 +25,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-uptime', pluginRef: 'Uptime', repo: 'https://github.com/s1lviu/cordova-plugin-uptime', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Uptime extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/urbanairship/index.ts b/src/@ionic-native/plugins/urbanairship/index.ts index d395c3595..faa2a7ce1 100644 --- a/src/@ionic-native/plugins/urbanairship/index.ts +++ b/src/@ionic-native/plugins/urbanairship/index.ts @@ -16,7 +16,7 @@ export enum NotificationType { none = 0, badge = 1, sound = 2, - alert = 4 + alert = 4, } /** @@ -28,7 +28,7 @@ export enum PresentationOptions { none = 0, badge = 1, sound = 2, - alert = 4 + alert = 4, } /** @@ -58,11 +58,10 @@ export enum PresentationOptions { pluginRef: 'window.UAirship', repo: 'https://www.npmjs.com/package/urbanairship-cordova', install: 'ionic cordova plugin add urbanairship-cordova', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class UrbanAirShip extends IonicNativePlugin { - /** * Re-attaches document event listeners in this webview */ @@ -744,7 +743,6 @@ export class UrbanAirShip extends IonicNativePlugin { return; } - // Android only /** @@ -815,5 +813,4 @@ export class UrbanAirShip extends IonicNativePlugin { addCustomEvent(event: object): Promise { return; } - } diff --git a/src/@ionic-native/plugins/usabilla-cordova-sdk/index.ts b/src/@ionic-native/plugins/usabilla-cordova-sdk/index.ts index bed3321a8..6856df601 100644 --- a/src/@ionic-native/plugins/usabilla-cordova-sdk/index.ts +++ b/src/@ionic-native/plugins/usabilla-cordova-sdk/index.ts @@ -18,7 +18,6 @@ export interface UbResult { sent: boolean; } - /** * @name Usabilla * @description @@ -55,12 +54,10 @@ export interface UbResult { plugin: 'usabilla-cordova', pluginRef: 'Usabilla', repo: 'https://github.com/usabilla/usabilla-u4a-cordova', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) - @Injectable() export class Usabilla extends IonicNativePlugin { - /** * Initializes Usabilla sdk for capturing feedbacks. * @@ -70,7 +67,7 @@ export class Usabilla extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 1 + errorIndex: 1, }) initialize(appId: string, customVars: any): Promise { return; @@ -84,7 +81,7 @@ export class Usabilla extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 1 + errorIndex: 1, }) loadFeedbackForm(formId: string): Promise { return; @@ -98,7 +95,7 @@ export class Usabilla extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 1 + errorIndex: 1, }) loadFeedbackFormWithCurrentViewScreenshot(formId: string): Promise { return; @@ -112,7 +109,7 @@ export class Usabilla extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 1 + errorIndex: 1, }) sendEvent(eventId: string): Promise { return; @@ -126,7 +123,7 @@ export class Usabilla extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 1 + errorIndex: 1, }) resetCampaignData(): Promise { return; @@ -140,7 +137,7 @@ export class Usabilla extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 1 + errorIndex: 1, }) dismiss(): Promise { return; @@ -153,7 +150,7 @@ export class Usabilla extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 1 + errorIndex: 1, }) getDefaultDataMasks(): Promise { return; @@ -168,10 +165,9 @@ export class Usabilla extends IonicNativePlugin { */ @Cordova({ successIndex: 0, - errorIndex: 1 + errorIndex: 1, }) setDataMasking(masks: any, maskCharacter: string): Promise { return; } - } diff --git a/src/@ionic-native/plugins/user-agent/index.ts b/src/@ionic-native/plugins/user-agent/index.ts index c5f940541..01eda1aa3 100644 --- a/src/@ionic-native/plugins/user-agent/index.ts +++ b/src/@ionic-native/plugins/user-agent/index.ts @@ -37,11 +37,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-useragent', pluginRef: 'UserAgent', repo: 'https://github.com/danielsogl/cordova-plugin-useragent', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class UserAgent extends IonicNativePlugin { - /** * Changes the current user-agent to the one sent by argument. * @param userAgent {string} User-Agent @@ -69,5 +68,4 @@ export class UserAgent extends IonicNativePlugin { reset(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/vibes/index.ts b/src/@ionic-native/plugins/vibes/index.ts index cb075e595..7d290c28c 100644 --- a/src/@ionic-native/plugins/vibes/index.ts +++ b/src/@ionic-native/plugins/vibes/index.ts @@ -50,16 +50,13 @@ export interface PersonResponse { plugin: 'vibes-cordova', pluginRef: 'Vibes', repo: 'https://github.com/vibes/vibes-cordova.git', - install: 'ionic cordova plugin add vibes-cordova --variable VIBES_APP_ID=MY_APP_ID --variable VIBES_API_URL=MY_ENVIRONMENT_URL', - installVariables: [ - 'VIBES_APP_ID', - 'VIBES_API_URL' - ], - platforms: ['Android', 'iOS'] + install: + 'ionic cordova plugin add vibes-cordova --variable VIBES_APP_ID=MY_APP_ID --variable VIBES_API_URL=MY_ENVIRONMENT_URL', + installVariables: ['VIBES_APP_ID', 'VIBES_API_URL'], + platforms: ['Android', 'iOS'], }) @Injectable() export class Vibes extends IonicNativePlugin { - /** * Register device * @return {Promise} @@ -128,7 +125,7 @@ export class Vibes extends IonicNativePlugin { * @return {Observable} */ @Cordova({ - observable: true + observable: true, }) onNotificationOpened(): Observable { return; diff --git a/src/@ionic-native/plugins/vibration/index.ts b/src/@ionic-native/plugins/vibration/index.ts index f739e7db6..2ae7ccd1d 100644 --- a/src/@ionic-native/plugins/vibration/index.ts +++ b/src/@ionic-native/plugins/vibration/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - /** * @name Vibration * @description Vibrates the device @@ -33,18 +32,16 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-vibration', pluginRef: 'navigator', repo: 'https://github.com/apache/cordova-plugin-vibration', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'], }) @Injectable() export class Vibration extends IonicNativePlugin { - /** * Vibrates the device for given amount of time. * @param time {number|number[]} Milliseconds to vibrate the device. If passed an array of numbers, it will define a vibration pattern. Pass 0 to stop any vibration immediately. */ @Cordova({ - sync: true + sync: true, }) - vibrate(time: number | number[]) { } - + vibrate(time: number | number[]) {} } diff --git a/src/@ionic-native/plugins/video-capture-plus/index.ts b/src/@ionic-native/plugins/video-capture-plus/index.ts index 40b50e810..1cedcd522 100644 --- a/src/@ionic-native/plugins/video-capture-plus/index.ts +++ b/src/@ionic-native/plugins/video-capture-plus/index.ts @@ -30,10 +30,7 @@ export interface MediaFile { * @param {Function} successCallback * @param {Function} [errorCallback] */ - getFormatData( - successCallback: (data: MediaFileData) => any, - errorCallback?: (err: any) => any - ): any; + getFormatData(successCallback: (data: MediaFileData) => any, errorCallback?: (err: any) => any): any; } export interface MediaFileData { @@ -135,7 +132,7 @@ export interface VideoCapturePlusOptions { plugin: 'cordova-plugin-video-capture-plus', pluginRef: 'window.plugins.videocaptureplus', repo: 'https://github.com/danielsogl/cordova-plugin-video-capture-plus', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class VideoCapturePlus extends IonicNativePlugin { @@ -145,7 +142,7 @@ export class VideoCapturePlus extends IonicNativePlugin { * @return {Promise} */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) captureVideo(options?: VideoCapturePlusOptions): Promise { return; diff --git a/src/@ionic-native/plugins/video-editor/index.ts b/src/@ionic-native/plugins/video-editor/index.ts index d87652bbe..3979fcd00 100644 --- a/src/@ionic-native/plugins/video-editor/index.ts +++ b/src/@ionic-native/plugins/video-editor/index.ts @@ -143,20 +143,20 @@ export interface VideoInfo { plugin: 'cordova-plugin-video-editor', pluginRef: 'VideoEditor', repo: 'https://github.com/jbavari/cordova-plugin-video-editor', - platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows', 'Windows Phone 8'], }) @Injectable() export class VideoEditor extends IonicNativePlugin { OptimizeForNetworkUse = { NO: 0, - YES: 1 + YES: 1, }; OutputFileType = { M4V: 0, MPEG4: 1, M4A: 2, - QUICK_TIME: 3 + QUICK_TIME: 3, }; /** @@ -165,7 +165,7 @@ export class VideoEditor extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves to the path of the transcoded video */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) transcodeVideo(options: TranscodeOptions): Promise { return; @@ -178,7 +178,7 @@ export class VideoEditor extends IonicNativePlugin { */ @Cordova({ callbackOrder: 'reverse', - platforms: ['iOS'] + platforms: ['iOS'], }) trim(options: TrimOptions): Promise { return; @@ -190,7 +190,7 @@ export class VideoEditor extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves to the path to the jpeg image on the device */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) createThumbnail(options: CreateThumbnailOptions): Promise { return; @@ -202,7 +202,7 @@ export class VideoEditor extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves to an object containing info on the video */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) getVideoInfo(options: GetVideoInfoOptions): Promise { return; diff --git a/src/@ionic-native/plugins/video-player/index.ts b/src/@ionic-native/plugins/video-player/index.ts index a223a3485..c880976c0 100644 --- a/src/@ionic-native/plugins/video-player/index.ts +++ b/src/@ionic-native/plugins/video-player/index.ts @@ -48,7 +48,7 @@ export interface VideoOptions { plugin: 'https://github.com/moust/cordova-plugin-videoplayer.git', pluginRef: 'VideoPlayer', repo: 'https://github.com/moust/cordova-plugin-videoplayer', - platforms: ['Android'] + platforms: ['Android'], }) @Injectable() export class VideoPlayer extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/web-intent/index.ts b/src/@ionic-native/plugins/web-intent/index.ts index b11338b9c..63acd7f78 100644 --- a/src/@ionic-native/plugins/web-intent/index.ts +++ b/src/@ionic-native/plugins/web-intent/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; export interface IntentClipItem { @@ -72,9 +67,8 @@ export interface IntentOptions { pluginName: 'WebIntent', plugin: 'com-darryncampbell-cordova-plugin-intent', pluginRef: 'plugins.intentShim', - repo: - 'https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent', - platforms: ['Android'] + repo: 'https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent', + platforms: ['Android'], }) @Injectable() export class WebIntent extends IonicNativePlugin { @@ -216,7 +210,7 @@ export class WebIntent extends IonicNativePlugin { * @returns {Observable} */ @Cordova({ - observable: true + observable: true, }) onIntent(): Observable { return; @@ -248,7 +242,7 @@ export class WebIntent extends IonicNativePlugin { * @returns {Observable} */ @Cordova({ - observable: true + observable: true, }) registerBroadcastReceiver(filters: RegisterBroadcastReceiverOptions): Observable { return; diff --git a/src/@ionic-native/plugins/web-server/index.ts b/src/@ionic-native/plugins/web-server/index.ts index fb52492ef..4e4bcf64e 100644 --- a/src/@ionic-native/plugins/web-server/index.ts +++ b/src/@ionic-native/plugins/web-server/index.ts @@ -6,7 +6,7 @@ export interface Response { status: number; body?: string; path?: string; - headers: { [key: string]: string}; + headers: { [key: string]: string }; } export interface Request { @@ -60,11 +60,10 @@ export interface Request { plugin: 'cordova-plugin-webserver', pluginRef: 'window.webserver', repo: 'https://github.com/bykof/cordova-plugin-webserver.git', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class WebServer extends IonicNativePlugin { - /** * This method will start your webserver. * @param port {number} Port number (default to 8080) @@ -91,7 +90,7 @@ export class WebServer extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse', observable: true, - clearFunction: 'stop' + clearFunction: 'stop', }) onRequest(): Observable { return; @@ -107,5 +106,4 @@ export class WebServer extends IonicNativePlugin { sendResponse(requestId: string, responseObject: Response): Promise { return; } - } diff --git a/src/@ionic-native/plugins/web-socket-server/index.ts b/src/@ionic-native/plugins/web-socket-server/index.ts index 139890d02..ba0b56ba1 100644 --- a/src/@ionic-native/plugins/web-socket-server/index.ts +++ b/src/@ionic-native/plugins/web-socket-server/index.ts @@ -105,11 +105,10 @@ export interface HttpFields { plugin: 'cordova-plugin-websocket-server', pluginRef: 'cordova.plugins.wsserver', repo: 'https://github.com/becvert/cordova-plugin-websocket-server', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class WebSocketServer extends IonicNativePlugin { - /** * Return this device's interfaces * @return {Promise} @@ -127,7 +126,7 @@ export class WebSocketServer extends IonicNativePlugin { */ @Cordova({ observable: true, - clearFunction: 'stop' + clearFunction: 'stop', }) start(port: number, options: WebSocketOptions): Observable { return; @@ -135,10 +134,7 @@ export class WebSocketServer extends IonicNativePlugin { private onFunctionToObservable(fnName: string) { return new Observable(observer => { - const id = window.cordova.plugins.wsserver[fnName]( - observer.next.bind(observer), - observer.error.bind(observer) - ); + const id = window.cordova.plugins.wsserver[fnName](observer.next.bind(observer), observer.error.bind(observer)); return () => window.cordova.plugins.wsserver.removeCallback(id); }); diff --git a/src/@ionic-native/plugins/webengage/index.ts b/src/@ionic-native/plugins/webengage/index.ts index 9064dd4ff..88191f66f 100644 --- a/src/@ionic-native/plugins/webengage/index.ts +++ b/src/@ionic-native/plugins/webengage/index.ts @@ -23,7 +23,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-webengage', pluginRef: 'webengage', repo: 'https://github.com/WebEngage/cordova-plugin', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Webengage extends IonicNativePlugin { @@ -77,7 +77,7 @@ export class Webengage extends IonicNativePlugin { @Plugin({ pluginName: 'Webengage', plugin: 'cordova-plugin-webengage', - pluginRef: 'webengage.user' + pluginRef: 'webengage.user', }) @Injectable() export class WebengageUser extends IonicNativePlugin { @@ -118,7 +118,7 @@ export class WebengageUser extends IonicNativePlugin { @Plugin({ pluginName: 'Webengage', plugin: 'cordova-plugin-webengage', - pluginRef: 'webengage.push' + pluginRef: 'webengage.push', }) @Injectable() export class WebengagePush extends IonicNativePlugin { @@ -150,7 +150,7 @@ export class WebengagePush extends IonicNativePlugin { @Plugin({ pluginName: 'Webengage', plugin: 'cordova-plugin-webengage', - pluginRef: 'webengage.notification' + pluginRef: 'webengage.notification', }) @Injectable() export class WebengageNotification extends IonicNativePlugin { diff --git a/src/@ionic-native/plugins/wechat/index.ts b/src/@ionic-native/plugins/wechat/index.ts index 97f37bcfb..2b3c341d7 100644 --- a/src/@ionic-native/plugins/wechat/index.ts +++ b/src/@ionic-native/plugins/wechat/index.ts @@ -29,7 +29,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; repo: 'https://github.com/xu-li/cordova-plugin-wechat.git', install: 'cordova plugin add cordova-plugin-wechat --variable wechatappid=YOUR_WECHAT_APPID', installVariables: ['wechatappid'], - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Wechat extends IonicNativePlugin { @@ -51,7 +51,7 @@ export class Wechat extends IonicNativePlugin { Mini: { RELEASE: 0; // 正式版 - TEST: 1, // 测试版 + TEST: 1; // 测试版 PREVIEW: 2; // 体验版 }; diff --git a/src/@ionic-native/plugins/wheel-selector/index.ts b/src/@ionic-native/plugins/wheel-selector/index.ts index c24a9c496..ec704120c 100644 --- a/src/@ionic-native/plugins/wheel-selector/index.ts +++ b/src/@ionic-native/plugins/wheel-selector/index.ts @@ -177,12 +177,10 @@ export interface WheelSelectorData { plugin: 'cordova-wheel-selector-plugin', pluginRef: 'SelectorCordovaPlugin', repo: 'https://github.com/jasonmamy/cordova-wheel-selector-plugin', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) - @Injectable() export class WheelSelector extends IonicNativePlugin { - /** * Shows the wheel selector * @param {WheelSelectorOptions} options Options for the wheel selector @@ -198,7 +196,7 @@ export class WheelSelector extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) hideSelector(): Promise { return; diff --git a/src/@ionic-native/plugins/wifi-wizard-2/index.ts b/src/@ionic-native/plugins/wifi-wizard-2/index.ts index 9ee03d267..5fd9a9870 100644 --- a/src/@ionic-native/plugins/wifi-wizard-2/index.ts +++ b/src/@ionic-native/plugins/wifi-wizard-2/index.ts @@ -433,11 +433,10 @@ export interface WifiScanOptions extends WifiScanResultsOptions { plugin: 'cordova-plugin-wifiwizard2', pluginRef: 'WifiWizard2', repo: 'https://github.com/tripflex/WifiWizard2', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class WifiWizard2 extends IonicNativePlugin { - /** * Connect to network on iOS device * @param ssid @@ -446,7 +445,7 @@ export class WifiWizard2 extends IonicNativePlugin { */ @Cordova({ otherPromise: true, - platforms: ['iOS'] + platforms: ['iOS'], }) iOSConnectNetwork(ssid: string, ssidPassword: string): Promise { return; @@ -459,7 +458,7 @@ export class WifiWizard2 extends IonicNativePlugin { */ @Cordova({ otherPromise: true, - platforms: ['iOS'] + platforms: ['iOS'], }) iOSDisconnectNetwork(ssid: string): Promise { return; @@ -471,7 +470,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) add(wifiConfig: WifiConfig): Promise { return; @@ -483,7 +482,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) remove(ssid: string | number): Promise { return; @@ -502,7 +501,7 @@ export class WifiWizard2 extends IonicNativePlugin { */ @Cordova({ otherPromise: true, - platforms: ['Android'] + platforms: ['Android'], }) connect(ssid: string | number, bindAll?: boolean, password?: string, algorithm?: string): Promise { return; @@ -519,7 +518,7 @@ export class WifiWizard2 extends IonicNativePlugin { */ @Cordova({ otherPromise: true, - platforms: ['Android'] + platforms: ['Android'], }) disconnect(ssid: string | number): Promise { return; @@ -534,7 +533,7 @@ export class WifiWizard2 extends IonicNativePlugin { */ @Cordova({ otherPromise: true, - platforms: ['Android'] + platforms: ['Android'], }) enable(ssid: string | number, bindAll?: boolean, waitForConnection?: boolean): Promise { return; @@ -547,7 +546,7 @@ export class WifiWizard2 extends IonicNativePlugin { */ @Cordova({ otherPromise: true, - platforms: ['Android'] + platforms: ['Android'], }) disable(ssid: string | number): Promise { return; @@ -559,7 +558,7 @@ export class WifiWizard2 extends IonicNativePlugin { */ @Cordova({ otherPromise: true, - platforms: ['Android'] + platforms: ['Android'], }) reassociate(): Promise { return; @@ -571,7 +570,7 @@ export class WifiWizard2 extends IonicNativePlugin { */ @Cordova({ otherPromise: true, - platforms: ['Android'] + platforms: ['Android'], }) reconnect(): Promise { return; @@ -582,7 +581,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) listNetworks(): Promise { return; @@ -594,7 +593,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) scan(options?: WifiScanOptions): Promise { return; @@ -605,7 +604,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) startScan(): Promise { return; @@ -617,7 +616,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) getScanResults(options: WifiScanResultsOptions): Promise { return; @@ -628,7 +627,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) isWifiEnabled(): Promise { return; @@ -641,7 +640,7 @@ export class WifiWizard2 extends IonicNativePlugin { */ @Cordova({ otherPromise: true, - platforms: ['Android'] + platforms: ['Android'], }) setWifiEnabled(enabled: boolean): Promise { return; @@ -653,7 +652,7 @@ export class WifiWizard2 extends IonicNativePlugin { */ @Cordova({ otherPromise: true, - platforms: ['Android'] + platforms: ['Android'], }) enableWifi(): Promise { return; @@ -665,7 +664,7 @@ export class WifiWizard2 extends IonicNativePlugin { */ @Cordova({ otherPromise: true, - platforms: ['Android'] + platforms: ['Android'], }) disableWifi(): Promise { return; @@ -676,7 +675,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) resetBindAll(): Promise { return; @@ -687,7 +686,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) setBindAll(): Promise { return; @@ -698,7 +697,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) getWifiRouterIP(): Promise { return; @@ -709,7 +708,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) getWifiIP(): Promise { return; @@ -722,7 +721,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) getWifiIPInfo(): Promise { return; @@ -734,7 +733,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) getSSIDNetworkID(ssid: string | number): Promise { return; @@ -745,7 +744,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) getConnectedNetworkID(): Promise { return; @@ -756,7 +755,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) getConnectedSSID(): Promise { return; @@ -767,7 +766,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) getConnectedBSSID(): Promise { return; @@ -778,7 +777,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) isConnectedToInternet(): Promise { return; @@ -789,7 +788,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) canPingWifiRouter(): Promise { return; @@ -800,7 +799,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) canConnectToRouter(): Promise { return; @@ -811,7 +810,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) canConnectToInternet(): Promise { return; @@ -826,7 +825,7 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ - otherPromise: true + otherPromise: true, }) requestPermission(): Promise { return; @@ -841,7 +840,12 @@ export class WifiWizard2 extends IonicNativePlugin { * @returns {WifiConfig|boolean} */ @CordovaFunctionOverride() - formatWifiConfig(ssid: string | number, password: string, algorithm: string, isHiddenSSID: boolean): WifiConfig | boolean { + formatWifiConfig( + ssid: string | number, + password: string, + algorithm: string, + isHiddenSSID: boolean + ): WifiConfig | boolean { return; } diff --git a/src/@ionic-native/plugins/wonderpush/index.ts b/src/@ionic-native/plugins/wonderpush/index.ts index dfa7ecd63..04c9ddc8d 100644 --- a/src/@ionic-native/plugins/wonderpush/index.ts +++ b/src/@ionic-native/plugins/wonderpush/index.ts @@ -44,10 +44,9 @@ class NestedObject { }); } return getPromise((res, rej) => { - userPreferences[functionName].apply(userPreferences, [ ...args, res]); + userPreferences[functionName].apply(userPreferences, [...args, res]); }); } - } export class UserPreferencesMethods extends NestedObject { @@ -212,13 +211,13 @@ export class UserPreferencesMethods extends NestedObject { plugin: 'wonderpush-cordova-sdk', pluginRef: 'WonderPush', repo: 'https://github.com/wonderpush/wonderpush-cordova-sdk', - install: 'ionic cordova plugin add wonderpush-cordova-sdk --variable CLIENT_ID=YOUR_CLIENT_ID --variable CLIENT_SECRET=YOUR_CLIENT_SECRET ', + install: + 'ionic cordova plugin add wonderpush-cordova-sdk --variable CLIENT_ID=YOUR_CLIENT_ID --variable CLIENT_SECRET=YOUR_CLIENT_SECRET ', installVariables: ['CLIENT_ID', 'CLIENT_SECRET'], platforms: ['Android', 'iOS'], }) @Injectable() export class WonderPush extends IonicNativePlugin { - /** * Sets the user id, used to identify a single identity across multiple devices, * and to correctly identify multiple users on a single device. @@ -285,7 +284,7 @@ export class WonderPush extends IonicNativePlugin { * @returns {Promise} A promise with the user ID or null */ @Cordova() - getUserId(): Promise { + getUserId(): Promise { return; } @@ -487,7 +486,7 @@ export class WonderPush extends IonicNativePlugin { * @returns {Promise<{[p: string]: any}>} */ @Cordova() - getProperties(): Promise<{[key: string]: any}> { + getProperties(): Promise<{ [key: string]: any }> { return; } @@ -500,7 +499,7 @@ export class WonderPush extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - putProperties(properties: {[key: string]: any}): Promise { + putProperties(properties: { [key: string]: any }): Promise { return; } diff --git a/src/@ionic-native/plugins/youtube-video-player/index.ts b/src/@ionic-native/plugins/youtube-video-player/index.ts index a7d1d7e5e..cd2936767 100644 --- a/src/@ionic-native/plugins/youtube-video-player/index.ts +++ b/src/@ionic-native/plugins/youtube-video-player/index.ts @@ -30,17 +30,14 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-youtube-video-player', pluginRef: 'YoutubeVideoPlayer', repo: 'https://github.com/ihadeed/CordovaYoutubeVideoPlayer', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class YoutubeVideoPlayer extends IonicNativePlugin { - /** * Plays a YouTube video * @param videoId {string} Video ID */ @Cordova({ sync: true }) - openVideo(videoId: string): void { - } - + openVideo(videoId: string): void {} } diff --git a/src/@ionic-native/plugins/zbar/index.ts b/src/@ionic-native/plugins/zbar/index.ts index bddb50252..18fae1435 100644 --- a/src/@ionic-native/plugins/zbar/index.ts +++ b/src/@ionic-native/plugins/zbar/index.ts @@ -73,11 +73,10 @@ export interface ZBarOptions { plugin: 'cordova-plugin-cszbar', pluginRef: 'cloudSky.zBar', repo: 'https://github.com/tjwoon/csZBar', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class ZBar extends IonicNativePlugin { - /** * Open the scanner * @param options { ZBarOptions } Scan options @@ -87,5 +86,4 @@ export class ZBar extends IonicNativePlugin { scan(options: ZBarOptions): Promise { return; } - } diff --git a/src/@ionic-native/plugins/zeroconf/index.ts b/src/@ionic-native/plugins/zeroconf/index.ts index ae02006b1..b4618ae48 100644 --- a/src/@ionic-native/plugins/zeroconf/index.ts +++ b/src/@ionic-native/plugins/zeroconf/index.ts @@ -56,7 +56,7 @@ export interface ZeroconfResult { plugin: 'cordova-plugin-zeroconf', pluginRef: 'cordova.plugins.zeroconf', repo: 'https://github.com/becvert/cordova-plugin-zeroconf', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Zeroconf extends IonicNativePlugin { @@ -79,13 +79,7 @@ export class Zeroconf extends IonicNativePlugin { * @return {Promise} Returns a Promise that resolves with the registered service. */ @Cordova() - register( - type: string, - domain: string, - name: string, - port: number, - txtRecord: any - ): Promise { + register(type: string, domain: string, name: string, port: number, txtRecord: any): Promise { return; } @@ -119,7 +113,7 @@ export class Zeroconf extends IonicNativePlugin { @Cordova({ observable: true, clearFunction: 'unwatch', - clearWithArgs: true + clearWithArgs: true, }) watch(type: string, domain: string): Observable { return; diff --git a/src/@ionic-native/plugins/zip/index.ts b/src/@ionic-native/plugins/zip/index.ts index d0a7dff4f..cc63b5cd9 100644 --- a/src/@ionic-native/plugins/zip/index.ts +++ b/src/@ionic-native/plugins/zip/index.ts @@ -27,11 +27,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-zip', pluginRef: 'zip', repo: 'https://github.com/MobileChromeApps/cordova-plugin-zip', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Zip extends IonicNativePlugin { - /** * Extracts files from a ZIP archive * @param sourceZip {string} Source ZIP file @@ -41,10 +40,9 @@ export class Zip extends IonicNativePlugin { */ @Cordova({ successIndex: 2, - errorIndex: 4 + errorIndex: 4, }) unzip(sourceZip: string, destUrl: string, onProgress?: Function): Promise { return; } - } diff --git a/src/@ionic-native/plugins/zoom/index.ts b/src/@ionic-native/plugins/zoom/index.ts index 136e6bfcc..6b9defcaa 100755 --- a/src/@ionic-native/plugins/zoom/index.ts +++ b/src/@ionic-native/plugins/zoom/index.ts @@ -82,11 +82,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova.plugin.zoom', // npm package name, example: cordova-plugin-camera pluginRef: 'cordova.plugins.Zoom', // the variable reference to call the plugin, example: navigator.geolocation repo: 'https://github.com/zoom/zoom-sdk-ionic', // the github repository URL for the plugin - platforms: ['Android', 'iOS'] // Array of platforms supported, example: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], // Array of platforms supported, example: ['Android', 'iOS'] }) @Injectable() export class Zoom extends IonicNativePlugin { - /** * Initialize Zoom SDK. * @param appKey Zoom SDK app key. @@ -94,7 +93,9 @@ export class Zoom extends IonicNativePlugin { * @return {Promise} */ @Cordova() - initialize(appKey: string, appSecret: string): Promise { return; } + initialize(appKey: string, appSecret: string): Promise { + return; + } /** * Log user in with Zoom username and password. @@ -103,21 +104,27 @@ export class Zoom extends IonicNativePlugin { * @return {Promise} */ @Cordova() - login(username: string, password: string): Promise { return; } + login(username: string, password: string): Promise { + return; + } /** * Log user out. * @return {Promise} true if logout success / false if failed. */ @Cordova() - logout(): Promise { return; } + logout(): Promise { + return; + } /** * Check whether the user is logged in. * @return {Promise} true if is logged in / false if not. */ @Cordova() - isLoggedIn(): Promise { return; } + isLoggedIn(): Promise { + return; + } /** * Join a meeting for logged in user. @@ -127,7 +134,9 @@ export class Zoom extends IonicNativePlugin { * @return {Promise} */ @Cordova() - joinMeeting(meetingNo: string, meetingPassword: string, displayName: string, options: any): Promise { return; } + joinMeeting(meetingNo: string, meetingPassword: string, displayName: string, options: any): Promise { + return; + } /** * Start a meeting for non-login user. @@ -140,7 +149,16 @@ export class Zoom extends IonicNativePlugin { * @return {Promise} */ @Cordova() - startMeetingWithZAK(meetingNo: string, displayName: string, zoomToken: string, zoomAccessToken: string, userId: string, options: any): Promise { return; } + startMeetingWithZAK( + meetingNo: string, + displayName: string, + zoomToken: string, + zoomAccessToken: string, + userId: string, + options: any + ): Promise { + return; + } /** * Start a meeting for logged in user. @@ -149,7 +167,9 @@ export class Zoom extends IonicNativePlugin { * @return {Promise} */ @Cordova() - startMeeting(meetingNo: string, options: any): Promise { return; } + startMeeting(meetingNo: string, options: any): Promise { + return; + } /** * Start an instant meeting for logged in user. @@ -157,7 +177,9 @@ export class Zoom extends IonicNativePlugin { * @return {Promise} */ @Cordova() - startInstantMeeting(options: any): Promise { return; } + startInstantMeeting(options: any): Promise { + return; + } /** * Set language. @@ -165,6 +187,7 @@ export class Zoom extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setLocale(languageTag: string): Promise { return; } - + setLocale(languageTag: string): Promise { + return; + } }