Skip to content

Commit

Permalink
remove val
Browse files Browse the repository at this point in the history
  • Loading branch information
grablack committed Feb 22, 2024
1 parent 2a36833 commit a59b211
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ buildscript {
"androidMinSdkVersion": 23,
"androidTargetVersion": 34
]

// Additional configuration based on the GitHub Actions environment variable

if (System.getenv("UPDATE_VERSION_SNAPSHOT") != null && System.getenv("UPDATE_VERSION_SNAPSHOT").equals("true", ignoreCase = true)) {
// Assume modules.sdkVersionName is a String variable
modules.sdkVersionName += "-SNAPSHOT"
}
println(modules.sdkVersionName)

}

plugins {
Expand Down Expand Up @@ -53,18 +62,3 @@ nexusPublishing {
subprojects {
group = "com.paypal.messages"
}


android {
defaultConfig {
// Additional configuration based on the GitHub Actions environment variable
val updateVariable = System.getenv("UPDATE_VERSION_SNAPSHOT")

if (updateVariable != null && updateVariable.equals("true", ignoreCase = true)) {
// Assume modules.sdkVersionName is a String variable
modules.sdkVersionName += "-SNAPSHOT"
println(modules.sdkVersionName)
}
}

}

0 comments on commit a59b211

Please sign in to comment.