diff --git a/AndroidProjectTooling.sh b/AndroidProjectTooling.sh index 83e8270..cd1a4a2 100755 --- a/AndroidProjectTooling.sh +++ b/AndroidProjectTooling.sh @@ -253,6 +253,21 @@ print(f'Updated versionCode to {new_code} and versionName to {new_name}') PY } +android_version_code() { + local gradle_file="$PROJECT_DIR/app/build.gradle.kts" + python - <.apk` | +| `bash ./AndroidProjectTooling.sh --build-release-aab` | Build the release Android App Bundle. | `app/build/outputs/bundle/release/githug-android-release-v.aab` | | `bash ./AndroidProjectTooling.sh --compile-git` | Compile Git for the development host and all Android target ABIs. | Host and Android `libgit.so` binaries | To run the JVM unit test suite after ensuring the local toolchain is ready: @@ -82,7 +82,7 @@ When `--build` or `--build-release-aab` is used, the script also: - increments `versionCode` by 1 - increments the patch component of `versionName`, for example `0.1.0` to `0.1.1` - bundles full Git manpage source files from Git's `Documentation/` directory into app assets -- renames the generated artifact to a stable `githug-android-*` filename +- renames the generated artifact to a `githug-android-*` filename that includes the post-bump `versionCode` - attempts to create a git commit after a successful build if there are source changes The build commands currently run these Gradle tasks: diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 7b633ea..8a79ac3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -19,8 +19,8 @@ android { applicationId = "solutions.tretter.githugandroid" minSdk = 26 targetSdk = 35 - versionCode = 150 - versionName = "0.1.149" + versionCode = 151 + versionName = "0.1.150" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true