2.9 KiB
2.9 KiB
Google Play Release Checklist
This project is configured to build Google Play compatible Android App Bundles.
Current Project Readiness
- Package name:
net.rodakot.ngxhttpmonitoringclient - Minimum SDK: 24
- Target SDK: 36
- Version:
VERSION_NAME/VERSION_CODEingradle.properties - Release build: R8 minification enabled, resource shrinking enabled
- App data backup: disabled for app data, databases, shared preferences, and files
- Release signing: read from environment variables or
local.properties
Create An Upload Key
Create an upload keystore outside the repository:
keytool -genkeypair `
-v `
-keystore "C:\secure\keys\ngx-monitor-upload.jks" `
-storetype JKS `
-keyalg RSA `
-keysize 4096 `
-validity 10000 `
-alias ngx-monitor-upload
Copy local.properties.example to local.properties and set:
NGX_RELEASE_STORE_FILE=C:\Users\meghdad\keystores\ngx-monitor-upload.jks
NGX_RELEASE_STORE_PASSWORD=<redacted>
NGX_RELEASE_KEY_ALIAS=ngx-monitor-upload
NGX_RELEASE_KEY_PASSWORD=<redacted>
Do not commit local.properties or the keystore.
Build Release Artifacts
Unsigned release sanity build:
$env:GRADLE_USER_HOME='C:\Users\meghdad\AndroidStudioProjects\NGXhttpMonitoringClient\.gradle-user'
.\gradlew.bat :app:bundleRelease --console=plain
Signed upload bundle, after signing values are configured:
$env:GRADLE_USER_HOME='C:\Users\meghdad\AndroidStudioProjects\NGXhttpMonitoringClient\.gradle-user'
.\gradlew.bat :app:bundleRelease --console=plain # for bulding aab
.\gradlew.bat :app:assembleRelease --console=plain # for bulding apk
Output:
app/build/outputs/bundle/release/app-release.aab
Before Uploading To Play Console
- Create the app in Play Console.
- Enable Play App Signing.
- Upload
app-release.aab. - Fill the store listing using
fastlane/metadata/android/en-US. - Upload phone screenshots and a 1024x500 feature graphic.
- Host
docs/PRIVACY_POLICY.mdas a public web page and paste that URL into Play Console. - Complete Data Safety using
docs/PLAY_STORE_DATA_SAFETY.md. - Complete Content Rating. Suggested category: utility/productivity/server monitoring.
- Complete Target Audience. This app is for server administrators, not children.
- Run an internal test release before production.
Release Version Bump
For every Play upload, increment VERSION_CODE in gradle.properties.
Example:
VERSION_CODE=2
VERSION_NAME=1.0.1
Official References
- Google Play target API requirements: https://support.google.com/googleplay/android-developer/answer/11926878
- Android app signing: https://developer.android.com/studio/publish/app-signing
- Build and upload an Android App Bundle: https://developer.android.com/guide/app-bundle
- Google Play Data safety: https://support.google.com/googleplay/android-developer/answer/10787469