Skip to content

Commit

Permalink
fix(release): Set versionName dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Nov 3, 2020
1 parent 3e333c8 commit a64ae05
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ android {
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "0.1"
versionName project.findProperty("versionName") ?: "0.1"

testInstrumentationRunner 'tech.relaycorp.courier.test.TestAndroidJUnitRunner'

Expand Down Expand Up @@ -102,11 +102,6 @@ android {
resources.srcDirs += "src/sharedTest/resources"
}
}
onVariantProperties {
for (output in outputs) {
output.versionName.set(output.versionCode.toString())
}
}
}

dependencies {
Expand Down

0 comments on commit a64ae05

Please sign in to comment.