We are happy to announce that we have just released Cordova Android 12.0.0! This is one of Cordova's supported platforms for building Android applications.
To upgrade:
cordova platform remove android cordova platform add android@12.0.0
To install:
cordova platform add android@12.0.0
BREAKING CHANGES:
Increased Minimum & Target SDK
This release has increased the minimum supported SDK version to 24 which is Android 7.0. It also has increased the target SDK to 33, Android 13.
Build Tools
To use cordova-android@12, SDK Platform 33 and SDK Build Tools 33.0.2 must be installed. Older build tools version can be uninstalled if older versions of cordova-android is no longer used in your projects.
To install SDK Platform 33:
SDK Platforms tabAndroid 13.0 (Tiramisu) which has the API Level of 33ApplyTo install SDK Build Tools 33.0.2:
SDK Tools tabShow Package DetailsAndroid SDK Build-Tools33.0.2ApplyProject Dependencies
The following project dependencies were bumpped:
1.7.217.67.4.24.3.151.6.11.6.01.0.0If you or a plugin has made changes to any of the following configuration preferences, the build results might not match the expected outcomes with this release:
android-minSdkVersionandroid-maxSdkVersionandroid-targetSdkVersionandroid-compileSdkVersionandroid-buildToolsVersionGradleVersionAndroidGradlePluginVersionGradlePluginKotlinVersionAndroidXAppCompatVersionAndroidXWebKitVersionGradlePluginGoogleServicesVersionPlease take note of the versions that have been updated in this release. If you have manually modified any of these values, it is recommended to review and update the preference values accordingly.
Node Support
We have dropped support for Node 14.x and increase the minimum Node requirement to greater than or equal to 16.13.0.
New Features:
Monochrome Support
Android 13 has added Themed Icons support which is also known as Monochrome. This release has introduced support for Themed icons.
Please report any issues you find on our Cordova-Android GitHub issue tracker!
Breaking:
CoreAndroid plugin instantiate on load>=16.13.0CoreAndroid.getBuildConfigValuepackage-lockcordova-common@5.0.0Features:
listTarget apiWebViewClient.onRenderProcessGonekotlin to version 1.7.21monochrome app icon supportInspectableWebview preferenceandroidx.appcompat.appcompat 1.6.1androidx.webkit.webkit 1.6.0com.google.gms.google-services 4.3.15androidx.core.core-splashscreen 1.0.0Fixes:
BuildHelper): get package name from ApplicationInfoANDROID_HOME is the new default, to check first and give advicecontent src when content tag is missingFadeSplashScreen is trueAppCompat for MavenWindowSplashScreenBrandingImagecordova-plugin-splashscreenChores, Refactor, Dependencies & CI:
lint:fix script for fixing lint errorsHandler constructorfs-extra@11.1.1nopt@7.1.0@cordova/eslint-config@5.0.0jasmine@4.6.0codecov/codecov-action@v3codecov/codecov-action reporting format