From eeb0598f688470a60fd1dca17bbbc81ddbb041a4 Mon Sep 17 00:00:00 2001 From: Gust Date: Tue, 14 May 2024 23:08:38 +0800 Subject: [PATCH] update android config file --- mobile/androidapp/app/CMakeLists.txt | 2 +- mobile/androidapp/local.properties | 9 +++++++++ mobile/c/glfm/glfm_platform_android.c | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 mobile/androidapp/local.properties diff --git a/mobile/androidapp/app/CMakeLists.txt b/mobile/androidapp/app/CMakeLists.txt index 2bba7fe80..b21dc1c6a 100644 --- a/mobile/androidapp/app/CMakeLists.txt +++ b/mobile/androidapp/app/CMakeLists.txt @@ -95,7 +95,7 @@ elseif (IOS) ) endif() -set(MINIJVM_APP_ORGANIZATION_IDENTIFIER "com.eglsgame") +set(MINIJVM_APP_ORGANIZATION_IDENTIFIER "org.minijvm") set(MINIJVM_APP_VERSION "1.0") set(MINIJVM_APP_VERSION_ITERATION 1) set(MINIJVM_APP_ASSETS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/assets) diff --git a/mobile/androidapp/local.properties b/mobile/androidapp/local.properties new file mode 100644 index 000000000..40ca9adb6 --- /dev/null +++ b/mobile/androidapp/local.properties @@ -0,0 +1,9 @@ +## This file must *NOT* be checked into Version Control Systems, +# as it contains information specific to your local configuration. +# +# Location of the SDK. This is only used by Gradle. +# For customization when using a Version Control System, please read the +# header note. +#Sun Jun 04 14:18:24 CST 2023 +ndk.dir=D\:\\android-sdk\\android-sdk-windows\\ndk-bundle +sdk.dir=D\:\\android-sdk\\android-sdk-windows diff --git a/mobile/c/glfm/glfm_platform_android.c b/mobile/c/glfm/glfm_platform_android.c index 3aa8e46ab..2d23e4198 100755 --- a/mobile/c/glfm/glfm_platform_android.c +++ b/mobile/c/glfm/glfm_platform_android.c @@ -2298,8 +2298,8 @@ int openOtherApp(const char *curl, const char *more, int detectAppInstalled){ jstring jstrMore = (*jni)->NewStringUTF(jni, more); glfm__callJavaMethodWithArgs(jni, app->activity->clazz, "openOtherApp", - "(Ljava/lang/String;Ljava/lang/String;I)I", Integer, jstrUrl, jstrMore, detectAppInstalled); - (*jni)->DeleteLocalRef(jni, jstr); + "(Ljava/lang/String;Ljava/lang/String;I)I", Int, jstrUrl, jstrMore, detectAppInstalled); + (*jni)->DeleteLocalRef(jni, jstrUrl); (*jni)->DeleteLocalRef(jni, jstrMore); glfm__clearJavaException() }