17 lines
724 B
Markdown
17 lines
724 B
Markdown
Run it from the project root:
|
|
|
|
./build_prod_apk.sh
|
|
|
|
The APK lands at build/outputs/rentaldrivego-release.apk.
|
|
|
|
One thing to sort out before distributing — the build.gradle.kts currently signs with the debug
|
|
key in release mode:
|
|
signingConfig = signingConfigs.getByName("debug")
|
|
That's fine for internal testing, but app stores and most MDM systems require a proper release
|
|
keystore. When you're ready to publish:
|
|
|
|
1. Generate a keystore once:
|
|
keytool -genkey -v -keystore android/rentaldrivego.jks \
|
|
-alias rentaldrivego -keyalg RSA -keysize 2048 -validity 10000
|
|
2. Add the signing config to android/app/build.gradle.kts pointing at that keystore
|
|
3. Add android/rentaldrivego.jks to .gitignore |