Fredia Huya-Kouadio
96a3f01ac5
Add missing `ndkVersion` to the library gradle build config.
...
(cherry picked from commit 9418197081
)
2021-02-18 10:37:59 +01:00
Fredia Huya-Kouadio
1557bc8396
Revert AGP to version 4.0.1 as a workaround to https://issuetracker.google.com/issues/171235570 in version 4.1.x
...
(cherry picked from commit e5311f3523
)
2021-02-18 10:37:28 +01:00
Rémi Verschelde
48b73e4532
Android: Bump NDK version to 21.4.7075529
...
This is what GitHub Actions now provide and they removed the previous 21.3.6528147.
A bit annoying to have our hand forced this way but it's still 21.x so should be good
to upgrade.
(cherry picked from commit c730da8b20
)
2021-02-18 00:36:46 +01:00
Fredia Huya-Kouadio
d559def1a9
Add verbose logging to help with troubleshooting the Android build/export process.
2021-02-17 13:30:01 -08:00
Fredia Huya-Kouadio
64f5a7b8ca
Expose GodotPlugin's utility methods used for registration and signal emitting.
...
This enables creation and use of a plugin like class by composition rather than inheritance.
2021-02-15 15:57:36 -08:00
Michael Conrad
8777282c40
Fix joystick axis mapping issues with NVIDIA shield. Probably others.
...
Issues addressed:
a) Axis mappings were including virtual mouse axes on NVIDIA Shield TV.
The virtual mouse axes have the same axis numbers as the normal analog stick numbers. This was completely breaking joypad support on NVIDIA Shield TV.
b) Joypads were being tracked in a List with the index in the list being treated as the Godot device id.
If a device were to be removed, any device later in the list would be shifted, potentially causing future events with the shifted joypads to have incorrect IDs according to the Godot engine.
c) Unnecessary events were being sent to the Godot engine.
A check was added (per Joystick) that will prevent sending events for all axes when only a single axis value changed.
A similar check was added for "HATs".
See #45712
2021-02-09 08:33:42 -05:00
Fredia Huya-Kouadio
5886d09521
Improve the logic to compile for Android by automatically detecting and setting up the Android NDK if needed.
...
(cherry picked from commit eee213e01a
)
2021-02-05 13:29:02 +01:00
zaevi
56535539d4
add search extensions for scons' path
...
(cherry picked from commit befbfecd4d
)
2021-02-02 13:02:47 +01:00
Sergey Minakov
64923945b3
[Plugins] Rename 'PluginConfig' struct to platform specific name
2021-01-15 02:12:53 +03:00
Rémi Verschelde
49646383f1
Update copyright statements to 2021
...
Happy new year to the wonderful Godot community!
2020 has been a tough year for most of us personally, but a good year for
Godot development nonetheless with a huge amount of work done towards Godot
4.0 and great improvements backported to the long-lived 3.2 branch.
We've had close to 400 contributors to engine code this year, authoring near
7,000 commit! (And that's only for the `master` branch and for the engine code,
there's a lot more when counting docs, demos and other first-party repos.)
Here's to a great year 2021 for all Godot users 🎆
(cherry picked from commit b5334d14f7
)
2021-01-13 16:17:06 +01:00
Rémi Verschelde
188609e5ab
CI: Update to clang-format 11 and apply ternary operator changes
...
(cherry picked from commit af878716f2
)
2021-01-13 16:14:35 +01:00
Fredia Huya-Kouadio
170752c5a5
Update the logic to sign prebuilt Godot Android apks.
...
The previously used tool, `jarsigner` has been deprecated in favor of `apksigner` which is bundled with the Android SDK.
The logic is refactored accordingly and a few editor settings have been deprecated in the process as they're no longer necessary.
Note: As a side effect, specifying the Android SDK path is now required. The docs will be updated to reflect that change.
2021-01-01 13:27:27 -08:00
Rémi Verschelde
95b3feb675
Merge pull request #44639 from m4gr3d/export_format_util_method_3_2
...
[3.2] Hardcode the export format for the editor 'run' feature
2020-12-30 09:12:00 +01:00
Fredia Huya-Kouadio
3ba1a8ccb3
Add utility method to export the project using a preset format and sign parameter.
2020-12-29 09:01:21 -08:00
Fredia Huya-Kouadio
c27c436785
Fix invalid invocation of `get_class_loader`.
...
The call was made on a `Godot` instance instead of an `Activity` instance.
(cherry picked from commit 2d492ff8ba
)
2020-12-29 16:02:02 +01:00
Marcel Admiraal
e21adf2bc6
Don't handle BaseException in build scripts
2020-12-12 10:10:23 +00:00
Fabio Alessandrelli
299be786a1
Remove unused FileAccessJAndroid.
...
(cherry picked from commit 09a9712a6a
)
2020-12-09 12:00:50 +01:00
Fabio Alessandrelli
f73c9e555f
Remove now unused FileAccessBuffered.
...
(cherry picked from commit 781efc26e0
)
2020-12-09 11:36:58 +01:00
alan-w-255
cbda02991f
fix android wrong multi-touch pointerid
2020-11-27 16:46:21 +08:00
Rémi Verschelde
4a1643114e
Export: Reorder options for consistency across platforms
...
(cherry picked from commit 504efc5f9b
)
2020-11-26 09:38:46 +01:00
Fredia Huya-Kouadio
d13d29240c
Update gradle build files to automatically perform signing and zipalign tasks for custom builds.
2020-11-22 17:54:12 -08:00
Fredia Huya-Kouadio
16181a38eb
Fix zipalign command name on Windows machines.
...
(cherry picked from commit c4f2d87747
)
2020-11-19 17:15:28 +01:00
Vaughan Ling
7a9660e8d2
Change android orientations from sensor to user
...
# Conflicts:
# platform/android/java/lib/src/org/godotengine/godot/GodotIO.java
(cherry picked from commit d658063833
)
2020-11-17 12:01:59 +01:00
Fredia Huya-Kouadio
566835e181
Update the logic to query for the 'scons' command executable path.
...
(cherry picked from commit 46cc3233d8
)
2020-11-17 12:01:59 +01:00
Marcus Brummer
75f33fddab
Added the .jks file extension as valid preset for Android keystore files
...
(cherry picked from commit e1b9be4a6b
)
2020-11-17 12:01:59 +01:00
Rémi Verschelde
c36a755472
Merge pull request #43022 from Klowner/3.2-android-display-orientation
...
Implement OS.get_screen_orientation() for Android
2020-11-15 09:39:29 +01:00
Rémi Verschelde
b6d76c9d34
Merge pull request #43525 from m4gr3d/address_new_custom_build_logic_issues_3_2
...
[3.2] Address new custom build logic issues
2020-11-14 22:59:26 +01:00
Fredia Huya-Kouadio
380022637e
Add missing zip alignment step for generated apks.
2020-11-14 13:16:56 -08:00
Fredia Huya-Kouadio
e87ee41fd4
Fix issue causing `Export all` to fail.
2020-11-14 13:16:56 -08:00
Fredia Huya-Kouadio
adf2b36179
Clear unneeded assets when generating an apk expansion.
...
Clean up export wording to account for the different export formats.
2020-11-14 13:16:08 -08:00
Fredia Huya-Kouadio
c9b5e912dd
Remove duplicate Android `orientation` settings.
2020-11-13 12:18:37 -08:00
Mark Riedesel
92ff6c5164
Implement OS.get_screen_orientation() for Android
2020-11-13 10:14:06 -05:00
thebestnom
8405f1225e
[3.2] Android: Keyboard modifier and arrow key support
2020-11-13 15:10:17 +02:00
Fredia Huya-Kouadio
835d4535b7
Add a separate `nativeSrcsConfigs` module to handle Android Studio constraints for native code editor support.
...
(cherry picked from commit edf762fba6
)
2020-11-11 15:30:56 +01:00
Fredia Huya-Kouadio
3b547457d7
Update the gradle plugins
...
(cherry picked from commit aff7cf4390
)
2020-11-11 15:30:55 +01:00
thebestnom
191c84f952
Android: Mouse Implementation
...
Implement mouse
Move touch to inputManager
Change to use android/input.h
2020-10-30 15:23:29 +02:00
PouleyKetchoupp
4ccde80d9d
Release .build_version file handle in Android custom build export
...
(cherry picked from commit b271315bac
)
2020-10-28 15:09:13 +01:00
Mark Riedesel
5740bd808a
Fix android apk contents having mtime 1 month in future
...
minizip documentation describes tm_mon as expecting the number of months
since January - [0, 11], but the month returned by OS.get_date() is in
the range of [1, 12].
(cherry picked from commit 5fe902244a
)
2020-10-28 14:05:40 +01:00
Mark Riedesel
2bec10fd1c
Implement OS.get_window_safe_area() for Android
2020-10-27 11:52:20 -04:00
Fredia Huya-Kouadio
91a1e4c9ee
Fix splash screen loading on Android
2020-09-28 11:24:02 -07:00
Rémi Verschelde
fc50d5b38c
Merge pull request #42186 from m4gr3d/3.2-android-subview
...
[3.2] Godot Android Subview Implementation
2020-09-27 20:05:33 +02:00
Fredia Huya-Kouadio
8d9733f90c
Add overridable init method for the Godot fragment instance.
2020-09-18 16:45:46 -07:00
Fredia Huya-Kouadio
e99dc65b64
Enable the ability to use Godot as a subview within an Android app
...
(cherry picked from commit 920639511d
)
2020-09-18 16:45:40 -07:00
Aman Jain
59da1db188
Add 'Export App Bundle' to Android Export Options
2020-09-18 16:38:30 -07:00
Aman Jain
654342d3bf
refactor apk signing into it's own method
2020-09-18 16:17:31 -07:00
Aman Jain
452af201b0
Write an AndroidManifest.xml file to be merged with app module's manifest.
2020-09-18 16:17:31 -07:00
Aman Jain
a323a1eacd
Added methods to copy project icon files to Gradle project
2020-09-18 16:17:31 -07:00
Aman Jain
ee9127bd20
Create strings.xml files to mimic behavior of _fix_resources method
2020-09-18 16:17:27 -07:00
Aman Jain
824f0b0569
Refactored permissions and command line flags into separate methods
2020-09-18 16:12:15 -07:00
Aman Jain
29a71edd76
Utility methods for writing files to Gradle project.
2020-09-18 16:12:15 -07:00