Skip to content

Commit

Permalink
Merge pull request #131 from opensrp/update-app-version
Browse files Browse the repository at this point in the history
Update App Version
  • Loading branch information
hamza-vd authored Jun 30, 2021
2 parents 53dd9bf + ca70561 commit 778ab95
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions opensrp-unicef-tunisia/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ android {
applicationId "org.smartregister.uniceftunisia"
minSdkVersion androidMinSdkVersion
targetSdkVersion androidTargetSdkVersion
versionCode 3
versionName "0.1.9"
multiDexEnabled true
buildConfigField "long", "MAX_SERVER_TIME_DIFFERENCE", "1800000l"
buildConfigField "boolean", "TIME_CHECK", "false"
Expand All @@ -72,6 +70,25 @@ android {
vectorDrawables.useSupportLibrary = true
}

applicationVariants.all { variant ->
if (variant.name == "debug") {
variant.outputs.each { output ->
output.versionCodeOverride = 4
output.versionNameOverride = "0.2.0-debug"
}
} else if (variant.name == "preview") {
variant.outputs.each { output ->
output.versionCodeOverride = 4
output.versionNameOverride = "0.2.0-preview"
}
} else if (variant.name == "release") {
variant.outputs.each { output ->
output.versionCodeOverride = 1
output.versionNameOverride = "0.0.1-release"
}
}
}

dexOptions {
javaMaxHeapSize "4g"
}
Expand Down

0 comments on commit 778ab95

Please sign in to comment.