Skip to content

Commit ad379bd

Browse files
committed
fix: proguard
1 parent 8021c13 commit ad379bd

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

app/fdroid-rules.pro

+26
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,31 @@
44
<fields>;
55
}
66

7+
# Keep all classes in the org.xbill.DNS package and subpackages
8+
-keep class org.xbill.DNS.** { *; }
9+
-dontwarn org.xbill.DNS.**
10+
11+
# Preserve JNA classes if used (e.g., for IPHlpAPI on Windows)
712
-keep class com.sun.jna.** { *; }
813
-dontwarn com.sun.jna.**
14+
15+
# Keep DNS resolver configuration classes that might be loaded dynamically
16+
-keep class org.xbill.DNS.config.** { *; }
17+
-dontwarn org.xbill.DNS.config.**
18+
19+
# Preserve Lookup and related classes, which might use reflection
20+
-keep class org.xbill.DNS.Lookup { *; }
21+
-keep class org.xbill.DNS.Message { *; }
22+
-keep class org.xbill.DNS.Record { *; }
23+
24+
# Keep resource files (e.g., for default resolver configurations)
25+
-keepresource org/xbill/DNS/*.properties
26+
27+
# Prevent optimization issues with native or reflection-based calls
28+
-dontoptimize
29+
-dontshrink
30+
# Uncomment the above if errors persist, but use sparingly as they’re broad
31+
32+
# Suppress warnings about missing classes if not all features are used
33+
-dontwarn java.lang.management.**
34+
-dontwarn sun.nio.ch.**

app/proguard-rules.pro

+26
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,31 @@
2323
<fields>;
2424
}
2525

26+
# Keep all classes in the org.xbill.DNS package and subpackages
27+
-keep class org.xbill.DNS.** { *; }
28+
-dontwarn org.xbill.DNS.**
29+
30+
# Preserve JNA classes if used (e.g., for IPHlpAPI on Windows)
2631
-keep class com.sun.jna.** { *; }
2732
-dontwarn com.sun.jna.**
33+
34+
# Keep DNS resolver configuration classes that might be loaded dynamically
35+
-keep class org.xbill.DNS.config.** { *; }
36+
-dontwarn org.xbill.DNS.config.**
37+
38+
# Preserve Lookup and related classes, which might use reflection
39+
-keep class org.xbill.DNS.Lookup { *; }
40+
-keep class org.xbill.DNS.Message { *; }
41+
-keep class org.xbill.DNS.Record { *; }
42+
43+
# Keep resource files (e.g., for default resolver configurations)
44+
-keepresource org/xbill/DNS/*.properties
45+
46+
# Prevent optimization issues with native or reflection-based calls
47+
-dontoptimize
48+
-dontshrink
49+
# Uncomment the above if errors persist, but use sparingly as they’re broad
50+
51+
# Suppress warnings about missing classes if not all features are used
52+
-dontwarn java.lang.management.**
53+
-dontwarn sun.nio.ch.**

0 commit comments

Comments
 (0)