summaryrefslogtreecommitdiffstats
path: root/platform/android/java/lib/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | Address remaining scoped storage regressionsFredia Huya-Kouadio2022-07-264-31/+33
|/ | | | | - 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
* Add full support for Android scoped storage.Fredia Huya-Kouadio2022-07-0513-120/+1667
| | | | | 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.
* Remove broken scroll gesture on AndroidMarcel Admiraal2022-06-212-14/+0
|
* Ensure joystick has been added or not already removed when processing inputMarcel Admiraal2022-06-161-0/+3
|
* Misc editor tweaks and polishes:Fredia Huya-Kouadio2022-05-311-3/+21
| | | | | | - 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
* Merge pull request #61333 from m4gr3d/fix_restart_logic_mainRémi Verschelde2022-05-233-62/+149
|\
| * Fix the logic to restart the Godot applicationFredia Huya-Kouadio2022-05-233-62/+149
| |
* | Remove duplicate Android sensor listener registrationsMarcel Admiraal2022-05-231-4/+0
|/
* Fix screen_get_usable_rect returning display safe areaMarcel Admiraal2022-05-021-1/+1
|
* Merge pull request #60551 from madmiraal/implement-3466Rémi Verschelde2022-05-021-0/+21
|\ | | | | Add a method for obtaining display cutouts on Android
| * Add a method for obtaining display cutouts on AndroidMarcel Admiraal2022-04-261-0/+21
| |
* | Merge pull request #60563 from madmiraal/fix-60562Rémi Verschelde2022-04-291-8/+7
|\ \
| * | Check for null when retrieving clip data item text on AndroidMarcel Admiraal2022-04-271-8/+7
| |/
* / Implement text-to-speech support on Android, iOS, HTML5, Linux, macOS and ↵bruvzg2022-04-284-0/+361
|/ | | | | | Windows. Implement TextServer word break method.
* Merge pull request #60433 from madmiraal/remove-superfluous-null-checkRémi Verschelde2022-04-251-4/+0
|\ | | | | Remove superfluous null check
| * Remove superfluous null checkMarcel Admiraal2022-04-221-4/+0
| |
* | Merge pull request #60457 from madmiraal/replace-index-iteratorsRémi Verschelde2022-04-252-5/+4
|\ \ | | | | | | Replace index iterators with for each loops.
| * | Replace index iterators with for each loops.Marcel Admiraal2022-04-232-5/+4
| |/
* | Merge pull request #60441 from madmiraal/remove-superfluous-inputmanagerRémi Verschelde2022-04-253-240/+5
|\ \ | | | | | | Remove superfluous Android InputManager interface and implementation
| * | Remove superfluous Android InputManager interface and implementationMarcel Admiraal2022-04-223-240/+5
| |/
* / Remove superfluous check for minimum Android SDK.Marcel Admiraal2022-04-221-21/+16
|/
* Update the editor display scale based on the device's scaled densityFredia Huya-Kouadio2022-04-041-1/+5
|
* Fix flickering issues with low processor mode on AndroidFredia Huya-Kouadio2022-03-2911-23/+2530
|
* Android port of the Godot EditorFredy Huya-Kouadio2022-03-282-8/+29
| | | | | | | These set of changes focus primarily on getting the core logic and overall Godot Editor UI and functionality up and running natively on Android devices. UI tweaks / cleanup / polish, as well configuration for Android specific functionality / restrictions will be addressed in follow-up PRs iteratively based on feedback. Co-authored-by: thebestnom <shoval.arad@gmail.com>
* Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde2022-02-161-2/+3
| | | | | Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
* Add screen_get_refresh_rate to DisplayServerjordi2022-02-031-0/+8
|
* Add `DisplayServer.clipboard_has()` to check clipboard contentHaoyu Qiu2022-01-191-1/+5
|
* Style: Remove inconsistently used `@author` docstringsRémi Verschelde2022-01-041-1/+1
| | | | | | | | | | Each file in Godot has had multiple contributors who co-authored it over the years, and the information of who was the original person to create that file is not very relevant, especially when used so inconsistently. `git blame` is a much better way to know who initially authored or later modified a given chunk of code, and most IDEs now have good integration to show this information.
* Update copyright statements to 2022Rémi Verschelde2022-01-0337-74/+74
| | | | Happy new year to the wonderful Godot community!
* Only rotate Android sensor values for sensors that need them rotatedMarcel Admiraal2021-12-151-31/+64
|
* Merge pull request #55159 from m4gr3d/add_oculus_openxr_config_masterRémi Verschelde2021-11-223-4/+4
|\
| * Add support for OpenXR export configurations.Fredia Huya-Kouadio2021-11-203-4/+4
| |
* | Fix Android `get_screen_orientation()` not returning valid valuesMarcel Admiraal2021-11-211-1/+28
|/
* Drop pointless Android depth buffer settingPedro J. Estébanez2021-11-153-25/+7
|
* Merge pull request #54463 from RandomShaper/fix_gl3_32bitsRémi Verschelde2021-11-097-24/+24
|\
| * Drop broken Android 32-bit framebuffer setting for a reliable one for depth ↵Pedro J. Estébanez2021-11-017-24/+24
| | | | | | | | buffer
* | Fix new projects always being created with OpenGLHugo Locurcio2021-11-011-1/+1
|/ | | | | | | | Only Vulkan is fully implemented for now, so OpenGL isn't available in the project manager yet. This also makes the rendering driver checks use lowercase names everywhere for consistency.
* clang-format: Enable `BreakBeforeTernaryOperators`Rémi Verschelde2021-10-281-8/+8
| | | | | clang-format keeps breaking the way it handles break *after* ternary operators, so I give up and go with the only style they seem to actually test.
* clang-format: Various fixes to comments alignment from `clang-format` 13Rémi Verschelde2021-10-281-11/+11
| | | | All reviewed manually and occasionally rewritten to avoid bad auto formatting.
* clang-format: Disable alignment of operands, too unreliableRémi Verschelde2021-10-283-10/+9
| | | | | | | | | Sets `AlignOperands` to `DontAlign`. `clang-format` developers seem to mostly care about space-based indentation and every other version of clang-format breaks the bad mismatch of tabs and spaces that it seems to use for operand alignment. So it's better without, so that it respects our two-tabs `ContinuationIndentWidth`.
* Add support for adding plugin views behind the main view on AndroidPouleyKetchoupp2021-09-012-1/+19
| | | | | | Doesn't change the default behavior, but allows plugins to add their view behind the main view, which gives more control over what happens with inputs and can be useful along with transparent rendering.
* Replace HTTP links with HTTPS for sites with HTTPS versionsAaron Franke2021-08-221-1/+1
|
* Check if vibration duration is > 0 on AndroidMarcus Brummer2021-08-211-1/+1
|
* Delegate handling and implementation of the restart functionality to the ↵Fredia Huya-Kouadio2021-08-183-16/+29
| | | | Godot host.
* Add partial support for Android scoped storage.ne0fhyk2021-08-162-201/+51
| | | | | This is done by providing API access to app specific directories which don't have any limitations and allows us to bump the target sdk version to 30. In addition, we're also bumping the min sdk version to 19 as version 18 is no longer supported by Google Play Services and only account of 0.3% of Android devices.
* Switch to input buffering on AndroidPedro J. Estébanez2021-08-133-60/+45
| | | | | | | | | | Key, touch and joystick events will be passed directly from the UI thread to Godot, so they can benefit from agile input flushing. As another consequence of this new way of passing events, less Java object are created at runtime (`Runnable`), which is good since the garbage collector needs to run less. `AndroidInputHandler` is introduced to have a smaller cross-thread surface. `main_loop_request_go_back()` is removed in favor just inline calling `send_window_event()` at the most caller's convenience (i.e., leveraging the new `p_deferred`` parameter as appropriate). Lastly, `get_mouse_position()` and `get_mouse_button_state()` now just call through `Input` to avoid the need of sync of mouse data tracked on the UI thread.
* Resolve issue where the Godot app remains stuck when resuming.Fredia Huya-Kouadio2021-08-123-9/+39
| | | | | | This was caused by the fact that a new instance of Godot was created at resume while a previous instance already existed. The previous instance would then go through its cleanup lifecycle, and would thus attempt to close the entire app, leading to the system to restart the app, thus starting the cycle anew. The fix involves reusing the previous instance of Godot if one is available instead of creating a new one, as well as giving control to the host activity for how the process should be terminated.
* Properly finishes Godot's Android activity when destroyed by the systemMarcus Brummer2021-08-121-0/+1
|
* Fix various typos with codespellluz paz2021-07-251-1/+1
| | | | Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,fave,findn,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint`
* Merge pull request #50220 from madmiraal/fix-50125Rémi Verschelde2021-07-061-3/+4
|\ | | | | Queue the calls to GodotLib.key when Android virtual done is pressed