summaryrefslogtreecommitdiffstats
path: root/platform/android/java/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * Configure the splash screen for the Android editorFredia Huya-Kouadio2024-06-101-1/+5
| |
* | Move the most specific motion event guard to the top of the function.Tareq Anuar2024-06-111-13/+12
|/
* Fix invalid return value when multiple permission requests are dispatchedFredia Huya-Kouadio2024-06-021-4/+6
|
* Merge pull request #92133 from m4gr3d/fix_touch_inputRémi Verschelde2024-05-293-117/+116
|\ | | | | Fix invalid detection of mouse input
| * Input logic cleanup:Fredia Huya-Kouadio2024-05-193-117/+116
| | | | | | | | | | | | | | | | | | | | - Fix invalid detection of mouse input. Prioritize using the event tool type to detect the type of the event, and only use the event source as fallback. - Ensure that pressure and tilt information is passed for touch drag events - Consolidate logic and remove redundant methods - Improve the logic to detect when external hardware keyboards are connected to the device
* | Fix InputEventScreenDrag on AndroidAlexander Hartmann2024-05-211-2/+22
| |
* | Add logic to unregister the Godot plugins on engine terminationFredia Huya-Kouadio2024-05-191-12/+10
|/
* Switch to the WindowInsetsAnimationCompat apiFredia Huya-Kouadio2024-05-131-48/+33
| | | | | | Replace the use of WindowInsetsAnimation with WindowInsetsAnimationCompat; the former was only introdcued in api 30 and caused a crash on older versions of Android. Fixes https://github.com/godotengine/godot/issues/91773
* Style: Trim trailing whitespace and ensure newline at EOFRémi Verschelde2024-05-081-1/+0
| | | | Found by apply the file_format checks again via #91597.
* Implement `amplitude` to Input.vibrate_handheldRadiant2024-05-021-6/+15
| | | | | Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Co-authored-by: m4gr3d <m4gr3d@users.noreply.github.com>
* Cleanup Android file errorsFredia Huya-Kouadio2024-04-223-14/+60
| | | | Follow up to https://github.com/godotengine/godot/pull/90403
* [FileAccess] Implement `resize` method.bruvzg2024-04-122-0/+31
|
* Improve performance by extracting windowManager and getRotatedValues()melquiadess2024-04-041-20/+15
| | | | | | | | | Once sensor listeners are registered, onSensorChanged() (and subsequently getRotatedValues()) gets called multiple times per socond. Obtaining WindowManager on each of those calls is superfluous and can be avoided by extracting it to a lazy class val. getRotatedValue() can also be called before checking sensor type, and used for each one of them, resulting in less code repetition.
* Merge pull request #90147 from melquiadess/remove-redundant-semicolonsRémi Verschelde2024-04-043-7/+7
|\ | | | | | | Android: Remove redundant semicolons from Kotlin/gradle files
| * Remove redundant semicolons from Kotlin/gradle filesmelquiadess2024-04-023-7/+7
| |
* | Merge pull request #90146 from ↵Rémi Verschelde2024-04-044-38/+201
|\ \ | | | | | | | | | | | | | | | melquiadess/extract-command-line-file-parsing-and-add-unit-tests Android: Extract parsing command line file to a separate class + add unit tests
| * | Extract parsing command line file to a separate class + add unit testsmelquiadess2024-04-044-38/+201
| |/
* / Use ?. (and ?.let) safe operators instead of !!melquiadess2024-03-283-77/+97
|/ | | | | | | | This PR prevents potential NPEs, and follows Kotlin conventions more closely by replacing the unsafe !! operator with safe ?. (or ?.let) (usually !! would only be used very rarely, and with a good reason - there is one place left in this PR where !! makes sense), and by replacing Java style 'if (x != null)' with Kotlin's '?.'
* android: Fix UnsupportedOperationException remove from non-ArrayListLyuma2024-03-251-4/+4
|
* Add `PermissionsUtil#requestPermissions(...)` to provide the ability to ↵Fredia Huya-Kouadio2024-03-071-46/+86
| | | | | | request multiple permissions at a time Fix https://github.com/GodotVR/godot_openxr_vendors/issues/101
* Fix Compatibility Rendering (GLES3) on old and low budget devices.Alexander Hartmann2024-02-222-4/+25
| | | | Co-Authored-By: joined72 <19651914+joined72@users.noreply.github.com>
* Always enable debug symbols when developing with Android StudioFredia Huya-Kouadio2024-02-151-1/+2
|
* [Android 14] Fix GodotEditText white box showing during editor loadBZ12345678902024-02-151-0/+3
|
* Merge pull request #88130 from AlekseyKapustyanenko/Rotary_InputRémi Verschelde2024-02-132-2/+30
|\ | | | | | | Add rotary input support for Android platform
| * Add rotary input support. Fix documentationALEKSEY KAPUSTYANENKO2024-02-132-2/+30
| |
* | Merge pull request #87384 from bruvzg/sys_base_colorRémi Verschelde2024-02-133-5/+29
|\ \ | | | | | | | | | Add method to get "base" system UI color and system theme change callback.
| * | Add method to get "base" system UI color (macOS/Windows) and system theme ↵bruvzg2024-02-133-5/+29
| |/ | | | | | | change callback.
* | Merge pull request #86619 from Alex2782/fix_flag_decimalRémi Verschelde2024-02-131-1/+15
|\ \ | |/ |/| | | Fix virtual keyboard for decimal values on Android
| * Fix virtual keyboard for decimal values on AndroidAlexander Hartmann2024-02-131-1/+15
| |
* | Update Android dependencies for the projectFredia Huya-Kouadio2024-01-183-12/+17
| | | | | | | | | | | | | | | | | | | | - Update Android gradle plugin version from 7.2.1 to 8.2.0 - Update gradle version from 7.4.2 to 8.2 - Update target SDK from 33 to 34 - Update build tools version from 33.0.2 to 34.0.0 - Update kotlin version from 1.7.0 to 1.9.20 - Update Android fragment version from 1.3.6 to 1.6.2 - Update AndroidX window version from 1.0.0 to 1.2.0
* | Disable automatic permissions requestFredia Huya-Kouadio2024-01-112-13/+9
| | | | | | | | | | The feature was added in Godot 4.2, but it goes against recommended best practices for permissions request, as such it's being reverted. In its place, developers now have to explicitly request the permissions they need to access.
* | Merge pull request #86379 from m4gr3d/update_render_thread_paused_timing_mainRémi Verschelde2024-01-057-57/+98
|\ \ | | | | | | | | | Android: Update the logic used to start / stop the render thread
| * | Update the logic used to start / stop the render threadFredia Huya-Kouadio2023-12-207-57/+98
| |/ | | | | | | Currently the render thread is started / stopped when the activity is respectively resumed / paused. However, according to the `GLSurfaceView` documentation, this should be done instead when the activity is started / stopped, so this change updates the start / stop logic for the render thread to match the documentation.
* / Fix 'get_window_safe_area' on AndroidAlexander Hartmann2024-01-031-5/+3
|/
* Improve engine startup/shutdown benchmarksYuri Sizov2023-12-083-21/+32
| | | | | | | | | - Add contexts to give a better sense of benchmarked areas. - Add missing benchmarks and adjust some begin/end points. - Clean up names. - Improve Android's internal benchmarks in a similar manner. Co-authored-by: Fredia Huya-Kouadio <fhuya@meta.com>
* Fix issue causing Godot Android apps / games to freeze on closeFredia Huya-Kouadio2023-11-271-2/+5
| | | | The issue occurred because during the 'close' event, the logic was trying to terminate the native engine on the UI thread instead of doing on the render thread.
* Fix retrieving command line flags in Android.Tareq Anuar2023-10-281-1/+1
|
* Fix the timeframe when the Android gestures properties are retrieved.Fredia Huya-Kouadio2023-10-111-3/+15
| | | | Previous logic was retrieving them prior to them being defined in `main.cpp`
* Cleanups and improvements to the Godot Android library api:Fredia Huya-Kouadio2023-10-087-30/+71
| | | | | | | | - Provide api to retrieve the running Godot instance from a GodotHost - Provide api for the GodotHost to register runtime GodotPlugin instances - Hide the GodotService class until it's completed - Include project setting to enable long press for Android devices - Include project setting to enable pan and scale gestures on Android devices
* Add support for the OpenXR Eye gaze interaction extensionBastiaan Olij2023-10-024-0/+39
| | | | Co-authored-by: Bastiaan Olij <mux213@gmail.com>
* Support dark mode on Android and iOS.Zae2023-09-261-0/+20
|
* Merge pull request #80644 from Distantz/masterRémi Verschelde2023-09-172-4/+22
|\ | | | | | | Android Stylus pressure and tilt support.
| * Android stylus pressure and tilt supportpikethom2023-08-152-4/+22
| |
* | Merge pull request #80932 from m4gr3d/fix_hardware_keyboard_input_routing_mainYuri Sizov2023-09-141-0/+29
|\ \ | | | | | | | | | Fix Android input routing logic when using a hardware keyboard
| * | Fix Android input routing logic when using a hardware keyboardFredia Huya-Kouadio2023-08-231-0/+29
| |/ | | | | | | | | When a hardware keyboard is connected, all key events come through so we can route them directly to the engine. This is not the case for soft keyboards, for which the current logic was designed as it requires extra processing.
* | Relax restriction on loading v1 Android plugins on Godot 4.2+Fredia Huya-Kouadio2023-09-062-19/+46
| |
* | Godot Android plugin re-architectureFredia Huya-Kouadio2023-09-034-179/+83
|/
* Fix various typos with codespellRémi Verschelde2023-08-072-2/+2
| | | | | | | | | Also includes typo fixes from #79993, #80068, #80276, and #80303. Co-authored-by: betalars <contact@betalars.de> Co-authored-by: spaceyjase <429978+spaceyjase@users.noreply.github.com> Co-authored-by: Swarkin <102416174+Swarkin@users.noreply.github.com> Co-authored-by: Raul Santos <raulsntos@gmail.com>
* Fix npe when registering the sensors.Fredia Huya-Kouadio2023-07-281-8/+16
|
* Godot Android re-architectureFredia Huya-Kouadio2023-07-1614-1063/+1368
| | | | Decouples the Godot java entry point from the Android Fragment component. This enables the Godot component to be more easily reused across different types of Android components including Activities and Services.