mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Bump the minimum supported SDK version to 24
Raise the minimum supported Android version from Android 5 (Lollipop) to Android 7 (Nougat).
This commit is contained in:
parent
8f78e7510d
commit
c29545f793
15 changed files with 96 additions and 180 deletions
|
@ -40,11 +40,10 @@ GodotJavaViewWrapper::GodotJavaViewWrapper(jobject godot_view) {
|
|||
|
||||
_cls = (jclass)env->NewGlobalRef(env->GetObjectClass(godot_view));
|
||||
|
||||
_configure_pointer_icon = env->GetMethodID(_cls, "configurePointerIcon", "(ILjava/lang/String;FF)V");
|
||||
_set_pointer_icon = env->GetMethodID(_cls, "setPointerIcon", "(I)V");
|
||||
|
||||
int android_device_api_level = android_get_device_api_level();
|
||||
if (android_device_api_level >= __ANDROID_API_N__) {
|
||||
_configure_pointer_icon = env->GetMethodID(_cls, "configurePointerIcon", "(ILjava/lang/String;FF)V");
|
||||
_set_pointer_icon = env->GetMethodID(_cls, "setPointerIcon", "(I)V");
|
||||
}
|
||||
if (android_device_api_level >= __ANDROID_API_O__) {
|
||||
_request_pointer_capture = env->GetMethodID(_cls, "requestPointerCapture", "()V");
|
||||
_release_pointer_capture = env->GetMethodID(_cls, "releasePointerCapture", "()V");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue