Skip to content

Commit 563f204

Browse files
committed
Fix fdroid build
1 parent c2b760a commit 563f204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ android {
5656
applicationId "net.schueller.instarepost"
5757
minSdkVersion 19
5858
targetSdkVersion 29
59-
versionCode Integer.valueOf(System.env.VERSION_CODE ?: 1)
60-
versionName "${System.env.VERSION_NAME}-${System.env.VERSION_SHA}"
59+
versionCode Integer.valueOf(System.getenv("VERSION_CODE") ?: 1)
60+
versionName System.getenv("VERSION_NAME") + "-" + System.getenv("VERSION_SHA") // "${System.env.VERSION_NAME}-${System.env.VERSION_SHA}"
6161
buildConfigField "long", "BUILD_TIME", readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + 'L'
6262
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
6363
}

0 commit comments

Comments
 (0)