diff --git a/qmui/build.gradle b/qmui/build.gradle index 37d8746da..b277d8416 100644 --- a/qmui/build.gradle +++ b/qmui/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.android.library' group = 'com.qmuiteam' -version = "1.0.3" // QMUI 发布到 bintray 的版本号 +version = "1.0.4" // QMUI 发布到 bintray 的版本号 //noinspection GroovyMissingReturnStatement android { @@ -14,8 +14,6 @@ android { defaultConfig { minSdkVersion parent.ext.minSdkVersion targetSdkVersion parent.ext.targetSdkVersion - versionCode 1 - versionName "1.0" // vectorDrawables.useSupportLibrary = true // 与 com.android.support:support-vector-drawable 搭配使用,禁掉 Android Studio 自动生成 png 的功能 } buildTypes { diff --git a/qmuidemo/build.gradle b/qmuidemo/build.gradle index 05f95f576..63aaddcf5 100644 --- a/qmuidemo/build.gradle +++ b/qmuidemo/build.gradle @@ -1,5 +1,8 @@ apply plugin: 'com.android.application' +def cmd = 'git rev-list HEAD --count' +def gitVersion = cmd.execute().text.trim().toInteger() + android { signingConfigs { Properties properties = new Properties() @@ -21,8 +24,8 @@ android { applicationId "com.qmuiteam.qmuidemo" minSdkVersion parent.ext.minSdkVersion targetSdkVersion parent.ext.targetSdkVersion - versionCode 1 - versionName "1.0.3" + versionCode gitVersion + versionName "1.0.4" } buildTypes { debug {