summaryrefslogtreecommitdiff
path: root/platform/android
AgeCommit message (Collapse)Author
2022-08-01File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde
This was removed in #63481, and we confirmed that it's better like this, but we add back the possibility to strip CR as an option, to optionally restore the previous behavior. For performance this is done directly in `String::parse_utf8`. Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR. Supersedes #63717.
2022-07-30Merge pull request #63563 from aaronfranke/export-archRémi Verschelde
2022-07-29Update export dialog to handle many architecturesAaron Franke
2022-07-29Make some editor export methods constAaron Franke
2022-07-29Remove Signal connect bindsJuan Linietsky
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
2022-07-27Merge pull request #63121 from aaronfranke/editor-export-splitRémi Verschelde
2022-07-26Address remaining scoped storage regressionsFredia Huya-Kouadio
- Accelerate common path used to check the storage scope for a given path - Update the logic for the `get_as_text()` method - previous logic loads the content of a text file one byte at a time
2022-07-26Split up editor export code into multiple filesAaron Franke
2022-07-25Code quality: Fix header guards consistencyRémi Verschelde
Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
2022-07-08Add static methods for creating Image and ImageTexturekobewi
2022-07-07Use clang as assembler to ensure preprocessing is done, and add assembler ↵bruvzg
"target" flag.
2022-07-05Add full support for Android scoped storage.Fredia Huya-Kouadio
This was done by refactoring directory and file access handling for the Android platform so that any general filesystem access type go through the Android layer. This allows us to validate whether the access is unrestricted, or whether it falls under scoped storage and thus act appropriately.
2022-07-03Merge pull request #62611 from akien-mga/android-preset-refactor-custom-buildRémi Verschelde
2022-07-03Android: Refactor Custom Build options in export presetRémi Verschelde
Instead of reusing the custom_template/ prefix which is actually only used for the prebuilt APK workflow, we add a new custom_build/ prefix. This is a slight compat breakage (users will have to redo their config) but enables us to group the Min SDK and Target SDK options where they make sense, and avoid reusing the previously hardcoded Target SDK 30 from Godot 3.4. Those two options are now strings instead of integers so that we can keep them empty by default, and show their default value using a placeholder. So some validation has been added to make sure they are proper ints. The upper bound on Target SDK was also removed as it's a common use case to use it to try to target newer released SDKs. But we warn the user that this wasn't validated by us. 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. Fixes #62465.
2022-07-02Fix exit code of --help and --version, and test them in CIJan Haller
Corrects prior regression which caused ERROR output and exit code of 1.
2022-06-26Merge pull request #61691 from madmiraal/android-ndk-23Rémi Verschelde
Upgrade Android NDK to r23 LTS
2022-06-25Merge pull request #62289 from madmiraal/fix-61816Fredia Huya-Kouadio
Remove broken scroll gesture on Android
2022-06-25Upgrade Android NDK to r23 LTSMarcel Admiraal
2022-06-23Update android:targetSdkVersion from 30 to 31Gustavo Maciel
Starting in August 2022, new apps will need to target API level 31 (Android 12) or higher and adjust for behavioral changes. Read more here: https://developer.android.com/google/play/requirements/target-sdk
2022-06-21Remove broken scroll gesture on AndroidMarcel Admiraal
2022-06-16Ensure joystick has been added or not already removed when processing inputMarcel Admiraal
2022-06-09Migrate the Godot Editor java source file to Kotlin.Fredia Huya-Kouadio
2022-06-08Add readable export errors.bruvzg
2022-06-01Merge pull request #61579 from madmiraal/android-kotlin-java-versionRémi Verschelde
Ensure Android Java and Kotlin compile to the same version
2022-06-01Ensure Android Java and Kotlin compile to the same versionMarcel Admiraal
2022-05-31Misc editor tweaks and polishes:Fredia Huya-Kouadio
- Using a bucketized approach to select the editor scale in order to avoid too high values - Add default app dimensions: used on Android devices with free floating app windows to set the default app frame - Add ability to launch the Game window in an adjacent frame when in multi window mode
2022-05-31Merge pull request #61573 from madmiraal/android-cleanupRémi Verschelde
Cleanup Android C++ code
2022-05-31Cleanup Android C++ codeMarcel Admiraal
2022-05-27Only use Android fullscreen theme for splash screenMarcel Admiraal
2022-05-23Merge pull request #61333 from m4gr3d/fix_restart_logic_mainRémi Verschelde
2022-05-23Fix the logic to restart the Godot applicationFredia Huya-Kouadio
2022-05-23Remove duplicate Android sensor listener registrationsMarcel Admiraal
2022-05-20Add a new HashSet templatereduz
* Intended to replace RBSet in most cases. * Optimized for iteration speed
2022-05-19Add dedicated macros for property name extractionHaoyu Qiu
* Replace case-by-case extraction with PNAME & GNAME * Fix group handling when group hint begins with property name * Exclude properties that are PROPERTY_USAGE_NO_EDITOR * Extract missing ADD_ARRAY*, ADD_SUBGROUP* macros
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-05-13Increase compiler optimization when using `target=release` on iOS/AndroidHugo Locurcio
2022-05-11Fix ZipIO crash when reused (and possible leaks).bruvzg
2022-05-03Merge pull request #60553 from madmiraal/separate-display_safe_areaRémi Verschelde
2022-05-03Merge pull request #60601 from touilleMan/gdextension_get_library_pathRémi Verschelde
Add GDNativeInterface::get_library_path to GDExtension
2022-05-02Merge pull request #60638 from m4gr3d/support_hand_tracking_v2_mainRémi Verschelde
2022-05-02Fix screen_get_usable_rect returning display safe areaMarcel Admiraal
2022-05-02Merge pull request #60551 from madmiraal/implement-3466Rémi Verschelde
Add a method for obtaining display cutouts on Android
2022-04-29Add GDNativeInterface::get_library_path to GDExtensionEmmanuel Leblond
2022-04-29Merge pull request #60563 from madmiraal/fix-60562Rémi Verschelde
2022-04-28Implement text-to-speech support on Android, iOS, HTML5, Linux, macOS and ↵bruvzg
Windows. Implement TextServer word break method.
2022-04-27Update Meta hand tracking versionFredy Huya-Kouadio
https://developer.oculus.com/blog/presence-platforms-hand-tracking-api-gets-an-upgrade/
2022-04-27Check for null when retrieving clip data item text on AndroidMarcel Admiraal
2022-04-27Merge pull request #59979 from bruvzg/cpp_check2Rémi Verschelde
2022-04-26Add a method for obtaining display cutouts on AndroidMarcel Admiraal
2022-04-25Merge pull request #60433 from madmiraal/remove-superfluous-null-checkRémi Verschelde
Remove superfluous null check