| name | increment-version-code |
| description | Increment the app's build number by 1 — Android versionCode in app/build.gradle.kts and iOS CURRENT_PROJECT_VERSION in iosApp/iosApp.xcodeproj/project.pbxproj. Desktop has no build-number field, so it is unaffected. |
Increment the build number by exactly 1 on Android and iOS, keeping the two in sync.
Steps:
- Read
app/build.gradle.kts and locate the versionCode = <N> line inside defaultConfig.
- Use the Edit tool to replace
versionCode = <N> with versionCode = <N + 1>.
- Update the iOS build number to the same
<N + 1>. In iosApp/iosApp.xcodeproj/project.pbxproj the setting CURRENT_PROJECT_VERSION = <N>; appears twice (the Debug and Release build configs) and both must stay matched. Use the Edit tool with replace_all: true to replace CURRENT_PROJECT_VERSION = <N>; with CURRENT_PROJECT_VERSION = <N + 1>;. If the iOS value did not already equal the old Android <N>, do not silently overwrite it — stop and report the mismatch so the user can decide.
- Report the old and new value back to the user in a single short sentence, noting both platforms were bumped (e.g.
versionCode / CURRENT_PROJECT_VERSION: 12 → 13).
Desktop (the :desktopApp Compose Desktop target) has no separate build-number field — its release version is the marketing version (packageVersion in desktopApp/build.gradle.kts), kept in sync by the set-version-name skill. There is nothing to bump here for desktop.
Do not modify anything else. Do not create a commit. Do not touch versionName / MARKETING_VERSION / packageVersion.