Skip to main content

Version Bumping

Bump the Android versionCode and the iOS build number. The version name changes only with --version-name.

Command: kappmaker update-version Run from the project root (containing MobileApp/) or from inside MobileApp/ directly.

kappmaker update-version # Build number only: versionCode +1, iOS build +1, name unchanged
kappmaker update-version --version-name 2.0.0 # Also set the version name on both platforms

Since 2.2.0 a plain bump never changes the version name (it used to turn 1.0.0 into 1.0.1, and iOS 1.0 into 1.1). -v / --version still work as the old spelling of --version-name.

Options​

FlagDescriptionDefault
--version-name <name>Also set the version name (e.g., 2.0.0); -v, --version is an aliasName unchanged

What it Updates​

PlatformFileFields
AndroidandroidApp/build.gradle.kts (AGP 9+) or legacy composeApp/build.gradle.ktsversionCode, versionName
iOSiosApp/iosApp.xcodeproj/project.pbxprojCURRENT_PROJECT_VERSION, MARKETING_VERSION
iOSiosApp/iosApp/Info.plistCFBundleVersion, CFBundleShortVersionString

If a platform's files are missing, that platform is skipped with a warning.