-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled shrinking, obfuscation, and optimization for release builds o…
…f the module.
- Loading branch information
1 parent
dc7eb9a
commit 5d921fc
Showing
2 changed files
with
34 additions
and
23 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 |
---|---|---|
@@ -1,21 +1,31 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle.kts. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
# Xposed | ||
-adaptresourcefilecontents META-INF/xposed/java_init.list | ||
-keepattributes RuntimeVisibleAnnotations | ||
-keep,allowobfuscation,allowoptimization public class * extends io.github.libxposed.api.XposedModule { | ||
public <init>(...); | ||
public void onPackageLoaded(...); | ||
public void onSystemServerLoaded(...); | ||
} | ||
-keep,allowoptimization,allowobfuscation @io.github.libxposed.api.annotations.* class * { | ||
@io.github.libxposed.api.annotations.BeforeInvocation <methods>; | ||
@io.github.libxposed.api.annotations.AfterInvocation <methods>; | ||
} | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
# Kotlin | ||
-assumenosideeffects class kotlin.jvm.internal.Intrinsics { | ||
public static void check*(...); | ||
public static void throw*(...); | ||
} | ||
-assumenosideeffects class java.util.Objects { | ||
public static ** requireNonNull(...); | ||
} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
# Strip debug log | ||
-assumenosideeffects class android.util.Log { | ||
public static int v(...); | ||
public static int d(...); | ||
} | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile | ||
# Obfuscation | ||
-repackageclasses | ||
-allowaccessmodification |