Skip to content

Commit

Permalink
Revert "Separate android initialization from Activity (#11891)"
Browse files Browse the repository at this point in the history
This reverts commit d14c93c.

This is a major breaking change for activities that inherit SDLActivity
  • Loading branch information
slouken committed Jan 10, 2025
1 parent 61f13b9 commit 4231848
Show file tree
Hide file tree
Showing 16 changed files with 2,154 additions and 2,317 deletions.
5 changes: 0 additions & 5 deletions android-project/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ android {
lint {
abortOnError false
}
compileOptions {
// our minSdk, lollipop (API 21) uses java 7
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion android-project/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# public *;
#}

-keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLActivityComponent {
-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();
Expand Down
15 changes: 0 additions & 15 deletions android-project/app/src/main/java/org/libsdl/app/ActivityHook.java

This file was deleted.

4 changes: 2 additions & 2 deletions android-project/app/src/main/java/org/libsdl/app/SDL.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class SDL {
// This function should be called first and sets up the native code
// so it can call into the Java classes
public static void setupJNI() {
SDLActivityComponent.nativeSetupJNI();
SDLActivity.nativeSetupJNI();
SDLAudioManager.nativeSetupJNI();
SDLControllerManager.nativeSetupJNI();
}
Expand All @@ -22,7 +22,7 @@ public static void setupJNI() {
public static void initialize() {
setContext(null);

SDLActivityComponent.initialize();
SDLActivity.initialize();
SDLAudioManager.initialize();
SDLControllerManager.initialize();
}
Expand Down
Loading

0 comments on commit 4231848

Please sign in to comment.