Commit Graph

3286 Commits

Author SHA1 Message Date
Wilson E. Alvarez 720b3a40ce Properly check for fullscreen toggle made through the Window Manager
(cherry picked from commit cf38b6f187)
2022-07-07 14:12:34 +02:00
Paweł Fertyk d8f8ae0ce1 Fix `set_window_size` crash when using NaN
Fixes #60466.

(cherry picked from commit b3f822eaae)
2022-07-07 14:11:01 +02:00
ElCosmoXD a215d29857 Fixed the missing DLL's issue
(cherry picked from commit 432e752028)
2022-07-07 14:08:49 +02:00
Rémi Verschelde 431558d419 Android: Only warn when Target SDK is non default
The validation logic for Min Sdk and Target Sdk was flawed as it triggers
errors for users not using Custom Build even if they never modified the
values themselves.

The default values for those settings get saved in `export_presets.cfg` and
thus the error gets triggered when moving from 3.4.4 or earlier to 3.4.5, as
the target SDK changed from 30 to 31.

So instead we just show a warning to make users aware of this non-default
Min Sdk or mostly Target Sdk that might be in their preset.

We also warn when they do use Custom Build as the target SDK 30 would likely
still be an upgrade issue and not an intentional choice, especially given
that Google Play will now require SDK 31.

The export info dialog is now exclusive so that when it doesn't auto-close,
i.e. when it errors, you don't close it by mistake by clicking outside.

The valid range for both options is no longer limited to Godot's own default
target SDK, but can accept higher values (they are not guaranteed to work,
but they might).

To be able to display warning, the relevant code is backported from 30ee208bd.

Fixes #62465 without breaking compatibility for 3.4.5.
2022-07-03 17:44:34 +02:00
Gustavo Maciel ef701d6c27 Update android:targetSdkVersion from 30 to 31
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

(cherry picked from commit ec6d5d6cba)
2022-06-23 16:00:07 +02:00
Rémi Verschelde afe8492241 Fix typos with codespell
Using codespell 2.2-dev from current git.

Fix a couple incorrect uses of gendered pronouns.
2022-06-19 14:06:55 +02:00
Fabio Alessandrelli d519a97104 [JS] Add flag to disable weak symbols in ZSTD.
Weak symbols are currently broken in upstream emscripten.

(cherry picked from commit 070bd87aaa)
2022-05-05 15:47:02 +02:00
Fabio Alessandrelli 80d46acf5d Added missing signature.
(cherry picked from commit a4c3e915be)
2022-05-05 15:47:01 +02:00
Paulo Feodrippe 38c23419d9 Fix simulatenous touches for different touch types
(cherry picked from commit a6f06d57dc)
2022-05-05 15:47:01 +02:00
Marcel Admiraal 54808aa460 Check for null when retrieving clip data item text on Android
(cherry picked from commit 5924e2b90e)
2022-05-05 15:47:01 +02:00
Fredy Huya-Kouadio 290e10fdf9 Update Meta hand tracking version
https://developer.oculus.com/blog/presence-platforms-hand-tracking-api-gets-an-upgrade/
(cherry picked from commit 32ace78a3e)
2022-05-05 15:18:03 +02:00
Rémi Verschelde 694aef9ae5 Linux: Use pkg-config for alsa, libudev and GL too
It's not needed on most distros as those are found in standard lib
and include paths, but on NixOS they're all in non-standard prefixes,
so we need to rely on information provided by pkg-config.

Fixes #59913.

Co-authored-by: David Lewis <davidalewis00@gmail.com>
(cherry picked from commit 07ad066420)
2022-05-05 15:15:10 +02:00
ConteZero d87f9ad419 Fix X11 is_window_maximized
(cherry picked from commit 59fb6c9ef0)
2022-04-13 12:18:45 +02:00
ztco224 b86b4e5004 Fix DST Error on Windows
(cherry picked from commit 4802f15231)
2022-03-17 13:36:19 +01:00
Fredia Huya-Kouadio 451d3d378c Setup logic to publish the Godot Android library to MavenCentral
(cherry picked from commit a2bf47de2b)
2022-03-17 13:06:34 +01:00
Rémi Verschelde c3d7c4d41c Revert "Fix detected leaks/heap-use-after-free by AddressSanitizer at startup"
This reverts commit 0ae6150d8e.

