turn on minifimication

1.2-legacy
geeksville 2020-04-13 17:01:29 -07:00
rodzic 7ea8dfe2cc
commit f21d603026
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -22,7 +22,8 @@ android {
} }
buildTypes { buildTypes {
release { release {
minifyEnabled false minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
} }
debug { debug {

Wyświetl plik

@ -23,4 +23,10 @@
# per https://medium.com/@kenkyee/android-kotlin-coroutine-best-practices-bc033fed62e7 # per https://medium.com/@kenkyee/android-kotlin-coroutine-best-practices-bc033fed62e7
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {} -keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {} -keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
-keepclassmembernames class kotlinx.** { volatile <fields>; } -keepclassmembernames class kotlinx.** { volatile <fields>; }
# Needed for protobufs
-keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite { <fields>; }
# Our app is opensource no need to obsfucate
-dontobfuscate