2022-12-02 21:15:34 +01:00
|
|
|
diff -Naur pyjnius.orig/jnius/env.py pyjnius/jnius/env.py
|
|
|
|
--- pyjnius.orig/jnius/env.py 2022-05-28 11:16:02.000000000 +0200
|
|
|
|
+++ pyjnius/jnius/env.py 2022-05-28 11:18:30.000000000 +0200
|
|
|
|
@@ -268,7 +268,7 @@
|
|
|
|
|
|
|
|
class AndroidJavaLocation(UnixJavaLocation):
|
|
|
|
def get_libraries(self):
|
|
|
|
- return ['SDL2', 'log']
|
|
|
|
+ return ['main', 'log']
|
|
|
|
|
|
|
|
def get_include_dirs(self):
|
|
|
|
# When cross-compiling for Android, we should not use the include dirs
|
|
|
|
diff -Naur pyjnius.orig/jnius/jnius_jvm_android.pxi pyjnius/jnius/jnius_jvm_android.pxi
|
|
|
|
--- pyjnius.orig/jnius/jnius_jvm_android.pxi 2022-05-28 11:16:02.000000000 +0200
|
|
|
|
+++ pyjnius/jnius/jnius_jvm_android.pxi 2022-05-28 11:17:17.000000000 +0200
|
|
|
|
@@ -1,6 +1,6 @@
|
2017-08-13 03:24:00 +02:00
|
|
|
# on android, rely on SDL to get the JNI env
|
2022-12-02 21:15:34 +01:00
|
|
|
-cdef extern JNIEnv *SDL_AndroidGetJNIEnv()
|
2017-08-13 03:24:00 +02:00
|
|
|
+cdef extern JNIEnv *WebView_AndroidGetJNIEnv()
|
|
|
|
|
|
|
|
|
2022-12-02 21:15:34 +01:00
|
|
|
cdef JNIEnv *get_platform_jnienv() except NULL:
|
|
|
|
- return <JNIEnv*>SDL_AndroidGetJNIEnv()
|
|
|
|
+ return <JNIEnv*>WebView_AndroidGetJNIEnv()
|