From 84f64da076c132b1fb2587c6272a0503845ce151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A8=E3=83=AA=E3=82=B9?= Date: Fri, 27 Aug 2021 23:06:35 +0900 Subject: [PATCH] feat!(android): bump platform requirements (#122) * feat!(android): bump platform requirements * doc(android): drop cordova-android 8.x specifics * doc(android): bump platform requirements --- docs/INSTALLATION.md | 21 +++++++++------------ package.json | 5 +++++ plugin.xml | 2 +- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md index ce91dbe3e..c0c1690ff 100644 --- a/docs/INSTALLATION.md +++ b/docs/INSTALLATION.md @@ -2,7 +2,7 @@ - [Installation](#installation) - [Installation Requirements](#installation-requirements) - - [Cordova Android 8.x Specifics](#cordova-android-8x-specifics) + - [Cordova-Android 9.x Specifics](#cordova-android-9x-specifics) - [Android details](#android-details) - [Co-existing with Facebook Plugin](#co-existing-with-facebook-plugin) - [Co-existing with plugins that use Firebase](#co-existing-with-plugins-that-use-firebase) @@ -26,6 +26,7 @@ | -------------- | ----------- | --------------- | ----------- | --------- | | 1.0.0 | 10.0.0 | 8.0.0 | 5.1.1 | 1.8.0 | | 2.0.0 | 10.0.0 | 8.0.0 | 6.0.0 | 1.8.0 | +| 3.0.0 | 10.0.0 | 9.0.0 | 6.0.0 | 1.8.0 | To install from the command line: @@ -74,24 +75,20 @@ By default, on iOS, the plugin will register with APNS. If you want to use FCM o > Note: You need to specify the SENDER_ID variable in your config.xml if you plan on installing/restoring plugins using the prepare method. The prepare method will skip installing the plugin otherwise. ```xml - + ``` -### Cordova Android 8.x Specifics +### Cordova-Android 9.x Specifics -You will need to install the `cordova-support-google-services` plugin. This plugin enables the Google APIs and Firebase services for your Android application. +**Using AndroidX Library:** -If your application uses many plugins and references over 64K methods, you will need to enable multidex. If multidex is not enabled, your build should fail and you should see the following error: +As of version **3.0.0**, this plugin has migrated from the Android Support Library to AndroidX. Since Cordova-Android 9.x does not use the AndroidX library by default, you will need to install the [`cordova-plugin-androidx-adapter`](https://www.npmjs.com/package/cordova-plugin-androidx-adapter) plugin. -```log -trouble writing output: -Too many field references: 131000; max is 65536. -You may try using --multi-dex option. -``` +This plugin will migrate any Android Support Library references to AndroidX. -To enable multidex, use the `phonegap-plugin-multidex` plugin. +Please note that this will also migrate references of other plugins. -These two plugins are only necessary for the Cordova Android 8.x releases. +If you are using **Cordova Android 8.x** please continue reading in the **Cordova Android 8.x Specifics** section. ## Android details diff --git a/package.json b/package.json index 1d62a8d4a..e23051f53 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,11 @@ }, "engines": { "cordovaDependencies": { + "3.0.0": { + "cordova": ">=10.0.0", + "cordova-android": ">=9.0.0", + "cordova-ios": ">=6.0.0" + }, "2.0.0": { "cordova": ">=10.0.0", "cordova-android": ">=8.0.0", diff --git a/plugin.xml b/plugin.xml index 877a622d8..9b17a0996 100755 --- a/plugin.xml +++ b/plugin.xml @@ -14,7 +14,7 @@ - +