mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Remove the restriction on supported types for Godot Android plugins
The Android plugin implementation is updated to use `JavaClassWrapper` which was fixed in https://github.com/godotengine/godot/pull/96182, thus removing the limitation on supported types. Note that `JavaClassWrapper` has also been updated in order to only provide access to public methods and constructor to GDScript.
This commit is contained in:
parent
1fc8208765
commit
07cae26abe
6 changed files with 50 additions and 207 deletions
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
#include "android_input_handler.h"
|
||||
#include "api/java_class_wrapper.h"
|
||||
#include "api/jni_singleton.h"
|
||||
#include "dir_access_jandroid.h"
|
||||
#include "display_server_android.h"
|
||||
#include "file_access_android.h"
|
||||
|
|
@ -209,8 +208,7 @@ JNIEXPORT jboolean JNICALL Java_org_godotengine_godot_GodotLib_setup(JNIEnv *env
|
|||
|
||||
TTS_Android::setup(p_godot_tts);
|
||||
|
||||
java_class_wrapper = memnew(JavaClassWrapper(godot_java->get_activity()));
|
||||
GDREGISTER_CLASS(JNISingleton);
|
||||
java_class_wrapper = memnew(JavaClassWrapper);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue