|
@@ -14,7 +14,8 @@ android {
|
|
|
minSdkVersion 25
|
|
|
targetSdkVersion 30
|
|
|
versionCode 1
|
|
|
- versionName "1.0.0"
|
|
|
+ versionName "1.0.0" + "." + getTime()
|
|
|
+ archivesBaseName = versionName
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
@@ -29,6 +30,10 @@ android {
|
|
|
}
|
|
|
|
|
|
buildTypes {
|
|
|
+ debug {
|
|
|
+ minifyEnabled false
|
|
|
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
+ }
|
|
|
release {
|
|
|
minifyEnabled false
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
@@ -44,7 +49,6 @@ android {
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
|
-
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
implementation 'androidx.core:core-ktx:1.3.2'
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
@@ -94,4 +98,8 @@ dependencies {
|
|
|
def leakcanaryVersion = '1.6.3'
|
|
|
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakcanaryVersion"
|
|
|
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakcanaryVersion"
|
|
|
+}
|
|
|
+
|
|
|
+static String getTime() {
|
|
|
+ return new Date().format("yyyyMMddHHmmss")
|
|
|
}
|