Skip to content

Commit 30eefb7

Browse files
committed
update android to SDL 2.30.8
1 parent a8a6f26 commit 30eefb7

File tree

12 files changed

+160
-372
lines changed

12 files changed

+160
-372
lines changed

android/app/jni/Application.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
88

99
# Min runtime API level
10-
APP_PLATFORM=android-28
10+
APP_PLATFORM=android-16

android/app/jni/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.11)
1+
cmake_minimum_required(VERSION 3.6)
22

33
project(GAME)
44

android/app/jni/src/Android.mk

Lines changed: 0 additions & 18 deletions
This file was deleted.

android/app/jni/src/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

android/app/proguard-rules.pro

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -15,84 +15,3 @@
1515
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
1616
# public *;
1717
#}
18-
19-
-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLInputConnection {
20-
void nativeCommitText(java.lang.String, int);
21-
void nativeGenerateScancodeForUnichar(char);
22-
}
23-
24-
-keep,includedescriptorclasses class org.libsdl.app.SDLActivity {
25-
# for some reason these aren't compatible with allowoptimization modifier
26-
boolean supportsRelativeMouse();
27-
void setWindowStyle(boolean);
28-
}
29-
30-
-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLActivity {
31-
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
32-
boolean onNativeSoftReturnKey();
33-
void onNativeKeyboardFocusLost();
34-
boolean isScreenKeyboardShown();
35-
android.util.DisplayMetrics getDisplayDPI();
36-
java.lang.String clipboardGetText();
37-
boolean clipboardHasText();
38-
void clipboardSetText(java.lang.String);
39-
int createCustomCursor(int[], int, int, int, int);
40-
void destroyCustomCursor(int);
41-
android.content.Context getContext();
42-
boolean getManifestEnvironmentVariables();
43-
android.view.Surface getNativeSurface();
44-
void initTouch();
45-
boolean isAndroidTV();
46-
boolean isChromebook();
47-
boolean isDeXMode();
48-
boolean isTablet();
49-
void manualBackButton();
50-
int messageboxShowMessageBox(int, java.lang.String, java.lang.String, int[], int[], java.lang.String[], int[]);
51-
void minimizeWindow();
52-
int openURL(java.lang.String);
53-
void requestPermission(java.lang.String, int);
54-
int showToast(java.lang.String, int, int, int, int);
55-
boolean sendMessage(int, int);
56-
boolean setActivityTitle(java.lang.String);
57-
boolean setCustomCursor(int);
58-
void setOrientation(int, int, boolean, java.lang.String);
59-
boolean setRelativeMouseEnabled(boolean);
60-
boolean setSystemCursor(int);
61-
boolean shouldMinimizeOnFocusLoss();
62-
boolean showTextInput(int, int, int, int);
63-
}
64-
65-
-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.HIDDeviceManager {
66-
boolean initialize(boolean, boolean);
67-
boolean openDevice(int);
68-
int sendOutputReport(int, byte[]);
69-
int sendFeatureReport(int, byte[]);
70-
boolean getFeatureReport(int, byte[]);
71-
void closeDevice(int);
72-
}
73-
74-
-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLAudioManager {
75-
int[] getAudioOutputDevices();
76-
int[] getAudioInputDevices();
77-
int[] audioOpen(int, int, int, int, int);
78-
void audioWriteFloatBuffer(float[]);
79-
void audioWriteShortBuffer(short[]);
80-
void audioWriteByteBuffer(byte[]);
81-
void audioClose();
82-
int[] captureOpen(int, int, int, int, int);
83-
int captureReadFloatBuffer(float[], boolean);
84-
int captureReadShortBuffer(short[], boolean);
85-
int captureReadByteBuffer(byte[], boolean);
86-
void captureClose();
87-
void audioSetThreadPriority(boolean, int);
88-
native int nativeSetupJNI();
89-
native void removeAudioDevice(boolean, int);
90-
native void addAudioDevice(boolean, int);
91-
}
92-
93-
-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLControllerManager {
94-
void pollInputDevices();
95-
void pollHapticDevices();
96-
void hapticRun(int, float, int);
97-
void hapticStop(int);
98-
}

android/app/src/main/java/org/libsdl/app/HIDDeviceManager.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,7 @@ private void initializeUSB() {
193193
filter.addAction(UsbManager.ACTION_USB_DEVICE_ATTACHED);
194194
filter.addAction(UsbManager.ACTION_USB_DEVICE_DETACHED);
195195
filter.addAction(HIDDeviceManager.ACTION_USB_PERMISSION);
196-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
197-
mContext.registerReceiver(mUsbBroadcast, filter, Context.RECEIVER_EXPORTED);
198-
} else {
199-
mContext.registerReceiver(mUsbBroadcast, filter);
200-
}
196+
mContext.registerReceiver(mUsbBroadcast, filter);
201197

202198
for (UsbDevice usbDevice : mUsbManager.getDeviceList().values()) {
203199
handleUsbDeviceAttached(usbDevice);

android/app/src/main/java/org/libsdl/app/SDLActivity.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
public class SDLActivity extends Activity implements View.OnSystemUiVisibilityChangeListener {
6161
private static final String TAG = "SDL";
6262
private static final int SDL_MAJOR_VERSION = 2;
63-
private static final int SDL_MINOR_VERSION = 32;
64-
private static final int SDL_MICRO_VERSION = 0;
63+
private static final int SDL_MINOR_VERSION = 30;
64+
private static final int SDL_MICRO_VERSION = 8;
6565
/*
6666
// Display InputType.SOURCE/CLASS of events and devices
6767
//
@@ -790,9 +790,6 @@ public void handleMessage(Message msg) {
790790
window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
791791
SDLActivity.mFullscreenModeActive = false;
792792
}
793-
if (Build.VERSION.SDK_INT >= 28 /* Android 9 (Pie) */) {
794-
window.getAttributes().layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
795-
}
796793
}
797794
} else {
798795
Log.e(TAG, "error handling message, getContext() returned no Activity");
10.5 KB
Binary file not shown.
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
#Thu Nov 11 18:20:34 PST 2021
12
distributionBase=GRADLE_USER_HOME
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
24
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
4-
networkTimeout=10000
5-
validateDistributionUrl=true
6-
zipStoreBase=GRADLE_USER_HOME
75
zipStorePath=wrapper/dists
6+
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)