Skip to content

Commit

Permalink
Simplify version code and name
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRar committed Apr 14, 2024
1 parent 48f53a3 commit f7347b5
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
apply plugin: 'com.android.application'

def getVersionName = { ->
return "0.1.1"
}

def getVersionNumber = { ->
def nome = getVersionName()
try {
return Integer.valueOf(nome.replace(".", ""))
} catch (Exception ignored) {
return 1
}
}

buildscript {
repositories {
mavenCentral()
Expand Down Expand Up @@ -47,8 +34,8 @@ android {
applicationId "com.github.mrrar.gps_locker"
minSdkVersion 11 // Android 3.0
targetSdkVersion 33 // Android 13.0
versionCode getVersionNumber()
versionName getVersionName()
versionCode 11
versionName "0.1.1"
if (System.getenv("SIGNING_KEY_ALIAS")) {
signingConfig signingConfigs.release
}
Expand Down

0 comments on commit f7347b5

Please sign in to comment.