Fangjun Kuang
Committed by GitHub

Update APK versions (#2505)

This PR updates version information across all Android applications in the sherpa-onnx project to version 1.12.9 with version code 20250817. The changes automate version updates through a release script and apply consistent versioning across all Android app modules.
... ... @@ -11,8 +11,8 @@ android {
applicationId "com.k2fsa.sherpa.onnx"
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0"
versionCode 20250817
versionName "1.12.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId "com.k2fsa.sherpa.onnx"
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0"
versionCode 20250817
versionName "1.12.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId = "com.k2fsa.sherpa.onnx.audio.tagging"
minSdk = 21
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionCode = 20250817
versionName = "1.12.9"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId = "com.k2fsa.sherpa.onnx.audio.tagging.wear.os"
minSdk = 26
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionCode = 20250817
versionName = "1.12.9"
vectorDrawables {
useSupportLibrary = true
}
... ...
... ... @@ -9,8 +9,8 @@ android {
applicationId "com.k2fsa.sherpa.onnx"
minSdk 28
targetSdk 34
versionCode 1
versionName "1.0"
versionCode 20250817
versionName "1.12.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId "com.k2fsa.sherpa.onnx"
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0"
versionCode 20250817
versionName "1.12.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId = "com.k2fsa.sherpa.onnx.simulate.streaming.asr"
minSdk = 21
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionCode = 20250817
versionName = "1.12.9"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId = "com.k2fsa.sherpa.onnx.simulate.streaming.asr.wear.os"
minSdk = 28
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionCode = 20250817
versionName = "1.12.9"
vectorDrawables {
useSupportLibrary = true
}
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId = "com.k2fsa.sherpa.onnx.speaker.diarization"
minSdk = 21
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionCode = 20250817
versionName = "1.12.9"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId = "com.k2fsa.sherpa.onnx.speaker.identification"
minSdk = 21
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionCode = 20250817
versionName = "1.12.9"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId = "com.k2fsa.sherpa.onnx.slid"
minSdk = 21
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionCode = 20250817
versionName = "1.12.9"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId "com.k2fsa.sherpa.onnx"
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0"
versionCode 20250817
versionName "1.12.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId = "com.k2fsa.sherpa.onnx.tts.engine"
minSdk = 21
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionCode = 20250817
versionName = "1.12.9"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId "com.k2fsa.sherpa.onnx"
minSdk 21
targetSdk 33
versionCode 1
versionName "1.0"
versionCode 20250817
versionName "1.12.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId "com.k2fsa.sherpa.onnx"
minSdk 21
targetSdk 33
versionCode 1
versionName "1.0"
versionCode 20250817
versionName "1.12.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
... ...
... ... @@ -11,8 +11,8 @@ android {
applicationId "com.k2fsa.sherpa.onnx"
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0"
versionCode 20250817
versionName "1.12.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
... ...
#!/usr/bin/env bash
set -ex
old_version_code=20250816
new_version_code=20250817
old_version="1\.12\.8"
new_version="1\.12\.9"
replace_str="s/$old_version/$new_version/g"
... ... @@ -9,6 +13,12 @@ sed -i.bak "$replace_str" ./sherpa-onnx/csrc/version.cc
sha1=$(git describe --match=NeVeRmAtCh --always --abbrev=8)
date=$(git log -1 --format=%ad --date=local)
find android -name "build.gradle" -type f -exec sed -i.bak "s/versionName \"$old_version\"/versionName \"$new_version\"/g" {} \;
find android -name "build.gradle.kts" -type f -exec sed -i.bak "s/versionName = \"$old_version\"/versionName = \"$new_version\"/g" {} \;
find android -name "build.gradle" -type f -exec sed -i.bak "s/versionCode $old_version_code/versionCode $new_version_code/g" {} \;
find android -name "build.gradle.kts" -type f -exec sed -i.bak "s/versionCode = $old_version_code/versionCode = $new_version_code/g" {} \;
sed -i.bak "s/ static const char \*sha1.*/ static const char \*sha1 = \"$sha1\";/g" ./sherpa-onnx/csrc/version.cc
sed -i.bak "s/ static const char \*date.*/ static const char \*date = \"$date\";/g" ./sherpa-onnx/csrc/version.cc
... ...