summaryrefslogtreecommitdiffstats
path: root/platform/android
Commit message (Collapse)AuthorAgeFilesLines
* Reduce and prevent unnecessary random-access to `List`A Thousand Ships2024-05-042-5/+6
| | | | | | | | | Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when accessing a single element) * Removed subscript operator, in favor of a more explicit `get` * Added conversion from `Iterator` to `ConstIterator` * Remade existing operations into other solutions when applicable
* Implement `amplitude` to Input.vibrate_handheldRadiant2024-05-025-13/+29
| | | | | Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Co-authored-by: m4gr3d <m4gr3d@users.noreply.github.com>
* Merge pull request #91339 from TCROC/windows-apk-build-fixRémi Verschelde2024-05-011-4/+16
|\ | | | | | | Fix for Android build on Windows
| * added fix for android build on windowsTravis Lange2024-04-291-4/+16
| |
* | Merge pull request #91247 from AThousandShips/callable_fixRémi Verschelde2024-04-291-1/+1
|\ \ | | | | | | | | | Fix unsafe uses of `Callable.is_null()`
| * | Fix unsafe uses of `Callable.is_null()`A Thousand Ships2024-04-271-1/+1
| | | | | | | | | | | | | | | `Callable.is_null()` is not equivalent to `!Callable.is_valid()` and doesn't guarantee the call is valid.
* | | SCons: Colorize warnings/errors during generationThaddeus Crews2024-04-282-13/+11
|/ /
* | Cleanup Android file errorsFredia Huya-Kouadio2024-04-224-17/+66
| | | | | | | | Follow up to https://github.com/godotengine/godot/pull/90403
* | Merge pull request #90802 from ↵Rémi Verschelde2024-04-221-0/+30
|\ \ | | | | | | | | | | | | | | | m4gr3d/fix_android_gradle_build_copy_rename_permissions_error Fix issue causing the `copyAndRename*` task to fail on occasions on Windows machines
| * | Fix issue causing the `copyAndRename*` task to fail on occasions on Windows ↵Fredia Huya-Kouadio2024-04-171-0/+30
| |/ | | | | | | | | | | | | machines Gradle automatically handles up-to-date checks for output files and directories. This behavior sometimes causes the `copyAndRename*` task to fail on Windows machines when gradle tries to check on existing files in the output directories it doesn't have access to. To fix the issue, we disable this gradle behavior following the instructions in https://docs.gradle.org/8.2/userguide/incremental_build.html#sec:disable-state-tracking
* | Merge pull request #90710 from m4gr3d/fix_jstring_leaksRémi Verschelde2024-04-2218-21/+124
|\ \ | | | | | | | | | Fix leakage of JNI object references
| * | Fix leakage of JNI object referencesFredia Huya-Kouadio2024-04-1518-21/+124
| |/ | | | | | | Fixes https://github.com/godotengine/godot/issues/87548
* | Merge pull request #90611 from m4gr3d/automatically_generate_debug_keystoreRémi Verschelde2024-04-223-7/+93
|\ \ | | | | | | | | | Automatically generate the Android debug keystore
| * | Automatically generate the Android debug keystoreFredia Huya-Kouadio2024-04-123-7/+93
| | | | | | | | | | | | Automatically generate the Android debug keystore when the Java SDK path is specified.
* | | Merge pull request #90403 from bruvzg/file_resizeRémi Verschelde2024-04-225-0/+57
|\ \ \ | | | | | | | | | | | | [FileAccess] Implement `resize` method.
| * | | [FileAccess] Implement `resize` method.bruvzg2024-04-125-0/+57
| |/ /
* | | Collapse the gdextension arguments into the `GDExtensionData` structFredia Huya-Kouadio2024-04-192-5/+5
| | | | | | | | | | | | This is used to reduce the number of arguments to `OS::open_dynamic_library(...)`.
* | | Fix loading GDExtension dependencies on AndroidFredia Huya-Kouadio2024-04-192-15/+57
| |/ |/|
* | Fix issue with resolving the path for the Android keystore fileFredia Huya-Kouadio2024-04-122-8/+18
|/ | | | The previous logic passed the path to the Android keystore as-is to an external tool. This causes the tool to fail if the path is Godot-specific (e.g: 'res://<path_to_keystore>'
* Standardize descriptions, add urls, remove deprecated tag from ↵melquiadess2024-04-111-15/+15
| | | | non-deprecated permission
* Merge pull request #87117 from DmitriySalnikov/rename_pdbRémi Verschelde2024-04-112-2/+2
|\ | | | | | | Add renaming of PDB files to avoid blocking them
| * Add renaming of PDB files to avoid blocking themDmitriySalnikov2024-04-052-2/+2
| |
* | Revert pack trimming introduced by #82084Mikael Hermansson2024-04-101-5/+5
| |
* | [.NET] Disable output embedding on macOS, move it to the advanced options on ↵bruvzg2024-04-091-0/+6
| | | | | | | | other platforms.
* | Merge pull request #90377 from ↵Rémi Verschelde2024-04-082-0/+4
|\ \ | | | | | | | | | | | | | | | melquiadess/add-post-notification-permission-to-a-list-of-available-permissions Android: Add `POST_NOTIFICATIONS` permission to the list of permissions available in the Export dialog
| * | Add POST_NOTIFICATIONS permission to the list of permissions available in ↵melquiadess2024-04-082-0/+4
| | | | | | | | | | | | the Export dialog
* | | Merge pull request #87042 from Mickeon/documentation-EditorExportPlatform-miscRémi Verschelde2024-04-081-0/+1
|\ \ \ | |/ / |/| | | | | Add miscellaneous documentation to some classes
| * | Add miscellaneous documentation to some classesMicky2024-01-101-0/+1
| | |
* | | Merge pull request #88840 from m4gr3d/update_android_export_advanced_optionsRémi Verschelde2024-04-051-1/+9
|\ \ \ | |_|/ |/| | | | | Update the list of advanced export options for the Android platform
| * | Update the list of advanced export options for the Android platformFredia Huya-Kouadio2024-02-251-1/+9
| | |
* | | 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-046-13/+13
|\ \ \ | | | | | | | | | | | | Android: Remove redundant semicolons from Kotlin/gradle files
| * | | Remove redundant semicolons from Kotlin/gradle filesmelquiadess2024-04-026-13/+13
| | | |
* | | | 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 '?.'
* | | [DisplayServer] Add separate feature flags for different native dialog types.bruvzg2024-03-261-0/+2
| | |
* | | Fix `EXIT_SUCCESS` on AndroidAlexander Hartmann2024-03-251-1/+1
| | |
* | | Merge pull request #89703 from V-Sekai/android-fixRémi Verschelde2024-03-251-4/+4
|\ \ \ | | | | | | | | Android: Fix UnsupportedOperationException remove from non-ArrayList
| * | | android: Fix UnsupportedOperationException remove from non-ArrayListLyuma2024-03-251-4/+4
| | | |
* | | | Fix gdextensionlibs.json storage path in Android gradle buildbeicause2024-03-171-1/+1
|/ / / | | | | | | | | | It should relative to gradle build directory
* | | Merge pull request #82084 from ogapo/pr/pck-cache-mergeRémi Verschelde2024-03-111-5/+5
|\ \ \ | | | | | | | | | | | | Merge `uid_cache.bin` and `global_script_class_cache.cfg` after mounting PCKs
| * | | Merge uid_cache.bin and global_script_class_cache.cfg after mounting PCKsDavid Nikdel2024-03-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes godotengine#82061 fixes godotengine#61556 Also, distinguish between main pack and DLC packs. It's desirable to downloaded content to be as small as possible. This change avoids bloating non-main pack files with new versions of resources that are all read on startup and never used again. They have no effect if loaded after startup. - project.godot/project.binary file - extension_list.cfg - app icon and boot_splash - .ico and .icns files (these can still be opted in for DLC by listing them explicitly in the include filter)
* | | | 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
* | | | Merge pull request #87452 from bruvzg/native_menuRémi Verschelde2024-03-062-1/+13
|\ \ \ \ | |/ / / |/| | | | | | | Move `global_menu_*` methods to a separate `NativeMenu` class.
| * | | Move `global_menu_*` methods to a separate `NativeMenu` class.bruvzg2024-03-042-1/+13
| | | |
* | | | Update the Android export validation logic to account for the custom gradle ↵Fredia Huya-Kouadio2024-03-051-1/+14
|/ / / | | | | | | | | | | | | | | | | | | | | | android source template Follow-up to https://github.com/godotengine/godot/pull/88297 to address the following issues: - Ensure that the custom gradle android source template is valid. Show a warning if it's not - Don't show an error when the official export templates are not installed but a custom android source template is specified
* | | Pre-commit: Update to clang-format 17.0.6 and black 24.2.0Rémi Verschelde2024-02-281-1/+1
| | |
* | | Don't attempt shutting down adb on exit if not startedRémi Verschelde2024-02-261-1/+1
| | | | | | | | | | | | Fixes #88864.
* | | Merge pull request #88611 from Alex2782/force_device_cpu_architectureRémi Verschelde2024-02-262-1/+11
|\ \ \ | |/ / |/| | | | | Display a warning if device CPU architecture is not active in the export preset.