-
-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: enable app shrinking for release build type
- Loading branch information
1 parent
efd0c83
commit 2fdbff5
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# disable obfuscation | ||
-dontobfuscate | ||
|
||
# Keep JNI interface | ||
-keep class com.osfans.trime.core.* { *; } | ||
|
||
# remove kotlin null checks | ||
-assumenosideeffects class kotlin.jvm.internal.Intrinsics { | ||
static void checkNotNull(...); | ||
static void checkExpressionValueIsNotNull(...); | ||
static void checkNotNullExpressionValue(...); | ||
static void checkReturnedValueIsNotNull(...); | ||
static void checkFieldIsNotNull(...); | ||
static void checkParameterIsNotNull(...); | ||
static void checkNotNullParameter(...); | ||
} | ||
|
||
# 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 |