summaryrefslogtreecommitdiffstats
path: root/platform/android/java/editor/src
Commit message (Collapse)AuthorAgeFilesLines
* Rebrand android editor to allow play store signingTrashguy2024-11-134-9/+9
| | | | Co-authored-by: Spartan322 <Megacake1234@gmail.com>
* Add support for launching the Play window in PiP modeFredia Huya-Kouadio2024-11-0119-41/+527
| | | | (cherry picked from commit 961394a988c7567612b133092212cbacf4dd98b2)
* Fix Kotlin license headers referring to GodotSpartan3222024-10-313-6/+6
|
* Rebrand preambles to RedotSpartan3222024-10-133-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | (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>
* Fix the cleanup logic for the Android render threadFredia Huya-Kouadio2024-07-241-1/+8
| | | | | | | | | | | | | | | 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.
* Cleanup Android input on render thread settingsFredia Huya-Kouadio2024-07-092-16/+0
| | | | | | | 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-042-2/+20
| | | | | | - 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.
* Configure the splash screen for the Android editorFredia Huya-Kouadio2024-06-108-29/+76
|
* Consolidate the ProjectManager and Editor windows into a single Android ↵Fredia Huya-Kouadio2024-06-023-98/+99
| | | | Activity class.
* 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.
* Remove redundant semicolons from Kotlin/gradle filesmelquiadess2024-04-021-1/+1
|
* Update Android dependencies for the projectFredia Huya-Kouadio2024-01-181-1/+0
| | | | | | | | | | - 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-111-0/+4
| | | | | 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.
* Fix an issue causing the running project window to loop-restart when closed ↵Fredia Huya-Kouadio2023-11-271-10/+3
| | | | with the back button
* Fix Android editor crash issueFredia Huya-Kouadio2023-11-031-3/+3
| | | | Fix issue causing the Android editor to crash when pressing back from a running project
* Add support for the OpenXR Eye gaze interaction extensionBastiaan Olij2023-10-021-4/+0
| | | | Co-authored-by: Bastiaan Olij <mux213@gmail.com>
* Merge pull request #78908 from zorbathut/pr_gitignoreRémi Verschelde2023-08-291-0/+1
|\ | | | | | | Add static check for overzealous .gitignores and fix an example of such.
| * Fix: incorrectly .gitignored files.Ben Rog-Wilhelm2023-07-011-0/+1
| |
* | Add export setting to control whether to show the Godot app in the app libraryFredia Huya-Kouadio2023-08-131-0/+1
| |
* | Godot Android re-architectureFredia Huya-Kouadio2023-07-161-4/+4
|/ | | | 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.
* Add parameters for the Godot Activity starting intent to allow restarting or ↵Fredia Huya-Kouadio2023-06-151-22/+5
| | | | | | force-quitting the engine Follow-up code cleanup for https://github.com/godotengine/godot/pull/78129
* Fix issue causing the last edited project to open while switching to another ↵Fredia Huya-Kouadio2023-06-112-16/+58
| | | | | | one. Fixes https://github.com/godotengine/godot/issues/76562
* Add setting to control the window used to run the project for the Android editorFredia Huya-Kouadio2023-06-071-2/+31
| | | | | | | | The follow options were added to the (new) `run/window_placement/android_window` editor setting: - `Same as Editor`: run the project in the same window as the editor - `Side-by-side with Editor`: run the project in an adjacent window to the editor - `Auto`: choose how to run the project based on the device screen size
* Fix issue causing the Android editor to crash when creating a new ↵Fredia Huya-Kouadio2023-05-314-2/+29
| | | | | | AudioStreamMicrophone Fixes https://github.com/godotengine/godot/issues/73801
* Merge pull request #74569 from m4gr3d/setup_play_store_builds_mainRémi Verschelde2023-05-241-0/+4
|\ | | | | | | Update the gradle build tasks to generate play store builds
| * Update the gradle build tasks to generate play store builds.Fredia Huya-Kouadio2023-04-271-0/+4
| | | | | | | | Configure the gradle builds to sign and build the release version of the Godot Android Editor
* | Improve startup benchmarkingFredia Huya-Kouadio2023-05-231-0/+3
|/ | | | Move the benchmarking measuring methods from `Engine` to `OS` to allow for platform specific overrides (e.g: can be used to hook into platform specific benchmarking and tracing capabilities).
* Enable granular control of touchscreen related settingsFredia Huya-Kouadio2023-02-221-6/+17
|
* Downgrade the vulkan abort logic to a warningFredia Huya-Kouadio2023-02-071-1/+1
| | | | This addresses issues where some drivers are reporting they don't meet the vulkan hardware level 1 support requirements even though they render as expected when the check is removed.
* Fix the issue causing the Godot Android Editor to crash when returning from ↵Fredia Huya-Kouadio2023-01-261-5/+45
| | | | | | | 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.
* Update the Godot Android Editor name from `Godot Editor 4.x` to `Godot ↵Fredia Huya-Kouadio2023-01-232-2/+2
| | | | Editor v4`
* One Copyright Update to rule them allRémi Verschelde2023-01-053-87/+87
| | | | | | | | | | | | | | | | | | | | 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".
* Add boot splash for the Godot Android EditorFredia Huya-Kouadio2022-12-162-5/+8
|
* Enable GLES3 on Androidclayjohn2022-11-291-1/+1
| | | | | | | | | | 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>
* Fix 'save & restart' logic for the Android EditorFredia Huya-Kouadio2022-11-161-3/+16
|
* Exclude small screens from the set of supported devices.Fredia Huya-Kouadio2022-09-121-1/+1
|
* Enable long press, pan and scale gestures for the Godot Android EditorFredia Huya-Kouadio2022-09-072-0/+20
| | | | Fix the bug causing the editor to crash when running the project.
* Add full support for Android scoped storage.Fredia Huya-Kouadio2022-07-053-3/+59
| | | | | 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.
* Update android:targetSdkVersion from 30 to 31Gustavo Maciel2022-06-231-0/+2
| | | | | | Starting in August 2022, new apps will need to target API level 31 (Android 12) or higher and adjust for behavioral changes. Read more here: https://developer.android.com/google/play/requirements/target-sdk
* Migrate the Godot Editor java source file to Kotlin.Fredia Huya-Kouadio2022-06-093-85/+77
|
* Misc editor tweaks and polishes:Fredia Huya-Kouadio2022-05-313-1/+40
| | | | | | - 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
* Update the editor display scale based on the device's scaled densityFredia Huya-Kouadio2022-04-042-0/+17
|
* Update `resize` settings:Fredia Huya-Kouadio2022-04-041-6/+3
| | | | | - Unlock resizing for the Godot Editor - Add an option to specify whether a game is resizeable for the Godot template
* Android port of the Godot EditorFredy Huya-Kouadio2022-03-286-0/+263
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>