Fredia Huya-Kouadio
3ba0508f79
Update the editor display scale based on the device's scaled density
2022-04-04 04:18:56 -07:00
Fredia Huya-Kouadio
8ca32d1727
Fix flickering issues with low processor mode on Android
2022-03-29 12:17:25 -07:00
Fredy Huya-Kouadio
6f2442b17a
Cleanup the gradle build configuration
...
These changes resolve the inconsistency between gradle and scons targets by configuring the gradle buildtypes to match the scons targets.
2022-03-28 08:12:55 -07:00
Fredy Huya-Kouadio
cb0b2aefc3
Android port of the Godot Editor
...
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>
2022-03-28 07:54:10 -07:00
Fredia Huya-Kouadio
b8178a7f0a
Setup logic to publish the Godot Android library to MavenCentral
...
(cherry picked from commit a2bf47de2b
)
2022-03-17 14:45:19 +01:00
Hugo Locurcio
cec7c908ca
Add get_screen_refresh_rate()
to OS
...
This method can be used to get the refresh rate of a given screen.
It is supported on Windows, macOS, Linux, Android and iOS (but not
HTML5).
2022-03-10 22:10:48 +01:00
Rémi Verschelde
85b4848ca8
Merge pull request #54188 from Rubonnek/increase_var_arg_max_3x
2022-03-08 13:10:48 +01:00
Wilson E. Alvarez
424dbf70af
Increase VARIANT_ARG_MAX to 8
2022-03-07 10:03:49 -05:00
Haoyu Qiu
1348f868c9
Make string inside TTR() single-line
2022-02-28 20:09:34 +08:00
Fredia Huya-Kouadio
5deeb38a70
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
2022-01-26 08:58:47 -08:00
Haoyu Qiu
76297e744d
Add OS.has_clipboard()
to check clipboard content
2022-01-19 20:19:06 +08:00
Rémi Verschelde
c938104a88
Merge pull request #56630 from Pineapple/replace-find-last
2022-01-18 16:36:52 +01:00
Marcel Admiraal
949ea2b326
Simplify InputDefault::joy_axis code by using float instead of struct JoyAxis
2022-01-14 15:36:35 +00:00
Rémi Verschelde
a627cdafc5
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-13 15:54:13 +01:00
Rémi Verschelde
123fcfaf83
Merge pull request #56676 from winterpixelgames/3.x-android-keystore-paths
2022-01-12 16:46:00 +01:00
Bastiaan Olij
4df4d72caf
Wrong call for create_offscreen_gl
...
We need to use `CallVoidMethod` instead of `CallBooleanMethod` to call `create_offscreen_gl`.
2022-01-12 11:01:24 +11:00
Jason Knight
39070291ef
Android export plugin passes absolute file paths to gradle for keystores.
2022-01-10 15:16:00 -06:00
Bartłomiej T. Listwon
22750b1c03
Replace String::find_last with rfind where possible (backward compatible with old API)
2022-01-08 22:40:44 +01:00
ne0fhyk
0448d4e26e
Fix Android Studio builds.
...
(cherry picked from commit 1345e66935
)
2022-01-06 00:24:42 +01:00
bruvzg
d2558bdc8c
Fix decoding UTF-8 filenames on unzipping.
...
(cherry picked from commit d2573c1636
)
2022-01-06 00:21:37 +01:00
Marcel Admiraal
b5d325e6ff
Only rotate Android sensor values for sensors that need them rotated
2021-12-15 18:15:25 +00:00
Aaron Franke
7bf7bd70ac
[3.x] Misc build system fixes
2021-12-10 12:15:16 -06:00
Rémi Verschelde
45aac0b9e9
Merge pull request #55768 from m4gr3d/config_hand_tracking_frequency_3x
2021-12-09 23:05:06 +01:00
Fredia Huya-Kouadio
4f6ce8a7ba
Enable configuration of the android:excludeFromRecents
activity attribute.
...
(cherry picked from commit cfa81ff32a
)
2021-12-09 23:03:19 +01:00
ne0fhyk
9d22ad3c9b
Add support for configuring the xr hand tracking frequency mode
2021-12-09 12:26:06 -08:00
Fredia Huya-Kouadio
65cfa28cce
Add configs to specify the min and target sdk versions.
2021-12-08 09:06:09 -08:00
Rémi Verschelde
451bba967a
Merge pull request #55158 from m4gr3d/add_oculus_openxr_config_3x
2021-11-22 10:29:49 +01:00
Marcel Admiraal
05744ee0e2
Fix Android get_screen_orientation()
not returning valid values
2021-11-21 12:14:29 +00:00
Fredia Huya-Kouadio
9c50bcabed
Add support for OpenXR export configurations.
2021-11-20 06:59:36 -08:00
Marcel Admiraal
4d3690eba5
Remove unimplemented methods
2021-11-18 12:47:36 +00:00
Pedro J. Estébanez
4f8bc77a4c
Drop broken Android 32-bit framebuffer setting
2021-11-15 10:44:41 +01:00
Pedro J. Estébanez
abdf931832
Add off-screen GL context
2021-11-09 12:19:12 +01:00
Pedro J. Estébanez
25f01cb09d
Implement get_cache_path() for iOS, and improve it for Android and Windows
2021-11-08 22:33:54 +01:00
Fredia Huya-Kouadio
724ef83971
Add default minSdkVersion
and targetSdkVersion
in the AndroidManifest.xml file
2021-11-03 21:49:22 -07:00
Rémi Verschelde
87c80f529f
clang-format: Enable BreakBeforeTernaryOperators
...
clang-format keeps breaking the way it handles break *after* ternary operators,
so I give up and go with the only style they seem to actually test.
2021-10-28 14:50:33 +02:00
Rémi Verschelde
1b65550ec7
clang-format: Various fixes to comments alignment from clang-format
13
...
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
2021-10-28 14:50:32 +02:00
Rémi Verschelde
42d385b312
clang-format: Disable alignment of operands, too unreliable
...
Sets `AlignOperands` to `DontAlign`.
`clang-format` developers seem to mostly care about space-based indentation and
every other version of clang-format breaks the bad mismatch of tabs and spaces
that it seems to use for operand alignment. So it's better without, so that it
respects our two-tabs `ContinuationIndentWidth`.
2021-10-28 13:23:38 +02:00
Rémi Verschelde
c7f4e1d5dd
Android: Properly validate godot_project_name_string
for Android special chars
...
Fixes #52659 .
(cherry picked from commit 9204a3a50e
)
2021-10-26 18:23:47 +02:00
Marcel Admiraal
4febf69f2a
Fix Gradle builds not excluding excluded tasks
...
(cherry picked from commit f80cb4dffa
)
2021-10-24 01:43:44 +02:00
Rémi Verschelde
9657559b66
SCons: Set DEBUG_ENABLED
and DEV_ENABLED
in SConstruct
...
They're the same for all platforms so they don't need to be repeated in all
platform definitions.
(cherry picked from commit cd21cc683a
)
2021-10-15 12:54:16 +02:00
Marcel Admiraal
fd942cd465
Upgrade Android Gradle to version 7.2
...
(cherry picked from commit 95b1275197
)
2021-10-15 12:51:43 +02:00
ne0fhyk
754db65a1f
Pass the correct export_format
argument to locate the assets directory when exporting.
...
(cherry picked from commit 431ccdb057
)
2021-10-11 18:04:16 +02:00
Rémi Verschelde
e292d79fb3
SCons: Add DEV_ENABLED
defines for target=debug
builds
...
This will allow adding developer checks which will be fully compiled out in
user builds, unlike `DEBUG_ENABLED` which is included in debug tempates and
the editor builds.
This define is not used yet, but we'll soon add code that uses it, and change
some existing `DEBUG_ENABLED` checks to be performed only in dev builds.
Related to https://github.com/godotengine/godot-proposals/issues/3371 .
2021-10-04 11:25:02 +02:00
Hugo Locurcio
8a6bc045ea
Add logo attribution for Android, HTML5 and Linux platform icons
...
- Tweak the Android platform logo to remove the Android wordmark,
as it can't be used without explicit permission.
(cherry picked from commit 1513aa9b26
)
2021-09-21 17:14:59 +02:00
Marcel Admiraal
cce7e6c9d6
Use current androidx Fragment library instead of legacy libraries
...
(cherry picked from commit 23311a6ed3
)
2021-09-19 11:37:19 +02:00
PouleyKetchoupp
1454d6c670
Add support for adding plugin views behind the main view on Android
...
Doesn't change the default behavior, but allows plugins to add their
view behind the main view, which gives more control over what happens
with inputs and can be useful along with transparent rendering.
(cherry picked from commit 0b681d5834
)
2021-09-19 11:30:21 +02:00
PouleyKetchoupp
52fdb4ece9
Window transparency support on Android
...
Implements per-pixel transparency feature on Android.
Allows plugins to do specific rendering and render godot UI on top
(useful for camera support with drawing on top).
2021-09-15 10:41:08 -07:00
ne0fhyk
35a98d305b
Add support for Play Asset Delivery.
...
This only adds support for a subset of Play Asset Delivery: this causes a single install-time asset pack to always be present, but doesn't add support for dynamically downloaded asset packs.
2021-09-15 06:02:53 -07:00
Rémi Verschelde
815c16ae17
Merge pull request #52515 from m4gr3d/android_export_refactoring
...
[3.x] Refactor Android platform export structure
2021-09-15 14:03:53 +02:00
Marcus Brummer
128208d1d0
Check if vibration duration is > 0 on Android
...
(cherry picked from commit 47f338fc12
)
2021-09-14 13:41:25 +02:00