godot/platform/android
Rémi Verschelde 431558d419 Android: Only warn when Target SDK is non default
The validation logic for Min Sdk and Target Sdk was flawed as it triggers
errors for users not using Custom Build even if they never modified the
values themselves.

The default values for those settings get saved in `export_presets.cfg` and
thus the error gets triggered when moving from 3.4.4 or earlier to 3.4.5, as
the target SDK changed from 30 to 31.

So instead we just show a warning to make users aware of this non-default
Min Sdk or mostly Target Sdk that might be in their preset.

We also warn when they do use Custom Build as the target SDK 30 would likely
still be an upgrade issue and not an intentional choice, especially given
that Google Play will now require SDK 31.

The export info dialog is now exclusive so that when it doesn't auto-close,
i.e. when it errors, you don't close it by mistake by clicking outside.

The valid range for both options is no longer limited to Godot's own default
target SDK, but can accept higher values (they are not guaranteed to work,
but they might).

To be able to display warning, the relevant code is backported from 30ee208bd.

Fixes #62465 without breaking compatibility for 3.4.5.
2022-07-03 17:44:34 +02:00
..
api Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
export Android: Only warn when Target SDK is non default 2022-07-03 17:44:34 +02:00
java Update android:targetSdkVersion from 30 to 31 2022-06-23 16:00:07 +02:00
plugin Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
README.md Add logo attribution for Android, HTML5 and Linux platform icons 2021-09-21 17:14:59 +02:00
SCsub Switch to input buffering on Android 2021-08-08 13:41:27 +02:00
android_input_handler.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
android_input_handler.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
android_keys_utils.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
android_keys_utils.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
audio_driver_opensl.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
audio_driver_opensl.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
detect.py [3.x] Misc build system fixes 2021-12-14 17:29:59 +01:00
dir_access_jandroid.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
dir_access_jandroid.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
file_access_android.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
file_access_android.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
java_class_wrapper.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
java_godot_io_wrapper.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
java_godot_io_wrapper.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
java_godot_lib_jni.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
java_godot_lib_jni.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
java_godot_wrapper.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
java_godot_wrapper.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
jni_utils.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
jni_utils.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
logo.png Add logo attribution for Android, HTML5 and Linux platform icons 2021-09-21 17:14:59 +02:00
net_socket_android.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
net_socket_android.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
os_android.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
os_android.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
platform_config.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
power_android.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
power_android.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
run_icon.png
string_android.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
thread_jandroid.cpp Update copyright statements to 2022 2022-01-13 16:00:37 +01:00
thread_jandroid.h Update copyright statements to 2022 2022-01-13 16:00:37 +01:00

README.md

Android platform port

This folder contains the Java and C++ (JNI) code for the Android platform port, using Gradle as a build system.

Artwork license

logo.png and run_icon.png are licensed under Creative Commons Attribution 3.0 Unported per the Android logo usage guidelines:

The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.