android: add SDL classes and some engine methods to proguard rules file

This commit is contained in:
Alibek Omarov 2024-11-20 12:41:38 +03:00
parent a4beb7d493
commit f1806cbf2e

View file

@ -1,21 +1,15 @@
# Add project specific ProGuard rules here. # SDL2 branch (unlike SDL3) doesn't have proguard file
# You can control the set of applied configuration files using the # As SDL3 migration is planned, which we can easily do it on platforms
# proguardFiles setting in build.gradle. # unsupported by GoldSrc by the way, just prevent whole org.libsdl.app
# # namespace from proguard optimization
# For more details, see -keep public class org.libsdl.app.* { public static *; }
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following -keep,includedescriptorclasses,allowoptimization class su.xash.engine.XashActivity
# and specify the fully qualified class name to the JavaScript interface {
# class: java.lang.String loadAndroidID();
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { java.lang.String getAndroidID();
# public *; void saveAndroidID(java.lang.String);
#} java.lang.String getCallingPackage();
java.lang.String[] getAssetsList(boolean, java.lang.String);
# Uncomment this to preserve the line number information for android.content.res.AssetManager getAssets(boolean);
# debugging stack traces. }
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile