Commit ad379bd 1 parent 8021c13 commit ad379bd Copy full SHA for ad379bd
File tree 2 files changed +52
-0
lines changed
2 files changed +52
-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
+ # 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.**
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
+ # 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.**
You can’t perform that action at this time.
0 commit comments