Skip to content

Commit c5bdec1

Browse files
committed
Merge branch 'feature/natives-3.0' of https://github.com/dotnet/Silk.NET into feature/natives-3.0
2 parents 4a47ce0 + 48221ff commit c5bdec1

File tree

7 files changed

+75
-0
lines changed

7 files changed

+75
-0
lines changed

sources/SDL/Native/android/SDL3.jar

0 Bytes
Binary file not shown.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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 requestPermission(java.lang.String, int);
40+
boolean showToast(java.lang.String, int, int, int, int);
41+
boolean sendMessage(int, int);
42+
boolean setActivityTitle(java.lang.String);
43+
boolean setCustomCursor(int);
44+
void setOrientation(int, int, boolean, java.lang.String);
45+
boolean setRelativeMouseEnabled(boolean);
46+
boolean setSystemCursor(int);
47+
void setWindowStyle(boolean);
48+
boolean shouldMinimizeOnFocusLoss();
49+
boolean showTextInput(int, int, int, int, int);
50+
boolean supportsRelativeMouse();
51+
int openFileDescriptor(java.lang.String, java.lang.String);
52+
boolean showFileDialog(java.lang.String[], boolean, boolean, int);
53+
}
54+
55+
-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.HIDDeviceManager {
56+
void closeDevice(int);
57+
boolean initialize(boolean, boolean);
58+
boolean openDevice(int);
59+
boolean readReport(int, byte[], boolean);
60+
int writeReport(int, byte[], boolean);
61+
}
62+
63+
-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLAudioManager {
64+
void registerAudioDeviceCallback();
65+
void unregisterAudioDeviceCallback();
66+
void audioSetThreadPriority(boolean, int);
67+
}
68+
69+
-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLControllerManager {
70+
void pollInputDevices();
71+
void pollHapticDevices();
72+
void hapticRun(int, float, int);
73+
void hapticRumble(int, float, float, int);
74+
void hapticStop(int);
75+
}
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)