Commit Graph

3478 Commits

Author SHA1 Message Date
Fredia Huya-Kouadio 75d8d332f2
Bump the target SDK version to 33 (Android 13)
Keep the android gradle plugin to version 7.2.1.

Version 7.3.0 changes the build layout which causes updates to the generated shared libraries to not be picked up.

(cherry picked from commits 2803c471e8
and 837db0b051)
2023-08-19 00:36:12 +02:00
Fredia Huya-Kouadio c8e800f457
Fix directory access when the running app has the `All files access` permission
(cherry picked from commit e2c7d3e6c0)
2023-08-19 00:36:12 +02:00
Fredia Huya-Kouadio 5aca56bcd4
Implement file provider capabilities
The previously used file sharing api was restricted after Android N causing the engine to crash whenever used on devices running Android N or higher.

(cherry picked from commit b04c9a71f4)
2023-08-19 00:36:11 +02:00
Chris Weber dfb898094a
increased max touches to 32 for ios
(cherry picked from commit 54bd204377)
2023-03-06 13:32:03 +01:00
BZ1234567890 e266ac4e3e
iOS: Implement missing gamepad.buttonOptions, buttonMenu, and buttonHome joy buttons
(cherry picked from commit 0a85e4db71)
2023-03-06 13:32:03 +01:00
Antokolos b4da1fbb41
UWP: Fix build with Google ANGLE not supporting EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER
EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER is not present in Google ANGLE,
and Microsoft ANGLE is outdated and not supported anymore.

(cherry picked from commit eebc983df8)
2023-03-06 13:32:01 +01:00
Antokolos 4574c671f6
UWP: Fix app crash when `managed_object->update_clipboard()` is called
(cherry picked from commit f5693969f0)
2023-03-06 13:32:01 +01:00
PrecisionRender 237a31e1f2
Fix Xbox Series controller duplicate input
(cherry picked from commit e9400867b3)
2023-03-06 13:02:54 +01:00
Juan Linietsky 3d9bcd7d27
Fix AltGR getting stuck on Windows right alt-tab
Fixes #28511.

(cherry picked from commit e01452adb0)
2023-03-06 13:02:03 +01:00
Jordan Schidlowsky dc0f7255f1
Windows: Fix heap overflow setting native icon
Fixes #71697.

(cherry picked from commit 86945ffc78)
2023-03-06 13:00:20 +01:00
Tom Beckmann 3ef78da85a
Fix writing value for hand-tracking V2.0 to AndroidManifest.xml
(cherry picked from commit 0116d50fdd)
2023-01-20 12:16:35 +01:00
Rémi Verschelde f78b44c1fa
macOS: Fix sprintf deprecation warning
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
(cherry picked from commit a297a69ac8)
2023-01-20 12:14:21 +01:00
dependabot[bot] 6cfbe8d442
Bump json5 from 1.0.1 to 1.0.2 in /platform/web
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit a20c8443af)
2023-01-11 16:03:02 +01:00
Marius Seufzer 7a4175504b
iOS: Add new model identifiers for DPI metrics
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
(cherry picked from commit ee5057a42e)
2023-01-11 16:03:02 +01:00
bruvzg 0c0c009f8d
[macOS] Fix stylus tilt Y direction.
(cherry picked from commit 5478f9b842)
2023-01-11 16:03:02 +01:00
Rémi Verschelde 16f6a5b139
One Copyright Update to rule them all
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".

Backported from #70885.
2023-01-10 15:32:59 +01:00
Jason Knight 602ef82e89
Change auto to default in cursor css settings.
(cherry picked from commit 6812e66f33)
2022-12-12 14:59:52 +01:00
Fredia Huya-Kouadio faaec47d54
Upgrade Android gradle plugin to version 7.2.1
(cherry picked from commit 151233b702)
2022-12-12 14:45:38 +01:00
Hugo Locurcio eb100cbddb
Only support XDG directory path configuration on Linux
This also harmonizes the server code to be consistent with Linux desktop
(with warnings printed for relative XDG paths).

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit 06c266f231)
2022-12-12 14:43:22 +01:00
nyanpasu64 62be3b3a9b Fix burning CPU with udev disabled on Flatpak
Fixes #67355.

(cherry picked from commit 0cbd1c85a9)
2022-12-12 14:42:47 +08:00
Pedro J. Estébanez 0e0550a83a Fix newlines not honored in Windows console
This is relevant when building with `windows_subsystem=console`.

(cherry picked from commit e14c5186e2)
2022-12-12 14:40:39 +08:00
bruvzg d3d72268cd [MSVC] Use symbols from .pdb only, to avoid incorrect names in the backtrace when symbols are missing.
(cherry picked from commit d99c32668a)
2022-12-12 14:13:16 +08:00
bruvzg 014525904a [macOS] Update activation hack to work on Ventura.
(cherry picked from commit 153d06d79b)
2022-12-05 10:09:54 +08:00
Abdulrahman Al Zeidi 8f01733d52 Fix static object destructors being called on gpu selection with X11
(cherry picked from commit 5860f81c18)
2022-12-05 10:09:43 +08:00
Dan d4f402b728 fix exporting Android APPLICATION_ATTRIBS (3.X)
(cherry picked from commit d789ad4b20)
2022-12-05 09:44:00 +08:00
Fredia Huya-Kouadio 05cb89855e Update the `clean` task configuration
Running `gradlew clean` will now properly delete the generated build artifacts

(cherry picked from commit 71c76a4ff2)
2022-12-05 09:28:00 +08:00
Jason Knight f5b2f77111 Fix null in android keyboard handling.
(cherry picked from commit 31fe6848e8)
2022-12-05 09:22:16 +08:00
Rémi Verschelde 560c77b1a1 HTML5: Add missing `OS::get_cursor_shape()` implementation
Fixes #66835.

