Skip to content

Commit 8bebcfc

Browse files
committed
use specific branch name for f-droid repository
1 parent d29451e commit 8bebcfc

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

app/build.gradle

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,6 @@ def gitHashProvider = providers.exec {
2121
ignoreExitValue = true
2222
}.standardOutput.asText.map { it.trim() }
2323

24-
def gitBranchProvider = providers.exec {
25-
commandLine 'git', 'rev-parse', '--abbrev-ref', 'HEAD'
26-
ignoreExitValue = true
27-
}.standardOutput.asText.map {
28-
def branch = (it ?: "").trim()
29-
(branch.isEmpty() || branch == "HEAD") ? "unknown" : branch
30-
}
31-
32-
def gitDirtyProvider = providers.exec {
33-
commandLine 'git', 'diff-index', '--quiet', 'HEAD', '--'
34-
ignoreExitValue = true
35-
}.result.map { it.exitValue != 0 }
36-
3724
def getGitVersionSuffix = { ->
3825
try {
3926
def hash = gitHashProvider.getOrElse("unknown")
@@ -68,7 +55,7 @@ android {
6855
buildConfigField "String", "MONERO_KIT_VERSION", "\"${libs.versions.monero.kit.android.get()}\""
6956
buildConfigField "String", "STELLAR_KIT_VERSION", "\"${libs.versions.stellar.kit.get()}\""
7057
buildConfigField "String", "ZCASH_SDK_VERSION", "\"${libs.versions.zcashAndroidSdk.get()}\""
71-
buildConfigField "String", "GIT_BRANCH", "\"${gitBranchProvider.getOrElse("unknown")}\""
58+
buildConfigField "String", "GIT_BRANCH", "f-droid"
7259
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
7360

7461
ksp {

0 commit comments

Comments
 (0)