Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sisah2 authored Jun 9, 2024
1 parent 03b1ad0 commit 01d4a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ext {
versionFile = new File(project.rootDir, 'app/src/main/assets/libopenmw/resources/version')
calculateVersion = {
stream = new FileInputStream(versionFile)
return stream.readLines()[0].trim() + "-" + project.android.defaultConfig.versionCode.toString()
return stream.readLines()[0].trim() + "-" + project.android.defaultConfig.versionCode.toString() + "-" + Math.abs(new Random().nextInt(999)).toString
}
}

Expand All @@ -27,7 +27,7 @@ android {

defaultConfig {
applicationId "is.xyz.omw"
versionCode Math.abs(new Random().nextInt(999))
versionCode 46
versionName calculateVersion()

minSdkVersion 21
Expand Down

0 comments on commit 01d4a49

Please sign in to comment.