summaryrefslogtreecommitdiffstats
path: root/platform/android
Commit message (Collapse)AuthorAgeFilesLines
* Use `(r)find_char` instead of `(r)find` for single charactersA Thousand Ships2024-11-171-1/+1
|
* Merge pull request #98918 from bruvzg/pck_enc_ivThaddeus Crews2024-11-134-7/+7
|\ | | | | | | Allow setting custom initialization vector for FileAccessEncrypted. Add export setting to set static seed for PCK encryption initialization vectors.
| * Allow setting custom initialization vector for FileAccessEncrypted. Add ↵bruvzg2024-11-134-7/+7
| | | | | | | | export setting to set static seed for PCK encryption initialization vectors.
* | Merge pull request #99123 from tygyh/Update-vulnerable-pluginsThaddeus Crews2024-11-131-1/+1
|\ \ | | | | | | | | | Update JavaScript/Java plugins to solve known vulnerabilities
| * | Update JavaScript/Java plugins to solve known vulnerabilitiesDr. Dystopia2024-11-121-1/+1
| | | | | | | | | | | | Done using the Snyk tool.
* | | [Net] Properly rename NetSocketPosix to NetSocketUnixFabio Alessandrelli2024-11-132-5/+5
| |/ |/|
* | Merge pull request #98687 from ↵Thaddeus Crews2024-11-121-1/+1
|\ \ | | | | | | | | | | | | | | | m4gr3d/disable_swappy_requirement_for_as_debug_builds Update the `production` build argument for Android Studio debug builds
| * | Update the `production` build argument for Android Studio debug buildsFredia Huya-Kouadio2024-10-301-1/+1
| | | | | | | | | | | | | | | Swappy is required for `production` build which breaks the Android Studio debug builds as those turns on the `production` argument. This commit updates the logic so that the `production` argument is only used by Android Studio for `release` builds.
* | | Merge pull request #98604 from Summersay415/read-musicThaddeus Crews2024-11-122-0/+20
|\ \ \ | | | | | | | | | | | | Android: Add various media permissions
| * | | Add media permissionsSummersay4152024-10-282-0/+20
| | | |
* | | | Merge pull request #98890 from syntaxerror247/android-dialog-theme-updateThaddeus Crews2024-11-122-2/+5
|\ \ \ \ | | | | | | | | | | | | | | | Android: Update exported app and editor theme
| * | | | Android: Update exported app and editor themeAnish Mishra2024-11-082-2/+5
| | | | |
* | | | | Merge pull request #98971 from syntaxerror247/new_appCategoryThaddeus Crews2024-11-123-6/+13
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Add `CATEGORY_UNDEFINED` option in Android export
| * | | | | Android: Add app_category "Undefined"Anish Mishra2024-11-083-6/+13
| |/ / / /
* | | | | Merge pull request #98969 from Faless/net/split_socketsThaddeus Crews2024-11-121-1/+1
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | [Net] Split Unix/Windows NetSocket implementation
| * | | | [Net] Split Unix/Windows NetSocket implementationFabio Alessandrelli2024-11-101-1/+1
| |/ / /
* / / / Add ability for PCK patches to remove filesJuan2024-11-111-4/+4
|/ / / | | | | | | | | | Co-authored-by: Mikael Hermansson <mikael@hermansson.io>
* | | Merge pull request #97631 from m4gr3d/prompt_apk_install_after_generationThaddeus Crews2024-11-047-10/+42
|\ \ \ | | | | | | | | | | | | [Android editor] Enable automatic install of exported apks for the Android editor
| * | | Enable automatic install of export apks for the Android editorFredia Huya-Kouadio2024-10-287-10/+42
| |/ /
* | | Merge pull request #98712 from syntaxerror247/android_accent_colorThaddeus Crews2024-11-045-0/+35
|\ \ \ | | | | | | | | | | | | [Android] Implement support for accent color retrieval
| * | | [Android] Implement support for accent color retrievalAnish Mishra2024-11-015-0/+35
| | | |
* | | | Merge pull request #98709 from darksylinc/matias-upsidedown-splashThaddeus Crews2024-11-045-44/+0
|\ \ \ \ | | | | | | | | | | | | | | | Fix splash screen upside down on Android
| * | | | Fix splash screen upside down on AndroidMatias N. Goldberg2024-10-315-44/+0
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes an issue introduced in #96439 (see https://github.com/godotengine/godot/pull/96439#issuecomment-2447288702) Godot was relying on Java's activity.getWindowManager().getDefaultDisplay().getRotation(); to apply pre-rotation but this is wrong. First, getRotation() may temporarily return a different value from the correct one; which is what was causing the splash screen to be upside down. It would return -90 instead of 90 for the first rendered frame. But unfortunately, the splash screen is just one frame rendered for a very long time, so the error lingered for a long time for everyone to see. Second, to determine what rotation to use, we should be looking at what Vulkan told us, which is the value we pass to VkSurfaceTransformFlagBitsKHR::preTransform. This commit removes the now-unnecessary screen_get_internal_current_rotation() function (which was introduced by #96439) and now saves the preTransform value in the swapchain.
* | | | Merge pull request #98603 from Summersay415/live-is-monochromeThaddeus Crews2024-11-041-1/+7
|\ \ \ \ | |_|/ / |/| | | | | | | Fix monochrome icon, add warning when it's not specified
| * | | Add warning when monochrome icon is not specifiedSummersay4152024-10-291-1/+7
| | |/ | |/|
* | | [Android] Implement native file picker supportAnish Mishra2024-10-3010-1/+309
| | |
* | | [DisplayServer] Add feature flag for native file dialog access to `user/res` ↵Anish Mishra2024-10-301-0/+1
| |/ |/| | | | | and `options`
* | Merge pull request #98615 from Summersay415/three-opengls-pleaseThaddeus Crews2024-10-292-10/+27
|\ \ | | | | | | | | | Fix fallbacks to OpenGL
| * | Fix fallbacks to OpenGLSummersay4152024-10-282-10/+27
| |/
* | Merge pull request #98574 from syntaxerror247/android_input_dialogThaddeus Crews2024-10-2910-2/+86
|\ \ | | | | | | | | | [Android] Implement native input dialog support
| * | [Android] Implement native input dialog supportAnish Mishra2024-10-2910-2/+86
| |/
* | 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 #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 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
| | | |
* | | | 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>
* / / Fix Android app permissions for SDK levels earlier than 28Andreas Raddau2024-10-161-3/+3
|/ /
* / [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
|