From 8179805ad92c057c857ce9af292fa8e89c7df045 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:07:09 +0100 Subject: [PATCH 01/22] docs(camera): remove unsupported platforms (#2220) --- src/@ionic-native/plugins/camera/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/camera/index.ts b/src/@ionic-native/plugins/camera/index.ts index ac789d5dc..5afb20219 100644 --- a/src/@ionic-native/plugins/camera/index.ts +++ b/src/@ionic-native/plugins/camera/index.ts @@ -161,7 +161,7 @@ export enum Direction { plugin: 'cordova-plugin-camera', pluginRef: 'navigator.camera', repo: 'https://github.com/apache/cordova-plugin-camera', - platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone 8'] + platforms: ['Android', 'Browser', 'iOS', 'Windows'] }) @Injectable() export class Camera extends IonicNativePlugin { From c0c044bf892c748d9b912109122c2c82ed25e0c5 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:07:26 +0100 Subject: [PATCH 02/22] docs(battery-status): remove unsupported platforms (#2218) --- src/@ionic-native/plugins/battery-status/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/battery-status/index.ts b/src/@ionic-native/plugins/battery-status/index.ts index 339503b69..d3999a49e 100644 --- a/src/@ionic-native/plugins/battery-status/index.ts +++ b/src/@ionic-native/plugins/battery-status/index.ts @@ -49,7 +49,7 @@ export interface BatteryStatusResponse { plugin: 'cordova-plugin-battery-status', pluginRef: 'navigator.battery', repo: 'https://github.com/apache/cordova-plugin-battery-status', - platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows'] + platforms: ['iOS', 'Android', 'Windows', 'Browser'] }) @Injectable() export class BatteryStatus extends IonicNativePlugin { From f43a657fdd8e99964b92f9ca20b8dfae230fbc14 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:07:39 +0100 Subject: [PATCH 03/22] docs(contacts): remove unsupported platforms (#2221) --- src/@ionic-native/plugins/contacts/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/contacts/index.ts b/src/@ionic-native/plugins/contacts/index.ts index f3e7f5d64..7fdb1562a 100644 --- a/src/@ionic-native/plugins/contacts/index.ts +++ b/src/@ionic-native/plugins/contacts/index.ts @@ -294,7 +294,7 @@ export class ContactFindOptions implements IContactFindOptions { plugin: 'cordova-plugin-contacts', pluginRef: 'navigator.contacts', repo: 'https://github.com/apache/cordova-plugin-contacts', - platforms: ['Android', 'BlackBerry 10', 'Firefox OS', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows'] }) @Injectable() export class Contacts extends IonicNativePlugin { From 35f6c15ad48183066ce493ada99bfab1e49092d3 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:07:48 +0100 Subject: [PATCH 04/22] docs(device): remove unsupported platforms (#2222) * docs(device): remove unsupported platforms * Update index.ts --- src/@ionic-native/plugins/device/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/device/index.ts b/src/@ionic-native/plugins/device/index.ts index 4a5caa2e5..8f2b4cd6a 100644 --- a/src/@ionic-native/plugins/device/index.ts +++ b/src/@ionic-native/plugins/device/index.ts @@ -24,7 +24,7 @@ declare const window: any; plugin: 'cordova-plugin-device', pluginRef: 'device', repo: 'https://github.com/apache/cordova-plugin-device', - platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'macOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows'] }) @Injectable() export class Device extends IonicNativePlugin { From ac0015b91d8f066eb9bb07279e14d6083ec6129b Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:08:09 +0100 Subject: [PATCH 05/22] docs(dialogs): remove unsupported platforms (#2223) --- src/@ionic-native/plugins/dialogs/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/dialogs/index.ts b/src/@ionic-native/plugins/dialogs/index.ts index 4c59e779d..65710e890 100644 --- a/src/@ionic-native/plugins/dialogs/index.ts +++ b/src/@ionic-native/plugins/dialogs/index.ts @@ -46,7 +46,7 @@ export interface DialogsPromptCallback { plugin: 'cordova-plugin-dialogs', pluginRef: 'navigator.notification', repo: 'https://github.com/apache/cordova-plugin-dialogs', - platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'] }) @Injectable() export class Dialogs extends IonicNativePlugin { From 6f7cdf6214d378633825e409560b2047d03b0735 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:08:40 +0100 Subject: [PATCH 06/22] docs(file): remove unsupported platforms (#2224) --- src/@ionic-native/plugins/file/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/file/index.ts b/src/@ionic-native/plugins/file/index.ts index 4436fcb6c..f6c7f06dc 100644 --- a/src/@ionic-native/plugins/file/index.ts +++ b/src/@ionic-native/plugins/file/index.ts @@ -620,7 +620,7 @@ declare const window: Window; plugin: 'cordova-plugin-file', pluginRef: 'cordova.file', repo: 'https://github.com/apache/cordova-plugin-file', - platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'macOS', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: ['Android', 'Browser', 'iOS', 'macOS', 'Windows'] }) @Injectable() export class File extends IonicNativePlugin { From 5e77ed9317d9ac53b4cb3f9137ff072e753533b0 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:08:54 +0100 Subject: [PATCH 07/22] docs(geolocation): remove unsupported platforms (#2225) * docs(geolocation): remove unsupported platforms * Update index.ts --- src/@ionic-native/plugins/geolocation/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/geolocation/index.ts b/src/@ionic-native/plugins/geolocation/index.ts index 52e8f52d2..7eded999a 100644 --- a/src/@ionic-native/plugins/geolocation/index.ts +++ b/src/@ionic-native/plugins/geolocation/index.ts @@ -155,7 +155,7 @@ export interface GeolocationOptions { repo: 'https://github.com/apache/cordova-plugin-geolocation', install: 'ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you"', installVariables: ['GEOLOCATION_USAGE_DESCRIPTION'], - platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'] }) @Injectable() export class Geolocation extends IonicNativePlugin { From d256916621b4e48172018e9a1685edfb28503683 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:09:04 +0100 Subject: [PATCH 08/22] docs(globalization): remove unsupported platforms (#2226) * docs(globalization): remove unsupported platforms * Update index.ts --- src/@ionic-native/plugins/globalization/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/globalization/index.ts b/src/@ionic-native/plugins/globalization/index.ts index 29763d129..6ba8e97e3 100644 --- a/src/@ionic-native/plugins/globalization/index.ts +++ b/src/@ionic-native/plugins/globalization/index.ts @@ -26,7 +26,7 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; plugin: 'cordova-plugin-globalization', pluginRef: 'navigator.globalization', repo: 'https://github.com/apache/cordova-plugin-globalization', - platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'] }) @Injectable() export class Globalization extends IonicNativePlugin { From ecc46bacf19695b25ec9dbc5ce012eb652a4cca5 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:09:17 +0100 Subject: [PATCH 09/22] docs(in-app-browser): remove unsupported platforms (#2227) --- src/@ionic-native/plugins/in-app-browser/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/in-app-browser/index.ts b/src/@ionic-native/plugins/in-app-browser/index.ts index 98c70b389..d4e0a1bfc 100644 --- a/src/@ionic-native/plugins/in-app-browser/index.ts +++ b/src/@ionic-native/plugins/in-app-browser/index.ts @@ -181,7 +181,7 @@ export class InAppBrowserObject { plugin: 'cordova-plugin-inappbrowser', pluginRef: 'cordova.InAppBrowser', repo: 'https://github.com/apache/cordova-plugin-inappbrowser', - platforms: ['AmazonFire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'macOS', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: ['AmazonFire OS', 'Android', 'Browser', 'iOS', 'macOS', 'Windows'] }) @Injectable() export class InAppBrowser extends IonicNativePlugin { From e77bce67db95e2cb7820d06702bfdeb93542928c Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:09:26 +0100 Subject: [PATCH 10/22] docs(media): remove unsupported platforms (#2228) --- src/@ionic-native/plugins/media/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/media/index.ts b/src/@ionic-native/plugins/media/index.ts index 4cfbfc3b6..d0036b17e 100644 --- a/src/@ionic-native/plugins/media/index.ts +++ b/src/@ionic-native/plugins/media/index.ts @@ -284,7 +284,7 @@ export type MediaErrorCallback = (error: MediaError) => void; repo: 'https://github.com/apache/cordova-plugin-media', plugin: 'cordova-plugin-media', pluginRef: 'Media', - platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: ['Android', 'Browser', 'iOS', 'Windows'] }) @Injectable() export class Media extends IonicNativePlugin { From eb6aee2d693615620a4f3d8c5055077babcaa274 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:09:34 +0100 Subject: [PATCH 11/22] docs(media-capture): remove unsupported platforms (#2229) --- src/@ionic-native/plugins/media-capture/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/media-capture/index.ts b/src/@ionic-native/plugins/media-capture/index.ts index 580e155c4..f1c5c0d19 100644 --- a/src/@ionic-native/plugins/media-capture/index.ts +++ b/src/@ionic-native/plugins/media-capture/index.ts @@ -147,7 +147,7 @@ export interface ConfigurationData { plugin: 'cordova-plugin-media-capture', pluginRef: 'navigator.device.capture', repo: 'https://github.com/apache/cordova-plugin-media-capture', - platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: ['Android', 'Browser', 'iOS', 'Windows'] }) @Injectable() export class MediaCapture extends IonicNativePlugin { From 292a9c3722926a7a7d8bd42ca31f357f11280be4 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:09:42 +0100 Subject: [PATCH 12/22] docs(network-information): remove unsupported platforms (#2230) --- src/@ionic-native/plugins/network/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/network/index.ts b/src/@ionic-native/plugins/network/index.ts index 3249a3d36..3148bcd8c 100644 --- a/src/@ionic-native/plugins/network/index.ts +++ b/src/@ionic-native/plugins/network/index.ts @@ -53,7 +53,7 @@ declare const navigator: any; plugin: 'cordova-plugin-network-information', pluginRef: 'navigator.connection', repo: 'https://github.com/apache/cordova-plugin-network-information', - platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'] }) @Injectable() export class Network extends IonicNativePlugin { From aa54444e332c3baeeff86cd48b0c1f08738c0c22 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:09:52 +0100 Subject: [PATCH 13/22] docs(splashscreen): remove unsupported platforms (#2231) --- src/@ionic-native/plugins/splash-screen/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/splash-screen/index.ts b/src/@ionic-native/plugins/splash-screen/index.ts index 94a2d18f5..eb71f91e3 100644 --- a/src/@ionic-native/plugins/splash-screen/index.ts +++ b/src/@ionic-native/plugins/splash-screen/index.ts @@ -23,7 +23,7 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; plugin: 'cordova-plugin-splashscreen', pluginRef: 'navigator.splashscreen', repo: 'https://github.com/apache/cordova-plugin-splashscreen', - platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: ['Amazon Fire OS', 'Android', 'iOS', 'Windows'] }) @Injectable() export class SplashScreen extends IonicNativePlugin { From a82b2903d6f9e78c0fb1188a2e194c5f27c25096 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:10:00 +0100 Subject: [PATCH 14/22] docs(statusbar): remove unsupported platforms (#2232) --- src/@ionic-native/plugins/status-bar/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/status-bar/index.ts b/src/@ionic-native/plugins/status-bar/index.ts index 480421d23..9d56deb40 100644 --- a/src/@ionic-native/plugins/status-bar/index.ts +++ b/src/@ionic-native/plugins/status-bar/index.ts @@ -29,7 +29,7 @@ import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-nati plugin: 'cordova-plugin-statusbar', pluginRef: 'StatusBar', repo: 'https://github.com/apache/cordova-plugin-statusbar', - platforms: ['Android', 'iOS', 'Windows', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows'] }) @Injectable() export class StatusBar extends IonicNativePlugin { From 60d32be0958cb2f357a6354a174bfed54f05fc2b Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:10:07 +0100 Subject: [PATCH 15/22] docs(screen-orientation): remove unsupported platforms (#2233) --- src/@ionic-native/plugins/screen-orientation/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/screen-orientation/index.ts b/src/@ionic-native/plugins/screen-orientation/index.ts index 1dd252677..99709bec2 100644 --- a/src/@ionic-native/plugins/screen-orientation/index.ts +++ b/src/@ionic-native/plugins/screen-orientation/index.ts @@ -55,7 +55,7 @@ import { Observable } from 'rxjs/Observable'; plugin: 'cordova-plugin-screen-orientation', pluginRef: 'screen.orientation', repo: 'https://github.com/apache/cordova-plugin-screen-orientation', - platforms: ['Android', 'BlackBerry 10', 'iOS', 'Windows'] + platforms: ['Android', 'iOS', 'Windows'] }) @Injectable() export class ScreenOrientation extends IonicNativePlugin { From 23578de056c21030e6c43a7ba94da7a9274391ee Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 28 Dec 2017 13:10:14 +0100 Subject: [PATCH 16/22] docs(vibration): remove unsupported platforms (#2234) --- src/@ionic-native/plugins/vibration/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/vibration/index.ts b/src/@ionic-native/plugins/vibration/index.ts index e09b678b3..5d83e9da7 100644 --- a/src/@ionic-native/plugins/vibration/index.ts +++ b/src/@ionic-native/plugins/vibration/index.ts @@ -33,7 +33,7 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; plugin: 'cordova-plugin-vibration', pluginRef: 'navigator', repo: 'https://github.com/apache/cordova-plugin-vibration', - platforms: ['Android', 'BlackBerry 10', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: ['Android', 'iOS', 'Windows'] }) @Injectable() export class Vibration extends IonicNativePlugin { From 98db2e710cf41b1a68934aba2bfb445d5b7749b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Thu, 28 Dec 2017 13:10:34 +0100 Subject: [PATCH 17/22] docs(): deprecation notice (#2212) --- src/@ionic-native/plugins/file-transfer/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/@ionic-native/plugins/file-transfer/index.ts b/src/@ionic-native/plugins/file-transfer/index.ts index 41df16a66..0530d56d5 100644 --- a/src/@ionic-native/plugins/file-transfer/index.ts +++ b/src/@ionic-native/plugins/file-transfer/index.ts @@ -112,6 +112,10 @@ export interface FileTransferError { * @description * This plugin allows you to upload and download files. * + * @deprecated + * This plugin has been deprecated in favor of XHR2 + * https://cordova.apache.org/blog/2017/10/18/from-filetransfer-to-xhr2.html + * * @usage * ```typescript * import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic-native/file-transfer'; From 9990df895333292b7791cb59bc97b7deb22a6fdb Mon Sep 17 00:00:00 2001 From: Jay Ordway Date: Thu, 28 Dec 2017 06:11:10 -0600 Subject: [PATCH 18/22] feat(crop): add targetHeight and targetWidth options (#2213) Adding support for targetHeight and targetWidth options --- src/@ionic-native/plugins/crop/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/crop/index.ts b/src/@ionic-native/plugins/crop/index.ts index 52c5c041e..ab5242ffd 100644 --- a/src/@ionic-native/plugins/crop/index.ts +++ b/src/@ionic-native/plugins/crop/index.ts @@ -38,6 +38,6 @@ export class Crop extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - crop(pathToImage: string, options?: { quality: number }): Promise { return; } + crop(pathToImage: string, options?: { quality: number, targetHeight: number, targetWidth: number }): Promise { return; } } From 8e9907dc53de7cd3b3fac4b1528a0d447532a90b Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 29 Dec 2017 03:23:04 +0100 Subject: [PATCH 19/22] docs(contact): mark as deprecated (#2238) * docs(contact): mark as deprecated * Update index.ts --- src/@ionic-native/plugins/contacts/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/@ionic-native/plugins/contacts/index.ts b/src/@ionic-native/plugins/contacts/index.ts index 7fdb1562a..d4a301553 100644 --- a/src/@ionic-native/plugins/contacts/index.ts +++ b/src/@ionic-native/plugins/contacts/index.ts @@ -261,6 +261,10 @@ export class ContactFindOptions implements IContactFindOptions { * @description * Access and manage Contacts on the device. * + * @deprecated + * This plugin is being deprecated. No more work will be done on this plugin by the Cordova development community. + * You can continue to use this plugin and it should work as-is in the future but any more arising issues will not be fixed by the Cordova community. + * * @usage * * ```typescript From 9ebd92ecb9b24de57d19719c1703be56a031c6de Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 29 Dec 2017 03:27:53 +0100 Subject: [PATCH 20/22] docs(globalization): mark plugin as deprecated (#2239) --- src/@ionic-native/plugins/globalization/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/@ionic-native/plugins/globalization/index.ts b/src/@ionic-native/plugins/globalization/index.ts index 6ba8e97e3..0acecdd92 100644 --- a/src/@ionic-native/plugins/globalization/index.ts +++ b/src/@ionic-native/plugins/globalization/index.ts @@ -4,6 +4,12 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Globalization * @description + * This plugin obtains information and performs operations specific to the user's locale, language, and timezone. + * + * @deprecated + * With the [ECMA Internationalization API](https://www.ecma-international.org/ecma-402/1.0/) now supported on iOS, Android and Windows devices, this plugin is not required any more. + * Migrating from this plugin to the [ECMA Internationalization API](https://www.ecma-international.org/ecma-402/1.0/) is explained in this [Cordova blog post](https://cordova.apache.org/news/2017/11/20/migrate-from-cordova-globalization-plugin.html). + * * @usage * ```typescript * import { Globalization } from '@ionic-native/globalization'; From e4dd8dcb89885ddb819f8d5f79b9263592e32670 Mon Sep 17 00:00:00 2001 From: Rory Standley Date: Thu, 25 Jan 2018 11:18:18 +0000 Subject: [PATCH 21/22] docs(): type of yes is boolean not string (#2290) --- src/@ionic-native/plugins/app-availability/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/app-availability/index.ts b/src/@ionic-native/plugins/app-availability/index.ts index 3011921b0..3ff0b1996 100644 --- a/src/@ionic-native/plugins/app-availability/index.ts +++ b/src/@ionic-native/plugins/app-availability/index.ts @@ -27,8 +27,8 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; * * this.appAvailability.check(app) * .then( - * (yes: string) => console.log(app + ' is available'), - * (no: string) => console.log(app + ' is NOT available') + * (yes: boolean) => console.log(app + ' is available'), + * (no: boolean) => console.log(app + ' is NOT available') * ); * ``` */ From 61293c33ccac05eba5230c0afb9ab3fa70f68513 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 25 Jan 2018 11:11:06 -0600 Subject: [PATCH 22/22] fix(pro): proper callback type and guard for plugin instantiate. #2136 #2127 --- src/@ionic-native/plugins/pro/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/@ionic-native/plugins/pro/index.ts b/src/@ionic-native/plugins/pro/index.ts index 1475c86b6..bbdb6258e 100644 --- a/src/@ionic-native/plugins/pro/index.ts +++ b/src/@ionic-native/plugins/pro/index.ts @@ -49,9 +49,7 @@ export class ProDeploy { * Check a channel for an available update * @return {Promise} Resolves with 'true' or 'false', or rejects with an error. */ - @CordovaInstance({ - observable: true - }) + @CordovaInstance() check(): Promise { return; } /** @@ -67,7 +65,9 @@ export class ProDeploy { * Unzip the latest downloaded version * @return {Observable} Updates with percent completion, or errors with a message. */ - @CordovaInstance() + @CordovaInstance({ + observable: true + }) extract(): Observable { return; } /** @@ -133,7 +133,7 @@ export class Pro extends IonicNativePlugin { /** * Ionic Pro Deploy .js API. */ - deploy: ProDeploy = new ProDeploy(Pro.getPlugin().deploy); + deploy: ProDeploy = new ProDeploy((Pro.getPlugin() || {}).deploy); /** * Not yet implemented