Skip to content

Commit 8487d36

Browse files
committed
Updating obfuscation for R8
1 parent 7d6c00a commit 8487d36

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

example/proguard-rules.pro

+33-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,41 @@
1414

1515
# Uncomment this to preserve the line number information for
1616
# debugging stack traces.
17-
#-keepattributes SourceFile,LineNumberTable
17+
-keepattributes SourceFile,LineNumberTable
18+
-printconfiguration ~/tmp/full-r8-config.txt
1819

1920
# If you keep the line number information, uncomment this to
2021
# hide the original source file name.
2122
#-renamesourcefileattribute SourceFile
23+
-keep public class * extends android.view.View {
24+
public <init>(android.content.Context);
25+
}
2226
-dontwarn java.beans.ConstructorProperties
23-
-dontwarn java.beans.Transient
27+
-dontwarn java.beans.Transient
28+
29+
-keep class com.walletconnect.* { *; }
30+
-keep class com.walletconnect.wcmodal.client.* { *; }
31+
32+
-keepclasseswithmembernames class org.xmtp.proto.message.contents.* { *; }
33+
-keep class com.sun.jna.* { *; }
34+
-keep class uniffi.xmtpv3.* { *; }
35+
36+
-dontwarn java.awt.Component
37+
-dontwarn java.awt.GraphicsEnvironment
38+
-dontwarn java.awt.HeadlessException
39+
-dontwarn java.awt.Window
40+
41+
# Lifecycle
42+
-keep public interface androidx.lifecycle.** { *; }
43+
44+
-assumenosideeffects class android.util.Log {
45+
public static *** d(...);
46+
public static *** v(...);
47+
public static *** i(...);
48+
}
49+
50+
-dontwarn com.google.android.gms.**
51+
-keep public class com.google.android.gms.**
52+
-keep class com.google.android.gms.common.ConnectionResult {
53+
int SUCCESS;
54+
}

library/proguard-rules.pro

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@
2222

2323
-dontwarn java.awt.*
2424
-keep class com.sun.jna.* { *; }
25-
-keepclassmembers class * extends com.sun.jna.* { public *; }
25+
-keepclassmembers class * extends com.sun.jna.* { public *; }
26+
-keepclassmembers class * extends com.walletconnect.* { *; }

0 commit comments

Comments
 (0)