Skip to content

Commit

Permalink
Automatic version update based on latest git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRolfFR committed Feb 26, 2021
1 parent e6c09c7 commit a006608
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.application'
apply plugin: 'de.nanogiants.android-versioning'

android {
compileSdkVersion 29
Expand All @@ -7,8 +8,8 @@ android {
applicationId "com.therolf.optymonext"
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName "1.0"
versionCode versioning.getVersionCode()
versionName versioning.getVersionName()
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L"
}
Expand All @@ -22,6 +23,11 @@ android {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "app-debug.apk"
}
}
}

repositories {
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'de.nanogiants:android-versioning:2.4.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit a006608

Please sign in to comment.