We are happy to announce that we have just released Cordova Android 11.0.0
! This is one of Cordova's supported platforms for building Android applications.
To upgrade:
cordova platform remove android cordova platform add android@11.0.0
To install:
cordova platform add android@11.0.0
Android 12 SplashScreen API Integration
As of Android 12, all Android 12 or higher devices display the new app launch animation. Google has applied this requirement to bring a standard design to all app launch screens.
Due to this requirement, users have seen and reported the display of multiple SplashScreens during the app launch. Since the new SplashScreen API can not be disabled, the old SplashScreen plugin is deprecated for Cordova-Android 11+.
We have integrated the Android 12 SplashScreen API including the compatibility library into the core of the Cordova-Android platform to provide support for Android API 22+.
For more information, please refer to the PR and Cordova Docs.
Tooling and Default Support Bump
targetSdk
): 32
32.0.0
7.4.2
1.5.21
7.2.1
4.3.10
1.4.2
1.4.0
1.0.0-rc01
Environment Variable ANDROID_HOME
As of April 27, 2022, It appears Google has reversed its statement and declared that ANDROID_HOME
is now the correct environment variable to set with the path of the SDK installation directory. It also notes that ANDROID_SDK_ROOT
that also points to the SDK installation directory is deprecated.
Custom Compile SDK
We added back the ability to set a custom compileSdk value with the preference flag android-compileSdkVersion
.
Example:
<preference name="android-compileSdkVersion" value="31" />
Node Support
Since Node 12 is no longer being supported by the Node.js team, we have dropped support for Node 12.
Please report any issues you find at issues.cordova.io!
Breaking:
ANDROID_HOME
as defaultFeatures:
androidx.appcompat
versioncompileSdk
settingFixes:
prepare
): destFile
path separatorAndroidInsecureFileModeEnabled
hostname
to lowercasecheckReqs
in prepare.js
MainActivity.java
to folder that tracks the app package name (widget id)Chores, Dependencies & CI:
<splash>
tag usage@cordova/eslint-config@^4.0.0
jasmine@4.2.1
w/ package-lock
rebuild