From 6aaedb813fa11ba0679c3051bc2eb28646b9506c Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 30 Aug 2025 16:53:58 -0700 Subject: Update to SDL3 --- .../android-project/app/proguard-rules.pro | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 src/contrib/SDL-3.2.20/android-project/app/proguard-rules.pro (limited to 'src/contrib/SDL-3.2.20/android-project/app/proguard-rules.pro') diff --git a/src/contrib/SDL-3.2.20/android-project/app/proguard-rules.pro b/src/contrib/SDL-3.2.20/android-project/app/proguard-rules.pro new file mode 100644 index 0000000..5f8ee6a --- /dev/null +++ b/src/contrib/SDL-3.2.20/android-project/app/proguard-rules.pro @@ -0,0 +1,78 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in [sdk]/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# https://developer.android.com/build/shrink-code + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLActivity { + java.lang.String nativeGetHint(java.lang.String); # Java-side doesn't use this, so it gets minified, but C-side still tries to register it + java.lang.String clipboardGetText(); + boolean clipboardHasText(); + void clipboardSetText(java.lang.String); + int createCustomCursor(int[], int, int, int, int); + void destroyCustomCursor(int); + android.content.Context getContext(); + boolean getManifestEnvironmentVariables(); + android.view.Surface getNativeSurface(); + void initTouch(); + boolean isAndroidTV(); + boolean isChromebook(); + boolean isDeXMode(); + boolean isScreenKeyboardShown(); + boolean isTablet(); + void manualBackButton(); + int messageboxShowMessageBox(int, java.lang.String, java.lang.String, int[], int[], java.lang.String[], int[]); + void minimizeWindow(); + boolean openURL(java.lang.String); + void onNativePen(int, int, int , float , float , float); + void requestPermission(java.lang.String, int); + boolean showToast(java.lang.String, int, int, int, int); + boolean sendMessage(int, int); + boolean setActivityTitle(java.lang.String); + boolean setCustomCursor(int); + void setOrientation(int, int, boolean, java.lang.String); + boolean setRelativeMouseEnabled(boolean); + boolean setSystemCursor(int); + void setWindowStyle(boolean); + boolean shouldMinimizeOnFocusLoss(); + boolean showTextInput(int, int, int, int, int); + boolean supportsRelativeMouse(); + int openFileDescriptor(java.lang.String, java.lang.String); + boolean showFileDialog(java.lang.String[], boolean, boolean, int); + java.lang.String getPreferredLocales(); + java.lang.String formatLocale(java.util.Locale); +} + +-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.HIDDeviceManager { + void closeDevice(int); + boolean initialize(boolean, boolean); + boolean openDevice(int); + boolean readReport(int, byte[], boolean); + int writeReport(int, byte[], boolean); +} + +-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLAudioManager { + void registerAudioDeviceCallback(); + void unregisterAudioDeviceCallback(); + void audioSetThreadPriority(boolean, int); +} + +-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLControllerManager { + void pollInputDevices(); + void pollHapticDevices(); + void hapticRun(int, float, int); + void hapticRumble(int, float, float, int); + void hapticStop(int); +} -- cgit v1.2.3