Commit e1e7e27 1 parent 8021c13 commit e1e7e27 Copy full SHA for e1e7e27
File tree 2 files changed +40
-0
lines changed
2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 4
4
<fields>;
5
5
}
6
6
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)
7
12
-keep class com.sun.jna.** { *; }
8
13
-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.**
Original file line number Diff line number Diff line change 23
23
<fields>;
24
24
}
25
25
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)
26
31
-keep class com.sun.jna.** { *; }
27
32
-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.**
You can’t perform that action at this time.
0 commit comments