From dec7875a6e23212021e4d9080330a42832dfe02a Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 15 Jun 2021 01:40:19 +0000
Subject: [PATCH] update SDL soruce to 2.0.14
---
source/android-project/app/src/main/java/org/libsdl/app/SDL.java | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/source/android-project/app/src/main/java/org/libsdl/app/SDL.java b/source/android-project/app/src/main/java/org/libsdl/app/SDL.java
index fb7f731..dafc0cb 100644
--- a/source/android-project/app/src/main/java/org/libsdl/app/SDL.java
+++ b/source/android-project/app/src/main/java/org/libsdl/app/SDL.java
@@ -2,7 +2,8 @@
import android.content.Context;
-import java.lang.reflect.*;
+import java.lang.Class;
+import java.lang.reflect.Method;
/**
SDL library initialization
@@ -51,16 +52,16 @@
// To use ReLinker, just add it as a dependency. For more information, see
// https://github.com/KeepSafe/ReLinker for ReLinker's repository.
//
- Class relinkClass = mContext.getClassLoader().loadClass("com.getkeepsafe.relinker.ReLinker");
- Class relinkListenerClass = mContext.getClassLoader().loadClass("com.getkeepsafe.relinker.ReLinker$LoadListener");
- Class contextClass = mContext.getClassLoader().loadClass("android.content.Context");
- Class stringClass = mContext.getClassLoader().loadClass("java.lang.String");
+ Class<?> relinkClass = mContext.getClassLoader().loadClass("com.getkeepsafe.relinker.ReLinker");
+ Class<?> relinkListenerClass = mContext.getClassLoader().loadClass("com.getkeepsafe.relinker.ReLinker$LoadListener");
+ Class<?> contextClass = mContext.getClassLoader().loadClass("android.content.Context");
+ Class<?> stringClass = mContext.getClassLoader().loadClass("java.lang.String");
// Get a 'force' instance of the ReLinker, so we can ensure libraries are reinstalled if
// they've changed during updates.
Method forceMethod = relinkClass.getDeclaredMethod("force");
Object relinkInstance = forceMethod.invoke(null);
- Class relinkInstanceClass = relinkInstance.getClass();
+ Class<?> relinkInstanceClass = relinkInstance.getClass();
// Actually load the library!
Method loadMethod = relinkInstanceClass.getDeclaredMethod("loadLibrary", contextClass, stringClass, stringClass, relinkListenerClass);
@@ -77,7 +78,7 @@
catch (final SecurityException se) {
throw se;
}
- }
+ }
}
protected static Context mContext;
--
Gitblit v1.9.3