summaryrefslogtreecommitdiff
path: root/platform/android/java/lib/src
AgeCommit message (Collapse)Author
2023-02-06Improve logic to detect whether vulkan is used for renderingFredia Huya-Kouadio
2023-02-05Improve vulkan capability detection on AndroidFredia Huya-Kouadio
- Add runtime check and abort when the device doesn't meet the requirements for vulkan support - Add filters to the AndroidManifest when exporting with a vulkan renderer
2023-02-01More codespell fixes, do more changes from previous ignore listRémi Verschelde
2023-02-01Implement file provider capabilitiesFredia Huya-Kouadio
The previously used file sharing api was restricted after Android N causing the engine to crash whenever used on devices running Android N or higher.
2023-01-26Merge pull request #72106 from ↵Rémi Verschelde
m4gr3d/fix_godot_android_editor_4_crash_after_running_game Fix the issue causing the Godot Android Editor to crash when returning from the launched and running game
2023-01-26Fix the issue causing the Godot Android Editor to crash when returning from ↵Fredia Huya-Kouadio
the launched and running game The issue was caused because the running game pid was not set, and thus had a value of `0`. When trying to stop the running game, the `EditorRun::stop()` logic would kill the process with pid 0, which on Android corresponds to the running app's own process, thus causing the editor to crash. This issue did not happen on Godot 3 because pid with value of `0` are not considered valid.
2023-01-25Address kotlin build warningsFredia Huya-Kouadio
2023-01-23Merge pull request #71836 from m4gr3d/fix_godot_editor_cropping_mainRémi Verschelde
Update the logic to calculate the screen scale on Android
2023-01-23Cleanup and unify keyboard input.bruvzg
- Unify keycode values (secondary label printed on a key), remove unused hardcoded Latin-1 codes. - Unify IME behaviour, add inline composition string display on Windows and X11. - Add key_label (localized label printed on a key) value to the key events, and allow mapping actions to the unshifted Unicode events. - Add support for physical keyboard (Bluetooth or Sidecar) handling on iOS. - Add support for media key handling on macOS. Co-authored-by: Raul Santos <raulsntos@gmail.com>
2023-01-23Convert en_GB spelling to en_US with codespellRémi Verschelde
2023-01-22Update the logic to calculate the screen scale on AndroidFredia Huya-Kouadio
Takes into account the ratio between the screen size and the default window dimensions.
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2022-12-14Merge pull request #69990 from exoticorn/fix-android-touch-inputFredia Huya-Kouadio
Fix ambiguous touch input events on Android
2022-12-12handle ambiguous input events as touch eventsDennis Ranke
there can be events can have both SOURCE_TOUCHSCREEN and SOURCE_STYLUS. handle them as touch events rather than mouse events.
2022-12-12Rename all gdnative occurences to gdextensionGilles Roudière
Non-exhaustive list of case-sensitive renames: GDExtension -> GDNative GDNATIVE -> GDEXTENSION gdextension -> gdnative ExtensionExtension ->Extension (for where there was GDNativeExtension) EXTENSION_EXTENSION ->EXTENSION (for where there was GDNATIVE_EXTENSION) gdnlib -> gdextension gdn_interface -> gde_interface gdni -> gde_interface
2022-12-04Use system fonts as fallback and improve system font handling.bruvzg
Add support for font weight and stretch selection when using system fonts. Add function to get system fallback font from a font name, style, text, and language code. Implement system font support for Android. Use system fonts as a last resort fallback.
2022-11-29Enable GLES3 on Androidclayjohn
Add necessary build flags and switch from using a GLES2 context to a GLES3 one. This also enables building for OpenXR Co-authored-by: m4gr3d <fhuyakou@gmail.com> Co-authored-by: dsnopek <dsnopek@gmail.com>
2022-11-27Add missing display server overridesFredia Huya-Kouadio
Improves the base functionality for the Android platform and helps reduce the amount of spurious error logs emitted.
2022-11-17Fix parsing of the `keep_screen_on` display settingFredia Huya-Kouadio
2022-11-17Android: Fix parsing `keep_screen_on` settingRémi Verschelde
Boolean stringification changed in Godot 4.0. Fixes #67034. Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2022-11-07Small set of fixes to the input logicFredia Huya-Kouadio
2022-10-22Add double_tap attribute to InputEventScreenTouchFredia Huya-Kouadio
This provides parity with the `InputEventMouseButton` allowing for proper conversion between the two events.
2022-10-05Merge pull request #66946 from m4gr3d/cursor_shape_logic_cleanup_mainFredia Huya-Kouadio
Cleanup of the Android cursor shape logic
2022-10-05Cleanup of the Android cursor shape logicFredia Huya-Kouadio
2022-10-05Fix null in android keyboard handling.Jason Knight
2022-09-19Split rendering driver project setting into renderer_name and ↵clayjohn
rendering_driver. To differentiate between a driver (e.g. Vulkan or D3D12) and a renderer (e.g. clustered or mobile renderer).
2022-09-08Merge pull request #65501 from m4gr3d/fix_invalid_project_manager_path_mainRémi Verschelde
Fix issue causing the project manager to crash because of missing path argument
2022-09-07Fix issue causing the project manager to crash because of missing path argumentFredia Huya-Kouadio
In the process, the initialization logic is updated to show an error message and gracefully close the engine when setup errors occur.
2022-09-07Enable long press, pan and scale gestures for the Godot Android EditorFredia Huya-Kouadio
Fix the bug causing the editor to crash when running the project.
2022-09-07Cleanup the Android input logic implementationFredia Huya-Kouadio
2022-08-15Fix issue preventing the Android Editor from displaying the project contentFredia Huya-Kouadio
The issue was causing by a bug within the logic for `FileAccessFilesystemJAndroid#eof_reached()` causing that value to remain false after the eof was reached. This in turn caused an infinite loop in the file scanner preventing the project's content from showing up.
2022-08-08Merge pull request #62885 from madmiraal/fix-59931Rémi Verschelde
2022-08-04Add support for multiple virtual keyboard typesBrian Semrau
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-13Fix incorrect Android scancodesMarcel Admiraal
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-06-21Remove broken scroll gesture on AndroidMarcel Admiraal
2022-06-16Ensure joystick has been added or not already removed when processing inputMarcel 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-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-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-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-27Check for null when retrieving clip data item text on AndroidMarcel Admiraal
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
2022-04-25Merge pull request #60457 from madmiraal/replace-index-iteratorsRémi Verschelde
Replace index iterators with for each loops.