Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Fix/satisfy pipeline - gradle def function (EXPSOUREAPP-2572) (#1519)
Browse files Browse the repository at this point in the history
* moved getHash call to DeviceForTesters Flavor to satisfy CircleCI

* added variant prefix
  • Loading branch information
BMItr committed Nov 3, 2020
1 parent 45cacb0 commit 3ef2610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Corona-Warn-App/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ android {

def prodEnvJson = environmentExtractor(file("../prod_environments.json"))
buildConfigField "String", "ENVIRONMENT_JSONDATA", prodEnvJson
buildConfigField "String", "GIT_COMMIT_SHORT_HASH", "\"${getHash()}\""

def devEnvironmentFile = file("../test_environments.json")
if (devEnvironmentFile.exists()) {
Expand Down Expand Up @@ -162,6 +161,7 @@ android {
variant.buildConfigField "String", "ENVIRONMENT_TYPE_DEFAULT", "\"${flavor.envTypeDefault[typeName]}\""

if (flavor.name == "deviceForTesters") {
variant.buildConfigField "String", "GIT_COMMIT_SHORT_HASH", "\"${getHash()}\""
def adjustedVersionName = "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}-RC${VERSION_BUILD}"
variant.outputs.each { output ->
output.versionNameOverride = adjustedVersionName
Expand Down

0 comments on commit 3ef2610

Please sign in to comment.