Skip to content

Commit

Permalink
disable apk minify and use yyMMdd format for version name
Browse files Browse the repository at this point in the history
  • Loading branch information
EdrowsLuo committed Jan 6, 2022
1 parent d51787d commit f60c22b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LibBASS/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand Down
2 changes: 1 addition & 1 deletion andnext_markdown/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand Down
20 changes: 15 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
}
}

Expand Down

0 comments on commit f60c22b

Please sign in to comment.