Skip to content

Commit e1e7e27

Browse files
authored
fix: proguard (#590)
1 parent 8021c13 commit e1e7e27

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

app/fdroid-rules.pro

+20
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,25 @@
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+
-keep class org.xbill.DNS.** { *; }
20+
21+
# Prevent optimization issues with native or reflection-based calls
22+
-dontoptimize
23+
-dontshrink
24+
# Uncomment the above if errors persist, but use sparingly as they’re broad
25+
26+
# Suppress warnings about missing classes if not all features are used
27+
-dontwarn java.lang.management.**
28+
-dontwarn sun.nio.ch.**

app/proguard-rules.pro

+20
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,25 @@
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+
-keep class org.xbill.DNS.** { *; }
39+
40+
# Prevent optimization issues with native or reflection-based calls
41+
-dontoptimize
42+
-dontshrink
43+
# Uncomment the above if errors persist, but use sparingly as they’re broad
44+
45+
# Suppress warnings about missing classes if not all features are used
46+
-dontwarn java.lang.management.**
47+
-dontwarn sun.nio.ch.**

0 commit comments

Comments
 (0)