Android feature plugins
A collection of feature plugins for Android applications.
gradle cache
Saves the Gradle cache. After the first build, caching the build resources speeds up subsequent builds.
Option | Description |
Exact match | Specifies whether to use an exact match.
|
JDK version replacement
Option | Description |
JDK version | Select the desired JDK version from the drop-down list. JDK 8, 11, and 17 are supported. The default is 11. |
Replace Android application version
Sets the version number for the application build and release. If the Replace application version number stage is not enabled, the code version number is used as the application version number by default.
Option | Description |
versionCode | Sets the version number for the app release. |
versionName | Sets the version name for the app release. |
build.gradle path | Enter the relative path of the build.gradle file. If you leave this blank, the system defaults to ./app/build.gradle. |
Use Maven mirrors
Replaces the Maven repositories referenced in the code-based project with mirror repositories during the build process. The Alibaba Cloud mirror is used by default, but you can also specify a custom mirror.
Option | Description |
Use Gradle mirror | Use a mirror because the official download URL https://services.gradle.org can be unstable. |
Gradle mirror | The Gradle mirror URL. EMAS provides a default mirror: https://emas-devops-cdn.aliyuncs.com/distributions/ |
MavenCentral repository mirror | Replaces the mavenCentral repository with the target mirror repository. The default is the Alibaba Cloud mirror. |
Google repository mirror | Replaces the google repository with the target mirror repository. The default is the Alibaba Cloud mirror. |
GradlePluginPortal repository mirror | Replaces the gradlePluginPortal repository with the target mirror repository. The default is the Alibaba Cloud mirror. |
Jcenter repository mirror | Replaces the jcenter repository with the target mirror repository. The default is the Alibaba Cloud mirror. |
Android certificate installation
Downloads the certificate to a specified directory before the build.
Option | Description |
Certificate relative path | The path of the certificate relative to the code root directory. Example: app/your_own_cert.jks |
Keystore certificate | Sets the Keystore certificate used to build the APK file. Note The Keystore certificate must be configured in advance. For more information, see Configure certificates (Android). |
APK signing
Signs the APK file using the zipalign and apksigner tools.
Option | Description |
APK file path | Sets the storage path for the APK file after the build. |
Enable V2 signing | Specifies whether to apply a V2 signature to the built APK file. |
Enable zipalign optimization | Specifies whether to enable zipalign optimization. |
Delete APK before signing | Specifies whether to delete the original file after the APK file is signed. |
Keystore certificate | Sets the Keystore certificate used to build the APK file. Note The Keystore certificate must be configured in advance. For more information, see Configure certificates (Android). |