Commit Graph

486 Commits

Author SHA1 Message Date
bruvzg 2274ec84cb
[3.x, iOS export] Add support for privacy manifest configuration. 2024-04-30 09:39:20 +03:00
Andrés Botero 9c4035fb7b Allow automatic provisioning in iOS when using development signature.
Implements https://github.com/godotengine/godot/pull/86748/files in 3.x.
2024-03-17 08:56:48 -05:00
bruvzg 5255b661b4
[3.x, iOS] Remove deprecated LaunchImages support and switch to Storyboard by default. 2024-03-10 10:10:14 +02:00
Rémi Verschelde 273d5897a0
Merge pull request #85229 from ztc0611/3.x-ios-add-pause-resume-notifs
[3.x] Enhance mobile suspend MainLoop notifications
2024-02-07 09:40:13 +01:00
bruvzg e6fb19275e
[iOS, 3.x] Update linker flags for Xcode 15.0 - 15.2. Bump min. iOS version to 12. 2024-01-19 08:19:46 +02:00
Cody Roberts 739d27ae40
Add project settings for AVAudioSessionCategory on iOS
Co-authored-by: Georg Wacker <contact@georgwacker.com>
2024-01-10 13:33:11 +01:00
Zach Coleman ffe86eef04 [iOS] Add APP_PAUSED and APP_RESUMED MainLoop notifications 2023-11-22 12:03:53 -05:00
Zach Coleman f330bea7a0 [3.x] Make OSIPhone::get_screen_refresh_rate respect iOS Low Power Mode 2023-11-22 11:56:12 -05:00
Roman Vasilyev 93913e8d5c
ios splash screen rotation fix
(cherry picked from commit 8fcca194a1)
2023-08-28 17:27:14 +02:00
Rémi Verschelde 55550da68b
SCons: Disable C++ exception handling
Upon investigating the extremely slow MSVC build times in #80513, I noticed
that while Godot policy is to never use exceptions, we weren't enforcing it
with compiler flags, and thus still included exception handling code and
stack unwinding.

This is wasteful on multiple aspects:

- Binary size: Around 20% binary size reduction with exceptions disabled
  for both MSVC and GCC binaries.
- Compile time:
  * More than 50% build time reduction with MSVC.
  * 10% to 25% build time reduction with GCC + LTO.
- Performance: Possibly, needs to be benchmarked.

Since users may want to re-enable exceptions in their own thirdparty code
or the libraries they compile with Godot, this behavior can be toggled with
the `disable_exceptions` SCons option, which defaults to true.
2023-08-16 10:34:10 +02:00
bruvzg 18ee8da7d6
Add audio/general/text_to_speech project setting to enable/disable TTS. 2023-05-26 20:57:29 +03:00
Chris Weber 914182ffe3
increased max touches to 32 for ios
(cherry picked from commit 54bd204377)
2023-03-06 13:48:18 +01:00
BZ1234567890 0a85e4db71 iOS: Implement missing gamepad.buttonOptions, buttonMenu, and buttonHome joy buttons 2023-02-22 21:14:54 +01:00
Travis Veralrud 28b11a0785 iOS: Fix memory leak on touch input
Replaces iOS gesture with touch implementation

Fixes #66422

Remove godot_view_gesture_recognizer

It's now unused.

Remove input_devices/pointing/ios/touch_delay

Unused with removal of gesture.

Remove unused methods from interface

Implementation made obsolete in prior commit

Style conformance
2023-02-15 21:38:55 -08:00
Marius Seufzer bf577a6c2a
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 14:24:08 +01:00
Rémi Verschelde 1426cd3b3a
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:26:54 +01:00
Rémi Verschelde b0b759e6da
SCons: Cleanup `DEBUG`, `_DEBUG` and `NDEBUG` defines
- `_DEBUG` is MSVC specific so it didn't make much sense to define for
  Android and iOS builds.
- iOS was the only platform to define `DEBUG`. We don't use it anywhere
  outside thirdparty code, which we usually don't intend to debug, so it
  seems better to be consistent with other platforms.
- Consistently define `NDEBUG` to disable assert behavior in both `release`
  and `release_debug` targets. This used to be set for `release` for all
  platforms, and `release_debug` for Android and iOS only.
- Due to the above, I removed the only use we made of `assert()` in Godot
  code, which was only implemented for Unix anyway, should have been
  `DEV_ENABLED`, and is in PoolAllocator which we don't actually use.
- The denoise and recast modules keep defining `NDEBUG` even for the `debug`
  target as we don't want OIDN and Embree asserting all over the place.

(cherry picked from commit 26e9145c26)
2022-12-12 14:49:21 +01:00
Rémi Verschelde b18ef4dc83 SCons: Remove redundant `-fomit-frame-pointer` and `-ftree-vectorize`
- `-fomit-frame-pointer` is included automatically by both GCC and
  Clang in `-O1` and above.
- `-ftree-vectorize` is included automatically by GCC in `-O2` and
  beyond, and seems always enabled by Clang.

Closes #66296. See that issue for a detailed investigation.

(cherry picked from commit c5c3d13dc0)
2022-12-04 20:03:06 +08:00
bruvzg 84904da07a
[Export] Use image loader directly to avoid "resource as image file" errors.
(cherry picked from commit 908bef8eee)
2022-11-30 15:56:06 +01:00
bruvzg 44739a121e
[3.x] Windows icon export improvements.
Regenerate Windows icon on export to ensure correct icon size order.
Add support for using PNG/WebP/SVG files as an icon for Windows exports.
Allow using WebP/SVG files as icon for macOS exports.
Add option to select generated icons interpolation, and set default interpolation to Lanczos.
2022-11-20 13:02:27 +02:00
Rémi Verschelde 92aedd5063
Merge pull request #68190 from ztc0611/3.x-ios-promotion
[3.x] Add ProMotion/High Refresh Rate Support to iOS Exports
2022-11-03 11:34:22 +01:00
Zach Coleman e538771d4f [3.x] Add ProMotion Support to iOS Exports 2022-11-02 22:14:34 -04:00
Zach Coleman 5e7b0e3a61 [3.x] Add iOS UI Options 2022-11-02 22:13:18 -04:00
Fredia Huya-Kouadio be4b07c3e4 Add `double_tap` attribute to `InputEventScreenTouch`
This provides parity with the `InputEventMouseButton` allowing for proper conversion between the two events.
2022-10-20 11:56:11 -07:00
Ted Spikes 4356077153 Check for ios_simulator when building for x86_64
(cherry picked from commit 21f7bd0723)
2022-09-20 10:26:17 +02:00
Rémi Verschelde d5c1baa288 SCons: Refactor handling of `production` flag and per-platform LTO defaults
Fixup to #63288.
See #65583 for the bug report.

Co-authored-by: Cyberrebell <chainsaw75@web.de>
(cherry picked from commit 35a15e6191)
2022-09-20 10:26:17 +02:00
Rémi Verschelde 570e6c1730 SCons: Refactor LTO options with `lto=<none|thin|full>`
Adds support for LTO on macOS and Android.
Disable LTO by default on iOS even if `production=yes` is set.

Also add `linker` option to `server` platform missed in #63283.

Refactor code handling old arguments to make it simpler (breaks compat,
but is explicit enough about it and scripts are easy to fix).
2022-09-05 14:45:12 +02:00
bruvzg 3a24839cb2
[3.x, macOS / iOS Export] Fix generation of duplicate locale property list files. 2022-08-30 08:16:49 +03:00
Rémi Verschelde 59402ff8ad
Merge pull request #64631 from nathanfranke/3-ios-opaque
(3.x) iOS: Force app store icon to be opaque, use proper errors, fix memory leak
2022-08-25 08:43:14 +02:00
Rémi Verschelde 8388ea1d6b
Merge pull request #64839 from akien-mga/3.x-zstd-1.5.2
zstd: Update to upstream version 1.5.2
2022-08-25 00:51:28 +02:00
bruvzg b7c9eb1a3c Add arch flag to assembler to fix build on ARM64 macOS / iOS.
(cherry picked from commit b767d2e0fd)
2022-08-24 18:26:28 +02:00
Pedro J. Estébanez 0876491983 Clean iOS platform config of long gone macro
(cherry picked from commit 8c2a577350)
2022-08-24 17:13:21 +02:00
Nathan Franke da3aecff01
3.x: ios: force app store icon to be opaque, use proper errors, fix memory leak 2022-08-19 13:18:01 -05:00
Fredia Huya-Kouadio 989d5990ad
Merge pull request #64420 from m4gr3d/investigate_read_write_access_loss_3x
[3.x] Fix issue preventing the Android Editor from displaying the project content
2022-08-15 13:19:01 -07:00
Fredia Huya-Kouadio 3ac6b6a596 Disable threads used to check on plugins to load
The functionality is unavailable on Android (requires export capability) and unnecessarily consumes resources
2022-08-15 02:30:08 -07:00
Fredia Huya-Kouadio d2213f76a9 Refactor the export checking logic to improve separation of concerns 2022-08-14 08:47:09 -07:00
Sergey Minakov e8035ffe84 [iOS] Extend iOS plugins to support Swift runtime 2022-08-09 20:19:12 +03:00
Rémi Verschelde 0bed7ea63f
Merge pull request #61316 from bruvzg/tts_3x
[3.x] Backport text-to-speech support.
2022-08-05 23:45:51 +02:00
Rémi Verschelde 26762a71b6
Merge pull request #58537 from winterpixelgames/feature/virtual-keyboard-types-3.x 2022-08-05 19:37:13 +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
Pedro J. Estébanez 0348fa2640 Flush accumulated input events on iOS 2022-07-08 20:01:19 +02:00
Jan Haller 861e155543 Fix exit code of --help and --version, and test them in CI
Corrects prior regression which caused ERROR output and exit code of 1.

(cherry picked from commit d38d76d039)
2022-07-08 14:54:16 +02:00
Brian Semrau ce24b48e50 Add support for multiple virtual keyboard types 2022-07-07 14:22:28 -04:00
bruvzg 6489fe890e
Backport text-to-speech support. 2022-07-01 11:04:50 +03:00
bruvzg f5fa1ca944
Add readable export errors. Add RTL image vertical alignment support. 2022-06-08 17:56:28 +03:00
Haoyu Qiu b657d0c76c Add dedicated macros for property name extraction
* Replace case-by-case extraction with PNAME & GNAME
* Fix group handling when group hint begins with property name
* Exclude properties that are PROPERTY_USAGE_NOEDITOR
2022-05-19 11:31:35 +08:00
Hugo Locurcio 0df7aa1e2c Increase compiler optimization when using `target=release` on iOS/Android
(cherry picked from commit 78b4ec2d4d)
2022-05-16 17:52:07 +02:00
Timo Schwarzer 8b55b80056
Fix vibration duration on iOS
Fixes #61063
2022-05-16 10:33:41 +02:00
Paulo Feodrippe c46bbdee53 Fix simulatenous touches for different touch types
(cherry picked from commit a6f06d57dc)
2022-05-05 13:49:50 +02:00
Timo Schwarzer 8fb9c96df9 Vibrate using iOS haptics engine on supported devices (3.x) 2022-04-27 09:46:42 +02:00