summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/android-project/app/proguard-rules.pro
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/SDL-3.2.8/android-project/app/proguard-rules.pro')
-rw-r--r--contrib/SDL-3.2.8/android-project/app/proguard-rules.pro76
1 files changed, 76 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/android-project/app/proguard-rules.pro b/contrib/SDL-3.2.8/android-project/app/proguard-rules.pro
new file mode 100644
index 0000000..1eeb90e
--- /dev/null
+++ b/contrib/SDL-3.2.8/android-project/app/proguard-rules.pro
@@ -0,0 +1,76 @@
1# Add project specific ProGuard rules here.
2# By default, the flags in this file are appended to flags specified
3# in [sdk]/tools/proguard/proguard-android.txt
4# You can edit the include path and order by changing the proguardFiles
5# directive in build.gradle.
6#
7# For more details, see
8# https://developer.android.com/build/shrink-code
9
10# Add any project specific keep options here:
11
12# If your project uses WebView with JS, uncomment the following
13# and specify the fully qualified class name to the JavaScript interface
14# class:
15#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16# public *;
17#}
18
19-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLActivity {
20 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
21 java.lang.String clipboardGetText();
22 boolean clipboardHasText();
23 void clipboardSetText(java.lang.String);
24 int createCustomCursor(int[], int, int, int, int);
25 void destroyCustomCursor(int);
26 android.content.Context getContext();
27 boolean getManifestEnvironmentVariables();
28 android.view.Surface getNativeSurface();
29 void initTouch();
30 boolean isAndroidTV();
31 boolean isChromebook();
32 boolean isDeXMode();
33 boolean isScreenKeyboardShown();
34 boolean isTablet();
35 void manualBackButton();
36 int messageboxShowMessageBox(int, java.lang.String, java.lang.String, int[], int[], java.lang.String[], int[]);
37 void minimizeWindow();
38 boolean openURL(java.lang.String);
39 void onNativePen(int, int, int , float , float , float);
40 void requestPermission(java.lang.String, int);
41 boolean showToast(java.lang.String, int, int, int, int);
42 boolean sendMessage(int, int);
43 boolean setActivityTitle(java.lang.String);
44 boolean setCustomCursor(int);
45 void setOrientation(int, int, boolean, java.lang.String);
46 boolean setRelativeMouseEnabled(boolean);
47 boolean setSystemCursor(int);
48 void setWindowStyle(boolean);
49 boolean shouldMinimizeOnFocusLoss();
50 boolean showTextInput(int, int, int, int, int);
51 boolean supportsRelativeMouse();
52 int openFileDescriptor(java.lang.String, java.lang.String);
53 boolean showFileDialog(java.lang.String[], boolean, boolean, int);
54}
55
56-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.HIDDeviceManager {
57 void closeDevice(int);
58 boolean initialize(boolean, boolean);
59 boolean openDevice(int);
60 boolean readReport(int, byte[], boolean);
61 int writeReport(int, byte[], boolean);
62}
63
64-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLAudioManager {
65 void registerAudioDeviceCallback();
66 void unregisterAudioDeviceCallback();
67 void audioSetThreadPriority(boolean, int);
68}
69
70-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLControllerManager {
71 void pollInputDevices();
72 void pollHapticDevices();
73 void hapticRun(int, float, int);
74 void hapticRumble(int, float, float, int);
75 void hapticStop(int);
76}