Skip to main content

Android Release Build

Build a signed Android release AAB. Automatically generates a keystore if one doesn't exist yet.

Command: kappmaker android-release-build

kappmaker android-release-build
kappmaker android-release-build --organization "MyCompany"
kappmaker android-release-build --output ./my-output

Run from the project root (containing MobileApp/) or inside MobileApp/ directly. Requires gradlew in the mobile app directory.

Options

FlagDescriptionDefault
--organization <name>Organization for keystore generationFrom config
--first-name <name>Developer name for keystore generationEmpty
--output <dir>Output directory for AABdistribution/android

What it Does

  1. Generates keystore if distribution/android/keystore/keystore.properties doesn't exist
  2. Runs ./gradlew :composeApp:bundleRelease
  3. Copies the AAB to the output directory

Output: distribution/android/app-release.aab (or custom --output path)