Skip to content

Commit

Permalink
[Simulator/Android] Build with a versionCode based on the date + with…
Browse files Browse the repository at this point in the history
… “fixed” versionName
  • Loading branch information
mickbot-92 committed Jul 26, 2024
1 parent 23de6c9 commit 42516c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ion/src/simulator/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ android {
applicationId "io.github.upsilon.simulator"
minSdkVersion 21
targetSdkVersion 33
def (major, minor, patch) = System.getenv('OMEGA_VERSION').toLowerCase().tokenize('.').collect{it.toInteger()}
versionCode major*1000000 + minor*10000 + patch * 100
versionName System.getenv('OMEGA_VERSION')
// def (major, minor, patch) = System.getenv('OMEGA_VERSION').toLowerCase().tokenize('.').collect{it.toInteger()}
// versionCode major*1000000 + minor*10000 + patch * 100
def date = new Date()
versionCode date.format('yyyyMMdd').toInteger()
versionName "1.0.1-dev"
}
signingConfigs {
environment {
Expand Down

0 comments on commit 42516c7

Please sign in to comment.