Skip to content

Commit

Permalink
adjust versionCode and versionName for f-droid (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebino committed Aug 17, 2023
1 parent 918acb9 commit d1c8521
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/continuous-delivery-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ jobs:
fileDir: './'
encodedString: ${{ secrets.PLAYSTORE_CREDENTIALS }}

- name: Set versionCode to git count
run: |
export versionCode=$(git rev-list --first-parent --count HEAD)
sed -i -d "s/versionCode = 999/versionCode = $versionCode/g" app/build.gradle.kts
- name: Build release bundle
run: |
./gradlew --console=plain -PreleaseKeystore=${{ steps.decode_keystore.outputs.filePath }} -PreleaseStorePassword=${{ secrets.ANDROID_KEYSTORE_PASSWORD }} -PreleaseKeyAlias=${{ secrets.ANDROID_KEYSTORE_KEY_ALIAS }} -PreleaseKeyPassword=${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }} app:bundle
Expand Down
7 changes: 4 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ android {
// API 26 | required by: Java 8 Time API
minSdk = 26
targetSdk = libs.versions.compileSdk.get().toInt()
versionCode = grgit.log().size
versionName = "0.1.0-${grgit.head().abbreviatedId}"
// versionCode will be set manually on each release
versionCode = 9999
versionName = "0.1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand All @@ -63,7 +64,7 @@ android {
buildTypes {
debug {
applicationIdSuffix = ".debug"
versionNameSuffix = "-DEBUG"
versionNameSuffix = "-${grgit.head().abbreviatedId}"
isMinifyEnabled = !gradle.startParameter.taskNames.any { it.contains("AndroidTest") }
proguardFiles(
getDefaultProguardFile("proguard-android.txt"),
Expand Down
2 changes: 1 addition & 1 deletion fastlane/metadata/android/en-US/short_description.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Photos.network is a privacy first, photo gallery which can be extended by a self-hosted photo storage and sharing service.
Photos.network is a privacy first, photo gallery with an opt self-hosted backend

0 comments on commit d1c8521

Please sign in to comment.