From 56ffa0dfa2b3ea33f3fe5a7555bbb358c31ab4ba Mon Sep 17 00:00:00 2001 From: Mat Date: Fri, 22 Mar 2024 04:54:44 +0200 Subject: [PATCH] Fix ini4j classes being removed in release builds Fixes #74 --- app/build.gradle | 3 ++- app/proguard-rules.pro | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 app/proguard-rules.pro diff --git a/app/build.gradle b/app/build.gradle index 44683ff..fdbd743 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -20,7 +20,8 @@ android { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile( - 'proguard-android-optimize.txt') + 'proguard-android-optimize.txt'), + 'proguard-rules.pro' } } compileOptions { diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..a7b013c --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,5 @@ +-dontobfuscate + +-keep class org.ini4j.spi.IniBuilder +-keep class org.ini4j.spi.IniFormatter +-keep class org.ini4j.spi.IniParser