summaryrefslogtreecommitdiffstats
path: root/platform/android/java/lib/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix android logger Godot references to RedotSpartan3222024-11-143-7/+7
|
* Rebrand android editor to allow play store signingTrashguy2024-11-1358-158/+158
| | | | Co-authored-by: Spartan322 <Megacake1234@gmail.com>
* Add support for launching the Play window in PiP modeFredia Huya-Kouadio2024-11-012-12/+23
| | | | (cherry picked from commit 961394a988c7567612b133092212cbacf4dd98b2)
* Fix Android app permissions for SDK levels earlier than 28Andreas Raddau2024-11-011-3/+3
| | | | (cherry picked from commit 90c35f3978fa03a7f8d90f55889a4004228faf5a)
* Fix Kotlin license headers referring to GodotSpartan3222024-10-3118-36/+36
|
* Fix copyright headers referring to GodotSpartan3222024-10-2733-66/+66
|
* Rebrand preambles to RedotSpartan3222024-10-1351-0/+102
| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit e8542b06acca3c1bdeee4b528411771f0819f084) Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Rebrand Godot 4.3 to RedotTrashguy2024-10-136-16/+16
|
* Update the Android `fileLastModified` method to return values in seconds ↵Fredia Huya-Kouadio2024-09-162-2/+2
| | | | | | instead of milliseconds (cherry picked from commit cde873b4064360da01a9ffd92956e7d89e2c3eae)
* Fix the cleanup logic for the Android render threadFredia Huya-Kouadio2024-07-2411-36/+114
| | | | | | | | | | | | | | | On Android the exit logic goes through `Godot#onDestroy()` who attempts to cleanup the engine using the following code: ``` runOnRenderThread { GodotLib.ondestroy() forceQuit() } ``` The issue however is that by the time we ran this code, the render thread has already been paused (but not yet destroyed), and thus `GodotLib.ondestroy()` and `forceQuit()` which are scheduled on the render thread are not executed. To address this, we instead explicitly request the render thread to exit and block until it does. As part of it exit logic, the render thread has been updated to properly destroy and clean the native instance of the Godot engine, resolving the issue.
* Merge pull request #94468 from ↵Rémi Verschelde2024-07-172-2/+5
|\ | | | | | | | | | | m4gr3d/restart_editor_when_updating_touchscreen_settings [Android Editor] Resolve issues with the editor touchscreen settings
| * Disable long press for mouse eventsFredia Huya-Kouadio2024-07-172-2/+5
| | | | | | | | | | | | Long press is used to simulate right-click events for finger touch and stylus. The previous logic also caused it to trigger for mouse input, which is not needed since the user can instead use the mouse right click button. This update disables long press as right click events for mouse input.
* | Cleanup Android input on render thread settingsFredia Huya-Kouadio2024-07-093-35/+17
|/ | | | | | | Follow up to https://github.com/godotengine/godot/pull/93933 Clean up the set of settings use to control whether Android input should be dispatched on the render thread. Addresses comments in https://github.com/godotengine/godot/pull/93933#issuecomment-2210437977
* Fix ANRs reported by the Google Play ConsoleFredia Huya-Kouadio2024-07-046-122/+191
| | | | | | - Add support for dispatching input on the render thread (UI thread is the current default) when `input_buffering` and `accumulated_input` are disabled. At the expense of latency, this helps prevent 'heavy' applications / games from blocking the UI thread (the default behavior) which may cause the application to ANR. - Remove GLSurfaceView logic causing the UI thread to wait on the GL thread during lifecycle events. The removed logic would cause the UI thread to ANR when the GL thread is blocked.
* Fix crashes reported by the Google Play ConsoleFredia Huya-Kouadio2024-07-044-40/+54
|
* Merge pull request #92965 from m4gr3d/fix_splash_screenRémi Verschelde2024-06-131-1/+5
|\ | | | | | | Update the Android splash screen logic
| * 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-042-6/+6
|\ | | | | | | Android: Remove redundant semicolons from Kotlin/gradle files
| * Remove redundant semicolons from Kotlin/gradle filesmelquiadess2024-04-022-6/+6
| |
* | Merge pull request #90146 from ↵Rémi Verschelde2024-04-042-38/+94
|\ \ | | | | | | | | | | | | | | | 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-042-38/+94
| |/
* / 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>
* [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-181-9/+11
| | | | | | | | | | | | | | | | | | | | - 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>