Skip to content

Commit

Permalink
Adicionando version code dinâmico
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcalmeida committed Jul 6, 2020
1 parent 14a0059 commit fa7a2d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions emptystate/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.github.dcendents.android-maven'

def dynamicVersionCode = ['sh', '-c', 'git rev-list HEAD | wc -l'].execute().text.trim().toInteger()
group = 'com.github.rafaelcalmeida'
version = '1.2'
version = '1.3'

android {
compileSdkVersion 29
Expand All @@ -13,7 +14,7 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionCode dynamicVersionCode
versionName version
consumerProguardFiles 'consumer-rules.pro'
}
Expand Down

0 comments on commit fa7a2d9

Please sign in to comment.