Skip to content

Commit

Permalink
Use specified versionCode for f-Droid
Browse files Browse the repository at this point in the history
  • Loading branch information
Semper-Viventem committed Dec 31, 2023
1 parent b7c2021 commit d8dbd45
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ android {
applicationId = "f.cking.software"
minSdk = 29
targetSdk = 34
versionCode = (System.currentTimeMillis() / 1000).toInt()
versionName = "0.21.2-beta"
versionCode = 1704045671
versionName = "0.21.3-beta"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

Expand Down Expand Up @@ -77,23 +77,25 @@ android {

flavorDimensions += "distribution"
productFlavors {
create("googlePlay") {
create("github") {
isDefault = true
dimension = "distribution"
versionCode = (System.currentTimeMillis() / 1000).toInt()

buildConfigField("String", "DISTRIBUTION", "\"Github\"")
}
create("googlePlay") {
isDefault = false
dimension = "distribution"
versionCode = (System.currentTimeMillis() / 1000).toInt()

buildConfigField("String", "DISTRIBUTION", "\"Google play\"")
}
create("fdroid") {
dimension = "distribution"
isDefault = false

buildConfigField("String", "DISTRIBUTION", "\"F-Droid\"")
}
create("github") {
dimension = "distribution"
isDefault = true

buildConfigField("String", "DISTRIBUTION", "\"Github\"")
buildConfigField("String", "DISTRIBUTION", "\"F-Droid\"")
}
}

Expand Down

0 comments on commit d8dbd45

Please sign in to comment.