Fredia Huya-Kouadio
bea6472ea4
Fix Android mouse capture issues
...
- Allow mouse capture to be enabled in `_ready`
- Update the input handler logic to avoid dropping mouse captured motion events
2025-02-28 13:54:30 -08:00
Pāvels Nadtočajevs
e76a8b0f27
[Android] Skip non-existing system font files.
2025-02-28 07:47:52 +02:00
Anish Mishra
5ce16dfc69
Android: enable support for volume button events
...
- Enable events KEY_VOLUMEUP and KEY_VOLUMEDOWN on Android.
- Adds a project setting to override volume buttons. It would disable system volume changes when the buttons are used within the project.
2025-02-28 09:47:22 +05:30
Fredia Huya-Kouadio
7fb37a088b
Add checks to prevent crashes when accessing the GameMenu api
...
This should address crashes reported on the Play store. Note that those crashes lack debug symbols which reduces our ability to narrow down the exact cause of the crash. We aim to resolve that in Godot 4.5.
2025-02-27 13:20:23 -08:00
Michael Alexsander
aea559b39a
Allow to compile the engine without XR support
2025-02-25 17:07:21 -03:00
Anish Mishra
28d1dccf63
Android: Fix export and runtime logic to check if using Vulkan
...
Also fix iOS export logic that would force a min target of iOS 14.0 (for Metal)
even when targeting the Compatibility renderer.
Co-authored-by: Pāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>
2025-02-23 12:28:59 +01:00
Rémi Verschelde
545ca2538e
Merge pull request #103122 from syntaxerror247/fix-crash
...
Android: Fix excessive `getRotation` calls
2025-02-23 12:13:02 +01:00
Anish Mishra
ee4e809d4c
Android: Fix excessive getRotation calls
2025-02-21 20:32:54 +05:30
Anish Mishra
129ffce06a
Android Editor: Fix expand button black bar issue
2025-02-21 13:00:49 +05:30
Thaddeus Crews
7e5baa0426
Style: Enforce trailing newlines on svgs
2025-02-18 11:02:45 -06:00
Ricardo Buring
99f9561be7
When code signing, specify which keystore is not found
2025-02-18 16:54:49 +01:00
Anish Mishra
8595f5aa16
Hide debug keystore export settings
2025-02-16 13:55:47 +05:30
David Snopek
5d69d20059
JavaClassWrapper: Allow handling exceptions (rather than just crashing)
2025-02-14 09:45:14 -06:00
Rémi Verschelde
3787cc4901
Merge pull request #102802 from syntaxerror247/fix_orientation_handling
...
Android Editor: Fix embed mode orientation handling
2025-02-13 23:35:12 +01:00
Anish Mishra
4a22e007f6
Android Editor: Fix embed mode orientation handling
2025-02-13 22:22:50 +05:30
Fredia Huya-Kouadio
8ed8b4a89d
Bump the version of the openxr vendors plugin dependency
2025-02-12 09:51:07 -08:00
Fredia Huya-Kouadio
2a66335ec2
Address API regression from https://github.com/godotengine/godot/pull/101050
2025-02-11 10:19:47 -08:00
Fredia Huya-Kouadio
7495a8a02e
Add support for embedding game process in the Android Editor
...
- Implement Android editor specific `EmbeddedGodotGame` to support embedding the game window in the Android editor
2025-02-11 02:20:18 -08:00
Thaddeus Crews
c90fd7f3da
Merge pull request #98066 from TCROC/fix-android-mono-export
...
Fix Android mono export with 2 or more cpu architectures fails
2025-02-10 12:21:32 -06:00
Thaddeus Crews
0b9fd7e190
Merge pull request #102627 from raulsntos/dotnet/android-export-validate-tfm
...
C#: Validate project TFM for Android template exports
2025-02-10 12:21:30 -06:00
Raul Santos
70ff213de5
C#: Validate project TFM for Android template exports
...
The C# Android export template includes `.jar` dependencies from .NET 8.0, so other TFMs are not supported.
2025-02-10 17:19:05 +01:00
Travis Lange
5e2fd7b1d7
fix android mono export causing conflicts
2025-02-10 10:09:52 -05:00
Rémi Verschelde
eb4538b8a2
Merge pull request #102590 from syntaxerror247/custom-snackbar
...
Android: Add Snackbar UI component
2025-02-10 10:49:38 +01:00
Anish Mishra
b89957efce
Android: Add Snackbar UI component
2025-02-08 22:09:46 +05:30
Lukas Tenbrink
e34f1f504c
Use `std::size` instead of `sizeof(a) / sizeof(a[0])` pattern throughout the codebase.
2025-02-07 14:57:48 +01:00
David Snopek
96bde8f221
JavaClassWrapper: Give additional error when trying to call non-static method directly on the class
2025-02-06 12:45:29 -06:00
Fredia Huya-Kouadio
9e4365f1a7
Export the `rendering/renderer/rendering_method.mobile` project setting to the AndroidManifest
...
The AndroidManifest already stores the Godot editor and library versions. The addition of this meta-data allows to identify Godot Android apps that may be subject to renderer specific issues addressed in future versions of the engine.
2025-02-04 21:11:56 -08:00
Pāvels Nadtočajevs
b3f7c8f5d3
[Export] Respect icon/splash screen import settings.
2025-01-31 07:45:16 +02:00
Thaddeus Crews
3c80c14092
Merge pull request #101924 from adamscott/game-editor-non-cached-mouse-mode
...
Delegate handling `mouse_mode` to the `DisplayServer`
2025-01-28 16:08:56 -06:00
Justin Sasso
8a4bc9881f
Add linux-bionic RID Export Option
...
Adds an export option to enable the linux-bionic RID so Android can export with NativeAOT enabled.
2025-01-28 12:54:10 -05:00
Adam Scott
47f553ae0b
Delegate to the DisplayServer the task of handling mouse_mode
...
- Add `MOUSE_MODE_MAX` and various index checks
2025-01-28 11:22:27 -05:00
Thaddeus Crews
b238fe25e1
Merge pull request #101996 from syntaxerror247/fix-swipe-to-dismiss
...
Android: Keep swipe-to-dismiss disabled by default
2025-01-28 09:03:30 -06:00
Anish Mishra
6df21a8fdc
Android: Keep swipe-to-dismiss disabled by default
2025-01-27 23:45:58 +05:30
Thaddeus Crews
c019f3d4a5
Merge pull request #102049 from timothyqiu/editor-i18n
...
Fix several i18n issues in editor
2025-01-27 09:46:15 -06:00
Haoyu Qiu
4c4f29a490
Fix several i18n issues in editor
2025-01-26 16:41:10 +08:00
Rémi Verschelde
90208f7dd4
SCons: Fix handling of platform-specific tools, notably `mingw`
...
Add optional `detect.py` `get_tools` method to let platforms register SCons
tools they need.
This helps move this logic out of SConstruct, keeping platforms more self
contained, and helping thirdparty platforms define their own custom tools.
This logic was also unreliable (the `use_mingw` one would only work if
passed manually on the command line, not in e.g. `get_flags`).
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>
2025-01-25 13:59:30 +01:00
Thaddeus Crews
b0655dc86f
Merge pull request #101050 from jamie-pate/fix_android_godot_app_create_instance
...
Fix create_instance in android GodotApp so non-editor apps can restart
2025-01-22 16:32:29 -06:00
Thaddeus Crews
24fb28af55
Merge pull request #101689 from syntaxerror247/native-dialogs
...
Make dialogs non-cancelable on Android
2025-01-20 10:05:43 -06:00
Jamie Pate
605b97075f
Fix create_instance in android GodotApp so non-editor apps can restart
...
Enables OS.create_instance(args) and OS.set_restart_on_exit(true, args)
on android.
Borrowed the logic from the editor, so it completely restarts the
process so you can pass --rendering-method, --rendering-driver to switch
between forward_plus, mobile, gl_compatibility etc on an exported app.
Related:
https://github.com/godotengine/godot-proposals/issues/6423
2025-01-19 03:23:45 -08:00
Anish Mishra
401310d74d
Make dialogs non-cancelable on Android.
2025-01-17 19:45:34 +05:30
Fredia Huya-Kouadio
b4f25b1863
Clean up the XR editor logic
...
- Coalesce common logic into the `main` flavor to avoid duplication
- Code cleanup
2025-01-16 09:40:30 -08:00
Rémi Verschelde
4d1cfc1784
Merge pull request #101061 from syntaxerror247/first-pr-2025
...
Android: Implement support for `native dialog`
2025-01-14 15:05:59 +01:00
Anish Mishra
cb9ee099ac
Android: Implement support for native dialog
...
This adds support for DisplayServer::dialog_show() on Android, aligning it with the functionality already available on macOS and Windows.
2025-01-14 15:03:14 +05:30
Anish Mishra
867ae4d85a
Update Android editor name and add missing icons
2025-01-14 13:46:45 +05:30
Rémi Verschelde
e8981308f2
Merge pull request #101498 from m4gr3d/run_launcher_godot_app_from_editor
...
Use implicit launch when running a Godot Android project from the editor
2025-01-13 20:22:52 +01:00
Rémi Verschelde
aa72d56d50
Merge pull request #101458 from syntaxerror247/fix-back-request
...
Fix double emission of `NOTIFICATION_WM_GO_BACK_REQUEST`
2025-01-13 20:22:24 +01:00
Rémi Verschelde
b7c0a0fbd1
Merge pull request #101387 from picoxr/add-picoos-immersivemode
...
Add PICO OS Immersive Mode
2025-01-13 20:22:11 +01:00
Fredia Huya-Kouadio
17279cdf45
Use implicit launch when running a Godot Android project from the editor
...
This allows developers to override the default launching activity (`com.godot.game.GodotApp`) with a custom one if desired.
Logic is added to fallback to the default launching activity if the implicit launch fails.
2025-01-13 08:52:17 -08:00
ygz-bd
a2bfb7cff2
Enable XR Preview Mode for PICO OS
...
Supported features in the immersive preview mode
- Passthrough
- Hand tracking
Notes:
- Multi-window is only available for internal apps on PICO OS, therefore launching adjacent windows is not possible currently.
- Passthrough splash screen is not supported on PICO OS
2025-01-13 16:34:22 +00:00
Fredia Huya-Kouadio
4bc8918c19
Add support for specifying whether to play the current scene or a specific scene in XR or regular mode
...
The functionality is only activated for the XR Editor, when a project has OpenXR enabled.
2025-01-12 22:02:24 -08:00
Anish Mishra
c327b5797e
Fix double emission of NOTIFICATION_WM_GO_BACK_REQUEST
2025-01-13 09:09:22 +05:30
Thaddeus Crews
9d0c41a489
Style: Unify `.editorconfig` logic
2025-01-12 08:49:01 -06:00
Yufeng Ying
34d8255947
Force build editor with regex module, remove checking code.
...
Fix include.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-07 19:43:23 +08:00
Rémi Verschelde
52f542b342
Merge pull request #101180 from syntaxerror247/editor-themed-icon
...
Android Editor: Fix themed icon
2025-01-06 22:49:25 +01:00
Rémi Verschelde
d15e559355
Merge pull request #100103 from Summersay415/idsig
...
Android: Delete `.idsig` on One Click Deploy
2025-01-06 22:47:29 +01:00
Rémi Verschelde
11f95e7feb
Merge pull request #99350 from bruvzg/fs_mime
...
Support MIME types in file dialog filters on macOS and Linux.
2025-01-06 22:46:59 +01:00
Anish Mishra
d7532f0d31
Android Editor: Fix themed icon
2025-01-06 19:14:00 +05:30
Pāvels Nadtočajevs
e1f129cb52
Support MIME types in file dialog filters on macOS and Linux.
2025-01-04 22:05:35 +02:00
Ricardo Subtil
b77aa473a1
Implement a "Recovery Mode" for recovering crashing/hanging projects during initialization
2025-01-03 10:50:15 +00:00
RedMser
bb76e721e9
Respect system user setting for (un)installing APK
2024-12-30 17:37:24 +01:00
Thaddeus Crews
589a2b511e
Merge pull request #100815 from m4gr3d/remove_install_permission_for_xr_editor
...
[Android Editor] Update handling of the `REQUEST_INSTALL_PACKAGES` permission
2024-12-30 08:58:53 -06:00
Summersay415
3d8ecc452a
Delete .idsig on One Click Deploy
2024-12-29 13:53:17 +07:00
Fredia Huya-Kouadio
7ad9d23a1d
Updates how the `REQUEST_INSTALL_PACKAGES` permission is handled
...
- Only request the permission the first time the editor tries to open an apk
- Disable the permission for the HorizonOS build as the HorizonOS store doesn't support it yet
2024-12-25 20:04:34 -08:00
A Thousand Ships
a1846b27ea
Improve use of `Ref.is_null/valid`
...
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
Thaddeus Crews
ff706b8fb8
Merge pull request #100756 from raulsntos/android/fix-aab-path
...
[Android] Fix path to AAB in copyAndRenameBinary task
2024-12-23 11:15:08 -06:00
Anish Mishra
96c6dec9a7
Android Code Cleanup: Rename constants to uppercase
2024-12-23 14:14:41 +05:30
Raul Santos
d380cb1a6c
[Android] Fix path to AAB in copyAndRenameBinary task
2024-12-22 22:40:36 +01:00
Rémi Verschelde
b46103b286
Merge pull request #100601 from syntaxerror247/wear-OS
...
Add option to disable `Swipe to Dismiss` for Wear OS
2024-12-20 23:56:54 +01:00
Rémi Verschelde
a11364d1e6
Merge pull request #99010 from Hilderin/embedding-game-process
...
Embed game process in editor
2024-12-20 23:56:43 +01:00
Anish Mishra
5d8e2cd63f
Add option to disable Swipe-to-Dismiss for Wear OS
2024-12-20 23:21:50 +05:30
Anish Mishra
9deee0097a
Fix Android native file picker
2024-12-19 19:31:32 +05:30
Hilderin
9d2a4c03be
Embedding game process in editor
2024-12-18 17:52:42 -05:00
Fredia Huya-Kouadio
23cea1b9d2
Additional fixes and improvements to JavaClassWrapper
...
- Fix crashing bug when invoking class constructor with parameters
- Add support for accessing class constants
- Add support for Godot Callable arguments. A Godot Callable can be wrapped by a Java Runnable to allow Java logic to run arbitrary Godot lambdas
- Automatically convert java.lang.CharSequence to Godot String as needed
- Code cleanup
2024-12-17 18:46:34 -08:00
Rémi Verschelde
cb5b1ecc25
Merge pull request #100200 from syntaxerror247/android-base-color
...
Android: Support for `base color` retrieval
2024-12-18 00:39:45 +01:00
Rémi Verschelde
cb0d731daf
Merge pull request #100351 from raulsntos/dotnet/android-gradle-fix
...
[.NET] Fix gradle builds for multiple ABIs
2024-12-17 22:59:58 +01:00
Rémi Verschelde
66b8101cef
Merge pull request #95460 from m4gr3d/enable_mouse_forward_back_buttons
...
Enable `BUTTON_FORWARD` and `BUTTON_BACK` mouse buttons on Android
2024-12-17 22:59:20 +01:00
Fredia Huya-Kouadio
2d3f6963b2
Update the visibility for the custom templates for all platforms
...
Hide the custom template options behind the `Advanced Options` toggle
2024-12-17 13:08:47 -08:00
Anish Mishra
70b24c3d16
Android: Support for base color retrieval
2024-12-18 02:14:48 +05:30
Raul Santos
d526d523b4
[.NET] Fix gradle builds for multiple ABIs
...
Include the needed .NET jar in the Godot templates so it's always available, then we don't need to include the jar from a .NET publish which could fail when exporting to multiple architectures because it would attempt to add the same jar for each architecture.
2024-12-13 08:01:13 +01:00
ArchercatNEO
00a791f04e
Use temp dirs instead of cache dirs for export
...
Fixes #95897
During CI scenarios $HOME may be set to an invalid value (such as
`/var/empty`).
Using temp dirs fits better with godot's usage of these paths and is
independent from the user's $HOME.
2024-12-08 12:07:17 +00:00
Thaddeus Crews
1719f8ed3d
Merge pull request #99834 from kiroxas/passLengthToParseUTF8
...
Ensure `parse_utf8` has length of string passed in when available
2024-12-03 14:41:06 -06:00
Thaddeus Crews
156bc92282
Merge pull request #98397 from adamscott/add-tmp-support
...
Add temp utilities (alias `OS::get_temp_dir()`, `FileAccess::create_temp()`, and `DirAccess::create_temp()`)
2024-12-03 14:40:59 -06:00
Thaddeus Crews
6e8c0a43c3
Merge pull request #99378 from syntaxerror247/optional_monochrome_icon
...
Android: Refactor icon logic and make monochrome icon optional
2024-12-03 14:40:52 -06:00
Adam Scott
1b3e483899
Add file and dir temporary utilities
...
Co-authored by @Alex2782 for the Android bindings.
Many thanks to the reviewers also.
Co-authored-by: Alex <alex.hart.278@gmail.com>
2024-12-02 12:08:14 -05:00
Anish Mishra
f767cf00fd
Android: Make monochrome icon optional
2024-12-02 22:04:38 +05:30
Rémi Verschelde
a702b69ce7
Merge pull request #98917 from syntaxerror247/immersive-mode-issue
...
Android: Fix immersive mode issue
2024-12-02 15:50:57 +01:00
rune-scape
d58b2e879f
Get rid of easily removable uses of const_cast
2024-12-01 17:50:13 -08:00
Kiro
83d4bde0a2
When calling code has length of string, pass it to parse_utf8
2024-12-01 08:31:22 +01:00
bruvzg
a4b17e7852
[FileAccess] Return error codes from `store_*` methods.
2024-11-29 23:22:31 +02:00
Thaddeus Crews
150c69c0f2
Merge pull request #99694 from dsnopek/android-os-create-instance-return-value
...
Android: `OS.create_instance()` should return `-1` on failure
2024-11-27 10:47:30 -06:00
Thaddeus Crews
78abba7b0b
Merge pull request #99385 from syntaxerror247/file_picker_extension_support
...
Implement extension support for native file dialog on Android
2024-11-27 10:47:08 -06:00
David Snopek
38e0532ffa
Android: `OS.create_instance()` should return `-1` on failure
2024-11-25 15:58:06 -06:00
Alexander Hartmann
796d943f14
Fix missing space after period in error message.
2024-11-24 02:46:42 +01:00
Yevhen Babiichuk (DustDFG)
6467beb75d
SCons: Move `swappy` option to android and slightly refactor `detect.py`
...
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
2024-11-20 12:48:18 +02:00
Thaddeus Crews
650e96b768
Merge pull request #99353 from syntaxerror247/some_uid_issues
...
Fix Android boot splash and gradle build issue
2024-11-19 15:20:23 -06:00
Anish Mishra
57541d53d3
Android: Extension support for native file dialog
2024-11-19 22:16:32 +05:30
Anish Mishra
5e09d747e8
Revert "Add warning when monochrome icon is not specified"
...
This reverts commit a84292e835 .
2024-11-19 21:27:56 +05:30
Anish Mishra
728927425f
Fix Android boot splash and gradle build issue
2024-11-18 21:12:22 +05:30
Thaddeus Crews
8811b39968
Merge pull request #97992 from Nikitf777/android-sdk-path
...
Add default value of editor property `export/android/android_sdk_path` for Windows, Linux, and macOS
2024-11-18 09:23:42 -06:00
Nikita
c6f4228706
Add default value of editor propetry "export/android/android_sdk_path" for Windows, Linux, and macOS
2024-11-17 22:25:39 +03:00
A Thousand Ships
68f638cf02
Use `(r)find_char` instead of `(r)find` for single characters
2024-11-17 10:02:18 +01:00
Thaddeus Crews
1627912d11
Merge pull request #98918 from bruvzg/pck_enc_iv
...
Allow setting custom initialization vector for FileAccessEncrypted. Add export setting to set static seed for PCK encryption initialization vectors.
2024-11-13 08:34:31 -06:00
Thaddeus Crews
a767a65cdf
Merge pull request #99123 from tygyh/Update-vulnerable-plugins
...
Update JavaScript/Java plugins to solve known vulnerabilities
2024-11-13 08:34:00 -06:00
Fabio Alessandrelli
fc52821cfb
[Net] Properly rename NetSocketPosix to NetSocketUnix
2024-11-13 10:27:01 +01:00
bruvzg
45593d45b3
Allow setting custom initialization vector for FileAccessEncrypted. Add export setting to set static seed for PCK encryption initialization vectors.
2024-11-13 08:16:12 +02:00
Thaddeus Crews
cb411fa960
Merge pull request #98687 from m4gr3d/disable_swappy_requirement_for_as_debug_builds
...
Update the `production` build argument for Android Studio debug builds
2024-11-12 12:13:23 -06:00
Thaddeus Crews
a73e2d459e
Merge pull request #98604 from Summersay415/read-music
...
Android: Add various media permissions
2024-11-12 12:13:08 -06:00
Thaddeus Crews
5455eb1f34
Merge pull request #98890 from syntaxerror247/android-dialog-theme-update
...
Android: Update exported app and editor theme
2024-11-12 09:28:01 -06:00
Thaddeus Crews
b6bbd4034e
Merge pull request #98971 from syntaxerror247/new_appCategory
...
Add `CATEGORY_UNDEFINED` option in Android export
2024-11-12 09:27:45 -06:00
Thaddeus Crews
1cbe9715ea
Merge pull request #98969 from Faless/net/split_sockets
...
[Net] Split Unix/Windows NetSocket implementation
2024-11-12 09:27:40 -06:00
Dr. Dystopia
3077463151
Update JavaScript/Java plugins to solve known vulnerabilities
...
Done using the Snyk tool.
2024-11-12 16:06:35 +01:00
Juan
2ac562cdf8
Add ability for PCK patches to remove files
...
Co-authored-by: Mikael Hermansson <mikael@hermansson.io>
2024-11-11 16:34:37 +01:00
Fabio Alessandrelli
0c620b29cd
[Net] Split Unix/Windows NetSocket implementation
2024-11-10 16:13:50 +01:00
Anish Mishra
b2cb858572
Android: Add app_category "Undefined"
2024-11-08 23:37:27 +05:30
Anish Mishra
6fd8d7b634
Android: Update exported app and editor theme
2024-11-08 22:37:52 +05:30
Anish Mishra
6445b6cbdd
Android: Fix immersive mode issue
2024-11-07 18:29:25 +05:30
Thaddeus Crews
b00e1cbf74
Merge pull request #97631 from m4gr3d/prompt_apk_install_after_generation
...
[Android editor] Enable automatic install of exported apks for the Android editor
2024-11-04 21:52:08 -06:00
Thaddeus Crews
7d950c1567
Merge pull request #98712 from syntaxerror247/android_accent_color
...
[Android] Implement support for accent color retrieval
2024-11-04 21:52:04 -06:00
Thaddeus Crews
2b49543478
Merge pull request #98709 from darksylinc/matias-upsidedown-splash
...
Fix splash screen upside down on Android
2024-11-04 21:52:01 -06:00
Thaddeus Crews
56310396db
Merge pull request #98603 from Summersay415/live-is-monochrome
...
Fix monochrome icon, add warning when it's not specified
2024-11-04 21:51:57 -06:00
Anish Mishra
7b866f302f
[Android] Implement support for accent color retrieval
2024-11-01 16:19:09 +05:30
Matias N. Goldberg
b9a2f108fc
Fix splash screen upside down on Android
...
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.
2024-10-31 16:52:26 -03:00
Fredia Huya-Kouadio
d699d4b7d4
Update the `production` build argument for Android Studio debug builds
...
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.
2024-10-30 21:15:31 -07:00
Anish Mishra
b2130efb31
[Android] Implement native file picker support
2024-10-30 14:53:02 +05:30
Anish Mishra
0dfd18c84b
[DisplayServer] Add feature flag for native file dialog access to `user/res` and `options`
2024-10-30 14:13:43 +05:30
Thaddeus Crews
05a4620e88
Merge pull request #98615 from Summersay415/three-opengls-please
...
Fix fallbacks to OpenGL
2024-10-29 19:25:48 -05:00
Thaddeus Crews
08d8909a65
Merge pull request #98574 from syntaxerror247/android_input_dialog
...
[Android] Implement native input dialog support
2024-10-29 19:25:37 -05:00
Clay John
748f4079e3
Merge pull request #96439 from darksylinc/matias-TheForge-pr03-rebased
...
Add Swappy & Pre-Transformed Swapchain
2024-10-29 12:34:40 -07:00
Anish Mishra
be5d7f757d
[Android] Implement native input dialog support
2024-10-29 20:02:08 +05:30
Summersay415
a84292e835
Add warning when monochrome icon is not specified
2024-10-29 21:19:21 +07:00
Fredia Huya-Kouadio
af2423ba4d
Enable automatic install of export apks for the Android editor
2024-10-28 16:12:16 -07:00
Matias N. Goldberg
aaa0e2fddf
Add Swappy & Pre-Transformed Swapchain
...
- 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.
2024-10-28 18:55:37 -03:00
Summersay415
6d14cd6ff9
Fix fallbacks to OpenGL
2024-10-28 22:57:19 +07:00
Summersay415
4fd53eb128
Add media permissions
2024-10-28 19:14:20 +07:00
Thaddeus Crews
07e759b74a
Merge pull request #97771 from dsnopek/openxr-linux-egl
...
OpenXR: Add support for Wayland on Linux
2024-10-25 13:04:08 -05:00
Thaddeus Crews
17f06f6dae
Merge pull request #97555 from dustdfg/platform_methods/extract_validate_arch
...
Build System: Extract `validate_arch` helper functions
2024-10-25 13:03:48 -05:00
Thaddeus Crews
c278d57233
Merge pull request #98427 from syntaxerror247/document-immersive-mode
...
Add documentation for Android immersive mode
2024-10-24 13:23:05 -05:00
Thaddeus Crews
1001a8c663
Merge pull request #98380 from RandomShaper/mobile_strict_alias
...
Android & iOS: Enable strict aliasing
2024-10-24 13:22:55 -05:00
Anish Mishra
827961e4e5
Update documentation for Android immersive mode
2024-10-22 22:55:43 +05:30
Pedro J. Estébanez
c1fd4df3e4
Android & iOS: Enable strict aliasing
2024-10-21 13:33:42 +02:00
Yevhen Babiichuk (DustDFG)
af6d260c17
Don't include `core/io/image.h` in `core/os/os.h`
...
`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>
2024-10-18 19:04:19 +03:00
Andreas Raddau
90c35f3978
Fix Android app permissions for SDK levels earlier than 28
2024-10-16 12:47:18 +02:00
Yevhen Babiichuk (DustDFG)
7aacdaa071
Build System: Extract `validate_arch` helper function
...
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
2024-10-06 07:50:49 +03:00
David Snopek
256699ee31
OpenXR: Add support for Wayland on Linux
2024-10-04 11:44:05 -05:00
bruvzg
25f439c573
[DisplayServer] Implement has_hardware_keyboard method for Android and iOS.
2024-10-02 20:09:48 +03:00
Rémi Verschelde
d66d056727
Merge pull request #97510 from kisg/vulkan_build_fix
...
Move Vulkan includes to a central `godot_vulkan.h` header
2024-10-01 17:31:03 +02:00
Fredia Huya-Kouadio
4587d14796
Add logic to automatically pick up jar/aar library dependencies in the `res://addons` directory
2024-09-29 14:32:10 -07:00
Fredia Huya-Kouadio
5e0805a813
Provide access to the Android runtime to GDScript
...
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")
```
2024-09-29 14:32:10 -07:00
Fredia Huya-Kouadio
07cae26abe
Remove the restriction on supported types for Godot Android plugins
...
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.
2024-09-29 14:32:10 -07:00
Gergely Kis
146ba4106f
Move Vulkan includes to a central godot_vulkan.h header
...
Also fixes Vulkan build problem with recent Clang.
2024-09-29 17:53:18 +02:00