It broke `detect_prime`'s main purpose which is to detect GPUs and use
the best one available.
2022-03-15 09:33:11 +01:00
Wilson E. Alvarez 0ae6150d8e Fix detected leaks/heap-use-after-free by AddressSanitizer at startup
(cherry picked from commit 3f94ea6271)
2022-03-13 18:14:54 +01:00
Mai Lavelle cf3497ce78 Fix deleting of directories on Linux
Trailing slash of directories was mishandled, and incorrect derived paths
were formed. Stripping the slash fixes this.

(cherry picked from commit 2c00b90613)
2022-03-12 15:07:17 +01:00
Rémi Verschelde 6b4d7d20a4 Revert "[HTML5] Fetch API now passes credentials."
(cherry picked from commit 63df46c238)
2022-03-07 14:40:42 +01:00
Haoyu Qiu fbd74ae941 Make string inside TTR() single-line
(cherry picked from commit 1348f868c9)
2022-03-02 12:07:01 +01:00
Sergey Minakov 0cb1d17d22 [iOS] Fix multitouch not working correctly
(cherry picked from commit 15ef056997)
2022-03-01 11:05:03 +01:00
Sergey Minakov a6b7300438 [iOS] Fix incorrect method name for input dragging event
(cherry picked from commit 8b3ac9479e)
2022-02-19 15:46:19 +01:00
Fabio Alessandrelli 06de19a266
[HTML5] Fetch API now passes credentials.
Used default value before, i.e. "same-origin", now uses "include" (i.e.
include for cross-origin if cross-origin is allowed).

(cherry picked from commit ffe248cbdf)
2022-02-17 10:34:36 +01:00
bruvzg f883dd48ca
Add empty translation files to the exported app bundle, to allow translation detection by the OS.
(cherry picked from commit 2eeff4caec)
2022-02-17 10:30:53 +01:00
Sergey Minakov 21b6d31e4c
[iOS] Fix touch handling for overlay views
Workaround for GodotView touches being called from UIWindow on different UIView input

(cherry picked from commit aba5f6d9be)
2022-02-17 10:25:07 +01:00
Rémi Verschelde 269c585f08
Server: Fix skip libstdc++ static linking on macOS
Fixes #48161.

(cherry picked from commit 94dd9c26dd)
2022-02-17 10:22:06 +01:00
Fabio Alessandrelli c09b8a9997
Revert "[HTML5] Better engine config parsing."
This reverts commit 2f509f1b12.

Breaks closure compiler builds.
And adds a warning for future readers.

(cherry picked from commit 6d3d17651a)
2022-02-04 00:17:30 +01:00
bruvzg 894b6d5049
Fix iOS export with manually specified signing/provisioning data.
(cherry picked from commit 57db989a97)
2022-02-02 23:19:21 +01:00
Rémi Verschelde 717cb07304
Windows: Fix GCC -fpermissive error with 'pck' section workaround
Follow-up to #57450.

(cherry picked from commit 5a1f42b322)
2022-02-01 12:20:50 +01:00
Fabio Alessandrelli 147e2b7c92
[HTML5] Fix gamepad samples not being properly reset.
(cherry picked from commit 93968e1451)
2022-01-31 21:45:51 +01:00
Fabio Alessandrelli 18d676636d
[HTML5] Better engine config parsing.
(cherry picked from commit 2f509f1b12)
2022-01-31 21:45:44 +01:00
Bartłomiej T. Listwon 3cae7a7df5
Prevent LTCG (MSVC LTO) from removing "pck" section
(cherry picked from commit e4bde938a1)
2022-01-31 20:40:31 +01:00
Fredia Huya-Kouadio 3b4be5741e
Fix XR Android manifest metadata
- Adds the parameters for supported Meta devices, which is required to access some device specific capabilities
- Remove the 'com.samsung.android.vr.application.mode' metadata when we're not using the VrApi plugin

