update android pom, proguard

This commit is contained in:
Anthony Calosa
2024-09-27 06:37:44 +08:00
parent 352967c8b8
commit 83e28d65f6
3 changed files with 6 additions and 2 deletions

Binary file not shown.

View File

@@ -177,7 +177,8 @@
<groupId>com.badlogicgames.gdx-controllers</groupId> <groupId>com.badlogicgames.gdx-controllers</groupId>
<artifactId>gdx-controllers-android</artifactId> <artifactId>gdx-controllers-android</artifactId>
<version>2.2.3</version> <version>2.2.3</version>
<type>aar</type> <scope>system</scope>
<systemPath>${pom.basedir}/libs/gdx-controllers-android.jar</systemPath>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>com.badlogicgames.gdx</groupId> <groupId>com.badlogicgames.gdx</groupId>

View File

@@ -2,8 +2,10 @@
#-optimizationpasses 3 #-optimizationpasses 3
-dontusemixedcaseclassnames -dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclasses
# disable the -dontpreverify since it produces tons of warning when compiled using Android 14 and newer Build-tools
#-dontpreverify #-dontpreverify
-verbose -verbose
# IntelliJ marks -android is invalid since the default inspection uses R8, we use Proguard exclusively and -android is available.
-android -android
# https://stackoverflow.com/a/32615580 # https://stackoverflow.com/a/32615580
-optimizations !code/simplification/*,!field/*,!class/merging/*,!code/allocation/variable,!library/gson,!class/unboxing/enum -optimizations !code/simplification/*,!field/*,!class/merging/*,!code/allocation/variable,!library/gson,!class/unboxing/enum
@@ -102,7 +104,8 @@
-keep public class * extends android.content.ContentProvider -keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference -keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService # ILicensingService is not available on robolectric dependency
#-keep public class com.android.vending.licensing.ILicensingService
-keep public class * extends com.badlogic.gdx.Application -keep public class * extends com.badlogic.gdx.Application
-keepclasseswithmembernames,includedescriptorclasses class * { -keepclasseswithmembernames,includedescriptorclasses class * {