From 1c9dae7cacda283634d6af5dba809195de9a75fa Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Sat, 6 May 2023 04:19:41 -0400 Subject: [PATCH] android: Update progard to fix settings crash R8 full mode was removing important classes from Wini that would cause a crash on saving settings. This keeps the relevant classes and suppresses warnings about irrelevant ones. --- src/android/app/proguard-rules.pro | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/android/app/proguard-rules.pro b/src/android/app/proguard-rules.pro index 002f641ea..13cfff1ba 100644 --- a/src/android/app/proguard-rules.pro +++ b/src/android/app/proguard-rules.pro @@ -1,6 +1,11 @@ # To get usable stack traces -dontobfuscate +# Prevents crashing when using Wini +-keep class org.ini4j.spi.IniParser +-keep class org.ini4j.spi.IniBuilder +-keep class org.ini4j.spi.IniFormatter + # Suppress warnings for R8 -dontwarn org.bouncycastle.jsse.BCSSLParameters -dontwarn org.bouncycastle.jsse.BCSSLSocket @@ -11,3 +16,6 @@ -dontwarn org.openjsse.javax.net.ssl.SSLParameters -dontwarn org.openjsse.javax.net.ssl.SSLSocket -dontwarn org.openjsse.net.ssl.OpenJSSE +-dontwarn java.beans.Introspector +-dontwarn java.beans.VetoableChangeListener +-dontwarn java.beans.VetoableChangeSupport