From f60c22bd23b602a24cb649ead1ba7cdf90adb123 Mon Sep 17 00:00:00 2001 From: EdrowsLuo <793971297@qq.com> Date: Thu, 6 Jan 2022 18:45:52 +0800 Subject: [PATCH] disable apk minify and use yyMMdd format for version name --- LibBASS/build.gradle | 2 +- andnext_markdown/build.gradle | 2 +- build.gradle | 20 +++++++++++++++----- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/LibBASS/build.gradle b/LibBASS/build.gradle index 47f3913c8..3e47c641d 100644 --- a/LibBASS/build.gradle +++ b/LibBASS/build.gradle @@ -20,7 +20,7 @@ android { buildTypes { release { minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' +// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } diff --git a/andnext_markdown/build.gradle b/andnext_markdown/build.gradle index 2c853c01b..ae883adc4 100644 --- a/andnext_markdown/build.gradle +++ b/andnext_markdown/build.gradle @@ -19,7 +19,7 @@ android { buildTypes { release { minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' +// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } diff --git a/build.gradle b/build.gradle index f93538e83..d97179ccd 100644 --- a/build.gradle +++ b/build.gradle @@ -31,7 +31,7 @@ def getReleaseVersionCode() { def getReleaseVersionName() { def baseline = '1.6.8' - def versionName = baseline + new Date().format('(MMddhh)') + def versionName = baseline + new Date().format('(yyMMdd)') println('versionName: ' + versionName) return versionName } @@ -90,23 +90,33 @@ android { debug { resValue "string", "app_name", "osu!droid-debug" applicationIdSuffix '.debug' + firebaseCrashlytics { + mappingFileUploadEnabled false + } } release { resValue "string", "app_name", "osu!droid" zipAlignEnabled true - minifyEnabled true - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard.cfg', 'proguard-kotlin.pro' +// minifyEnabled true +// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard.cfg', 'proguard-kotlin.pro' signingConfig signingConfigs.release + firebaseCrashlytics { + mappingFileUploadEnabled false + } } pre_release { matchingFallbacks = ['release'] resValue "string", "app_name", "osu!droid" zipAlignEnabled true - minifyEnabled true - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard.cfg', 'proguard-kotlin.pro' +// minifyEnabled true +// debuggable true +// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard.cfg', 'proguard-kotlin.pro' signingConfig signingConfigs.release + firebaseCrashlytics { + mappingFileUploadEnabled false + } } }