Release
from your build to the store.
Create a signing key, build a release, and publish on Google Play.
01Before you build
- Application id, name, icons and version are yours (Rebranding)
- Backend deployed, console filled in, Status page has no blocker (Console)
- Token set on a main network and tested first on a test network
- The build does not use
-PexampleMode=true - Privacy policy and terms URLs are live and entered in the console
02Signing key
In PowerShell the JDK tools are in "$env:JAVA_HOME\bin\keytool.exe"; use that full path in place of keytool. Android Studio's Build, Generate Signed App Bundle wizard creates a key without any command.
keytool -genkeypair -v -keystore my-upload-key.jks -alias upload -keyalg RSA -keysize 2048 -validity 10000
Store the keystore file and its passwords outside the project and out of git, and back them up. With Play App Signing, Google holds the app signing key and you keep an upload key that can be reset by Google if you lose it; without it you could not update your app.
03Build the release bundle
- Android StudioOpen the
appfolder, Build, Generate Signed App Bundle or APK, choose Android App Bundle, pick your keystore, choose thereleasevariant. Add your-PapiBaseUrland-PfirebaseApiKeyin the Gradle properties first (Installation). - Command line
./gradlew :app:assembleRelease -PapiBaseUrl=...builds an R8-shrunk, unsigned APK; sign it withapksignerfrom the SDK build-tools, or use the wizard above for a bundle.
The release build turns on code shrinking (R8) with the project's rules in app/app/proguard-rules.pro. Test the signed release build on a real phone before you upload it.
04Publish on Google Play
- Create the appIn the Play Console, Create app, set name, language and "App" and "Free" or "Paid" as you choose.
- Fill in the declarationsGoogle Play.
- Upload the bundleStart with an internal or closed test track, install from the Play link on a few phones, then promote to production.
- ScreenshotsTake them from your own build. Do not use the example build's fictional token in a live store listing.
05After launch
Most changes need no new release: token details, news, dapps, claims, fee, networks and the assistant are all console settings that the app reads at start and every ten minutes. A new release is only for code, icon or name changes. Raise versionCode every time.