Configure minify

pull/1/head
Koitharu 6 years ago
parent b77fa95c7d
commit 4c2b3a8093

@ -34,8 +34,12 @@ android {
jvmTarget = JavaVersion.VERSION_1_8.toString() jvmTarget = JavaVersion.VERSION_1_8.toString()
} }
buildTypes { buildTypes {
debug {
applicationIdSuffix = ".debug"
}
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'
} }
} }

@ -1,21 +1,12 @@
# Add project specific ProGuard rules here. -dontobfuscate
# You can control the set of applied configuration files using the -assumenosideeffects class kotlin.jvm.internal.Intrinsics {
# proguardFiles setting in build.gradle. public static void checkExpressionValueIsNotNull(...);
# public static void checkNotNullExpressionValue(...);
# For more details, see public static void checkReturnedValueIsNotNull(...);
# http://developer.android.com/guide/developing/tools/proguard.html public static void checkFieldIsNotNull(...);
public static void checkParameterIsNotNull(...);
# If your project uses WebView with JS, uncomment the following }
# and specify the fully qualified class name to the JavaScript interface -keep class org.koitharu.kotatsu.core.db.entity.* { *; }
# class: -keepclassmembers public class * extends org.koitharu.kotatsu.core.parser.MangaRepository {
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { public <init>(...);
# public *; }
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Loading…
Cancel
Save