summaryrefslogtreecommitdiffstats
path: root/platform/android
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Merge pull request #96439 from darksylinc/matias-TheForge-pr03-rebasedClay John2024-10-296-0/+80
| |\ \ \ | | |/ / | |/| | Add Swappy & Pre-Transformed Swapchain
| | * | Add Swappy & Pre-Transformed SwapchainMatias N. Goldberg2024-10-286-0/+80
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds Swappy for Android for stable frame pacing - Implements pre-transformed Swapchain so that Godot's compositor is in charge of rotating the screen instead of Android's compositor (performance optimization for phones that don't have HW rotator) ============================ The work was performed by collaboration of TheForge and Google. I am merely splitting it up into smaller PRs and cleaning it up. Changes from original PR: - Removed "display/window/frame_pacing/android/target_frame_rate" option to use Engine::get_max_fps instead. - Target framerate can be changed at runtime using Engine::set_max_fps. - Swappy is enabled by default. - Added documentation. - enable_auto_swap setting is replaced with swappy_mode.
* | | Merge pull request #818 from Spartan322/fixup/copyright-headersGeorge L. Albany2024-10-2787-174/+174
|\ \ \ | | | | | | | | Fix copyright headers referring to Godot
| * | | Fix copyright headers referring to GodotSpartan3222024-10-2787-174/+174
| | | |
* | | | Merge commit godotengine/godot@61accf060515416da07d913580419fd8c8490f7bSpartan3222024-10-262-6/+10
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | Merge pull request #97771 from dsnopek/openxr-linux-eglThaddeus Crews2024-10-251-0/+8
| |\ \ | | | | | | | | | | | | OpenXR: Add support for Wayland on Linux
| | * | OpenXR: Add support for Wayland on LinuxDavid Snopek2024-10-041-0/+8
| | | |
| * | | Merge pull request #97555 from dustdfg/platform_methods/extract_validate_archThaddeus Crews2024-10-251-6/+2
| |\ \ \ | | | | | | | | | | | | | | | Build System: Extract `validate_arch` helper functions
| | * | | Build System: Extract `validate_arch` helper functionYevhen Babiichuk (DustDFG)2024-10-061-6/+2
| | | |/ | | |/| | | | | | | | | Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
* | | | Merge commit godotengine/godot@1015a481ff43edb1126ab39a147fefda290131e5Spartan3222024-10-242-4/+2
|\| | |
| * | | Merge pull request #98427 from syntaxerror247/document-immersive-modeThaddeus Crews2024-10-241-1/+1
| |\ \ \ | | | | | | | | | | | | | | | Add documentation for Android immersive mode
| | * | | Update documentation for Android immersive modeAnish Mishra2024-10-221-1/+1
| | | | |
| * | | | Merge pull request #98380 from RandomShaper/mobile_strict_aliasThaddeus Crews2024-10-241-3/+1
| |\ \ \ \ | | |/ / / | |/| | | | | | | | Android & iOS: Enable strict aliasing
| | * | | Android & iOS: Enable strict aliasingPedro J. Estébanez2024-10-211-3/+1
| | | | |
* | | | | Merge commit godotengine/godot@b3bcb2dc14691f7729984128dca26a844f662fa1Spartan3222024-10-221-0/+1
|\| | | |
| * | | | Don't include `core/io/image.h` in `core/os/os.h`Yevhen Babiichuk (DustDFG)2024-10-181-0/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `core/os/os.h` doesn't use `core/io/image.h`. It just brings transitive dependencies. Lots of dependencies because `core/os/os.h` is transitively included in almost every file of godot Also added `core/io/image.h` into files^1 where `Ref<Image>` and `core/os/os.h` were used to prevent obscure errors involving `Ref<Image>` ^1 except those which include `core/io/image_loader.h` or `core/io/image.h` by corresponding .h file with the same name Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com> Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
* | | | Merge commit godotengine/godot@80f0b33313dae52d072ba2771a88ebcc4f0b4d6dSpartan3222024-10-181-3/+3
|\| | |
| * | | Fix Android app permissions for SDK levels earlier than 28Andreas Raddau2024-10-161-3/+3
| |/ /
* | | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-11116-0/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* | | Rebrand Godot to RedotRandolph W. Aarseth II2024-10-1122-21/+21
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Linux Editor tests workflow matrix Add Windows Editor w/ Mono workflow matrix Add Generate Glue Code job to Windows workflow Add Build GodotSharp job to Windows workflow Add godot compatibility version references Add Godot author info Add Godot version compatibility info Add Godot donor info Add Godot authors and donors to editor_about.cpp Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* / [DisplayServer] Implement has_hardware_keyboard method for Android and iOS.bruvzg2024-10-026-1/+30
|/
* Merge pull request #97510 from kisg/vulkan_build_fixRémi Verschelde2024-10-011-5/+1
|\ | | | | | | Move Vulkan includes to a central `godot_vulkan.h` header
| * Move Vulkan includes to a central godot_vulkan.h headerGergely Kis2024-09-291-5/+1
| | | | | | | | Also fixes Vulkan build problem with recent Clang.
* | Add logic to automatically pick up jar/aar library dependencies in the ↵Fredia Huya-Kouadio2024-09-293-0/+14
| | | | | | | | `res://addons` directory
* | Provide access to the Android runtime to GDScriptFredia Huya-Kouadio2024-09-292-1/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks for the fix of `JavaClassWrapper` in https://github.com/godotengine/godot/pull/96182 and the changes in the previous commit, this introduces an `AndroidRuntime` plugin which provides GDScript access to the Android runtime capabilities. This allows developers to get access to various Android capabilities without the need of a plugin. For example, the following logic can be used to check whether the device supports vibration: ``` var android_runtime = Engine.get_singleton("AndroidRuntime") if android_runtime: print("Checking if the device supports vibration") var vibrator_service = android_runtime.getApplicationContext().getSystemService("vibrator") if vibrator_service: if vibrator_service.hasVibrator(): print("Vibration is supported on device!") else: printerr("Vibration is not supported on device") else: printerr("Unable to retrieve the vibrator service") else: printerr("Couldn't find AndroidRuntime singleton") ```
* | Remove the restriction on supported types for Godot Android pluginsFredia Huya-Kouadio2024-09-296-208/+51
|/ | | | | | 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.
* Add support for Android Themed Icons (monochrome)Anish Mishra2024-09-275-6/+45
|
* Merge pull request #97477 from m4gr3d/update_xr_editor_excluded_permissionsRémi Verschelde2024-09-272-3/+3
|\ | | | | | | [XR Editor] Update the set of excluded permissions
| * Update the set of excluded permissions for the XR EditorFredia Huya-Kouadio2024-09-252-3/+3
| | | | | | | | A few permissions including the `USE_SCENE` permission are being renamed with the launch of the Meta Spatial SDK, so we update the excluded list to avoid requesting them on app start.
* | Merge pull request #97483 from akien-mga/clang-format-19.1.0Rémi Verschelde2024-09-261-1/+1
|\ \ | | | | | | | | | CI: Update `clang-format` pre-commit hook to 19.1.0
| * | CI: Update `clang-format` pre-commit hook to 19.1.0Rémi Verschelde2024-09-261-1/+1
| |/
* / SCons: Add unobtrusive type hints in SCons filesThaddeus Crews2024-09-251-0/+1
|/
* Merge pull request #97142 from SheepYhangCN/masterRémi Verschelde2024-09-201-3/+11
|\ | | | | | | Fallback to OpenGL 3 if other rendering drivers are not supported
| * Added fallback_to_opengl3SheepYhangCN2024-09-201-3/+11
| |
* | Style: Apply new `clang-format` changesThaddeus Crews2024-09-201-1/+1
|/
* Add Advanced Settings switch to Editor Settingskobewi2024-09-171-5/+5
|
* C#: Fallback to CoreCLR/MonoVM hosting APIs when hostfxr/NativeAOT failsRaul Santos2024-09-165-28/+99
| | | | | | | | Some platforms don't support hostfxr but we can use the coreclr/monosgen library directly to initialize the runtime. Android exports now use the `android` runtime identifier instead of `linux-bionic`, this removes the restrictions we previously had: - Adds support for all Android architectures (arm32, arm64, x32, and x64), previously only the 64-bit architectures were supported. - Loads `System.Security.Cryptography.Native.Android` (the .NET library that binds to the Android OS crypto functions).
* Merge pull request #97063 from rcadena/d97062-unexpected-debugger-lineRémi Verschelde2024-09-161-1/+0
|\ | | | | | | Remove debug print from Android `DisplayServer.screen_get_scale` implementation
| * Remove debug print from Android `DisplayServer.screen_get_scale` implementationRobert Cadena2024-09-161-1/+0
| |
* | Merge pull request #97000 from ↵Rémi Verschelde2024-09-161-1/+3
|\ \ | | | | | | | | | | | | | | | Hilderin/fix-editor-doc-cache-locked-on-editor-startup Fix `editor_doc_cache` locked by `adb` process on editor startup
| * | Fix editor_doc_cache locked on editor startupHilderin2024-09-141-1/+3
| |/
* / Update the Android editor flavors to avoid vendor-specific referencesFredia Huya-Kouadio2024-09-139-27/+31
|/
* [Editor] Expose more editor settings to documentationA Thousand Ships2024-09-121-0/+1
| | | | Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
* Merge pull request #96742 from m4gr3d/check_openxr_automatic_permissions_requestRémi Verschelde2024-09-123-11/+19
|\ | | | | | | [Android editor] Limit when OpenXR runtime permissions are requested
| * Only request OpenXR permissions for a XR game running off the Android editor ↵Fredia Huya-Kouadio2024-09-113-11/+19
| | | | | | | | when the `xr/openxr/extensions/automatically_request_runtime_permissions` project setting is enabled
* | [Windows] Only use long executable path when necessary, fix broken apksigner ↵bruvzg2024-09-101-0/+5
| | | | | | | | detection.
* | Disable some editor settings by default in the XR Editordevloglogan2024-09-094-0/+29
|/
* Improve support for XR projectsFredia Huya-Kouadio2024-09-0619-82/+556
|
* Merge pull request #96340 from m4gr3d/update_pip_mode_optionsRémi Verschelde2024-09-042-7/+19
|\ | | | | | | [Android Editor] Update the options for launching the Play window in PiP mode
| * Update the options for launching the Play window in PiP modeFredia Huya-Kouadio2024-08-302-7/+19
| |