From 6e7e828eb8ffed1085f49503a293b9398e1437fb Mon Sep 17 00:00:00 2001 From: Jonathan Almeida Date: Mon, 29 Sep 2025 21:02:36 -0400 Subject: [PATCH] Update recommended Android proguard rules With R8 fullMode enabled, classes that extend from `com.sun.jna.*` are all removed, so we should be explicit to include those. --- www/FrequentlyAskedQuestions.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/FrequentlyAskedQuestions.md b/www/FrequentlyAskedQuestions.md index 1681cbf980..c216ce7331 100644 --- a/www/FrequentlyAskedQuestions.md +++ b/www/FrequentlyAskedQuestions.md @@ -218,6 +218,7 @@ If you're using Proguard, you should also add the following to your Proguard rul ``` -dontwarn java.awt.* -keep class com.sun.jna.* { *; } +-keep class * extends com.sun.jna.* { *; } -keepclassmembers class * extends com.sun.jna.* { public *; } ``` @@ -288,4 +289,4 @@ ant -lib lib/clover.jar clover ``` The result is placed in `$JNA_BASE/build/reports/clover` and can be opened with -a webbrowser. \ No newline at end of file +a webbrowser.