(cherry picked from commit 6f6c8b114b)
2022-12-05 09:21:28 +08:00
bruvzg a0f1eac3e9 [Windows, 3.x] Fix WM_CHAR processing code using Unicode char instead of Virtual key.
(cherry picked from commit 77fc88e9a6)
2022-12-05 09:17:08 +08:00
Ted Spikes 6025d4ae2e Check for ios_simulator when building for x86_64
(cherry picked from commit 21f7bd0723)
2022-09-20 10:28:01 +02:00
Rémi Verschelde 2bb8183011 HTML5: Fix warning with Emscripten 3.1.20
Use version 3.1.14 for CI like for official builds.

(cherry picked from commit 5271d69909)
2022-09-09 14:30:52 +02:00
Rémi Verschelde a027a2efaa Mono: Show custom error explaining that UWP is not supported
Fixes #64490.

(cherry picked from commit ceef056146)
2022-09-01 11:08:18 +02:00
Fredia Huya-Kouadio e1e03297f1 Additional fixes to the Android `get_current_dir()` implementation.
(cherry picked from commit 9910d4681d)
2022-09-01 11:05:27 +02:00
Nathan Franke ab5f3fcbe0 3.x: ios: force app store icon to be opaque, use proper errors, fix memory leak
(cherry picked from commit da3aecff01)
2022-08-30 11:19:20 +02:00
bruvzg 9dcbf8a8a5 [3.x, macOS / iOS Export] Fix generation of duplicate locale property list files.
(cherry picked from commit 3a24839cb2)
2022-08-30 11:14:05 +02:00
Rémi Verschelde b5e368c92b Linux: Fix GNU ld detection for pck_embed linker script
(cherry picked from commit fce3602a1e)
2022-08-30 11:07:51 +02:00
Pedro J. Estébanez fc01ed9dbb Clean iOS platform config of long gone macro
(cherry picked from commit 8c2a577350)
2022-08-29 17:13:45 +02:00
Fredia Huya-Kouadio f96f8ddfc7 Fix issue with `get_current_dir()` returning the wrong path on Android
(cherry picked from commit b5e1096c61)
2022-08-29 17:11:32 +02:00
Fredia Huya-Kouadio ea8fa93809 Disable threads used to check on plugins to load
The functionality is unavailable on Android (requires export capability) and unnecessarily consumes resources

(cherry picked from commit 3ac6b6a596)
2022-08-29 17:07:48 +02:00
Fredia Huya-Kouadio a7a8f9c85d Fix issue preventing the Android Editor from displaying the project content
The issue was causing by a bug within the logic for `FileAccessFilesystemJAndroid#eof_reached()` causing that value to remain false after the eof was reached.
This in turn caused an infinite loop in the file scanner preventing the project's content from showing up.

(cherry picked from commit 30479543b0)
2022-08-29 17:07:44 +02:00
Rémi Verschelde 7fe3a0694b CI: Sync configuration with master branch
Updates various actions to latest versions:

actions/cache@v3
actions/checkout@v3
actions/upload-artifact@v3
actions/setup-dotnet@v2
actions/setup-java@v3
actions/setup-python@v4
mymindstorm/setup-emsdk@v11

(cherry picked from commit abaa76fcf9)
2022-08-25 14:14:13 +02:00
Haoyu Qiu 1ea8b9d2b7 Fix Time.get_unix_time_from_system() not including msecs
(cherry picked from commit 1be078ebcb)
2022-08-08 16:32:16 +02:00
bruvzg e0101e511c Improve some export error messages.
(cherry picked from commit ea00cf7270)
2022-08-01 10:37:04 +02:00
Rémi Verschelde 751b16a285 File: Re-add support to skip CR (`\r`) in `File::get_as_text`
This was removed in #63481, and we confirmed that it's better like this,
but we add back the possibility to strip CR as an option, to optionally
restore the previous behavior.

For performance this is done directly in `String::parse_utf8`.

Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR.

Supersedes #63717.

(cherry picked from commit 1418f97c70)
2022-08-01 00:40:55 +02:00
Rémi Verschelde 10e8a25ce7 SCons: Fix X11 `use_lld` fallback not being applied 2022-07-31 13:49:12 +02:00
pattlebass fb7ecc748f [3.x] HTML5: Add support for `Input.vibrate_handheld()` 2022-07-28 13:20:05 +03:00
Rémi Verschelde 6c8d9b8401
Merge pull request #63480 from m4gr3d/fix_remaining_scoped_storage_regressions_3x
[3.x] Address remaining scoped storage regressions
2022-07-26 18:15:14 +02:00
Fredia Huya-Kouadio fc2c202312 Address remaining scoped storage regressions
- 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
2022-07-26 07:42:49 -07:00
Kevin Smith 01cfcab5c6 Use bigobj for release MSVC builds
Previously it was used only on debug builds, but recent
additions to variant_call.cpp have made that unit too
large even in release_debug.

It was originally set to debug only because using it
breaks mingw, so this only reinstates it for MSVC where
it shouldn't have any drawbacks (famous last words).

Test-Information:
Builds for me with
scons -j 40 platform=windows target=release_debug
and my game then runs from it.

(cherry picked from commit d8900e0020)
2022-07-26 11:01:55 +02:00
Rémi Verschelde 818f1eed31 Code quality: Fix header guards consistency
Adds `header_guards.sh` bash script, used in CI to validate future
changes. Can be run locally to fix invalid header guards.
2022-07-25 14:53:37 +02:00