(cherry picked from commit 5deeb38a70)
2022-01-31 20:38:43 +01:00
Haoyu Qiu fbff61dfe9
Fix memory leak when move to trash fails on Linux
(cherry picked from commit 8be49838b3)
2022-01-25 18:56:36 +01:00
Rémi Verschelde 0e0ccc4adf
ImageLoader: Remove references to unsupported svgz extension
I don't see any reference to gzip/svgz supported in the nanosvg library,
and the handful of test gzip compressed svgz files I tried failed loading.

Also cleaning a couple missing includes in platform export code.

(cherry picked from commit 1ee44b2366)
2022-01-25 18:41:01 +01:00
Rémi Verschelde 71066cd63b
Update copyright statements to 2022
Happy new year to the wonderful Godot community!

(cherry picked from commit a627cdafc5)
2022-01-13 16:00:37 +01:00
Jason Knight b83ae018ff
Android export plugin passes absolute file paths to gradle for keystores.
(cherry picked from commit 39070291ef)
2022-01-12 16:46:11 +01:00
bruvzg 454fe105e6
[macOS] Improve window activation hack.
(cherry picked from commit 927105692f)
2022-01-12 16:42:24 +01:00
Max Hilbrunner 4674599dfa
Windows input: fix bracket -> brace for US input
(cherry picked from commit 36af1abbe0)
2022-01-12 16:16:28 +01:00
Rémi Verschelde 2e8fdd0112
Fix typos with codespell
Using codespell 2.1.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
GIRD
leapyear
lod
merchantibility
nd
numer
ois
ony
que
readded
seeked
statics
synching
te
uint
unselect
webp
EOF

$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```

(cherry picked from commit b197de6f5f)
2022-01-07 00:17:47 +01:00
bruvzg cb6d82a111
Fix multiple missing UTF-8 decoding.
(cherry picked from commit c69e0d16bc)
2022-01-06 21:30:41 +01:00
bruvzg 0868f6af62
Fix decoding UTF-8 filenames on unzipping.
(cherry picked from commit d2573c1636)
2022-01-06 00:58:32 +01:00
Marcel Admiraal ecb283009e
Fix tablet tilt values returning bad values
(cherry picked from commit 913855926d)
2022-01-06 00:58:32 +01:00
bruvzg 8d83e58b37
[macOS] Fix OpenGL flickering.
Remove kCGLCEMPEngine, which is causing flicker.
Disable window redraw during resize, when rendering in the separate thread.
2021-12-21 11:23:00 +02:00
Sam Lantinga 31f5b20d0f
Fixed detecting the Valve Streaming Gamepad
Fixed the GUID, and compare the contents of the GUID, not just the pointers

(cherry picked from commit 8df0baf6f5)
2021-12-17 00:05:21 +01:00
bruvzg 5f7b91136f
[Windows] Detect new Windows Terminal and disable unsupported set_console_visible code.
(cherry picked from commit 9aef3a93dd)
2021-12-16 23:05:54 +01:00
bruvzg cd5ba99f35
[Windows] Open a new console window for the editor instances.
(cherry picked from commit 38c1706a7d)
2021-12-14 17:31:13 +01:00
Aaron Franke e147fc3428
[3.x] Misc build system fixes
(cherry picked from commit 7bf7bd70ac)
2021-12-14 17:29:59 +01:00
ne0fhyk 522c0dd6b6
Add support for configuring the xr hand tracking frequency mode
(cherry picked from commit 9d22ad3c9b)
2021-12-09 23:05:20 +01:00
Fredia Huya-Kouadio 605502a0d2
Enable configuration of the `android:excludeFromRecents` activity attribute.
(cherry picked from commit cfa81ff32a)
2021-12-09 23:03:42 +01:00