summaryrefslogtreecommitdiffstats
path: root/platform/android
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #39004 from nekomatata/android-reset-surfaceRémi Verschelde2020-05-247-17/+43
|\ | | | | Proper surface reset when resuming app on Android
| * Proper surface reset when resuming app on AndroidPouleyKetchoupp2020-05-247-17/+43
| | | | | | | | Just re-creating the window instead of restarting the app entirely.
* | Use long instead of int for object id in Android java wrapperPouleyKetchoupp2020-05-244-11/+11
|/ | | | | Using int for 64-bit values might cause issues with objects not found in ObjectDB when the id is truncated.
* Merge pull request #38309 from SkyLucilfer/AndroidLineEditRémi Verschelde2020-05-207-21/+46
|\ | | | | Fix Android LineEdit editing bugs
| * Fix Android LineEdit editing bugsSkyJJ2020-05-167-21/+46
| |
* | Style: Fix unnecessary semicolons that confused clang-formatRémi Verschelde2020-05-191-1/+1
| |
* | Update the permission string for the Oculus hand tracking to match the ↵Fredia Huya-Kouadio2020-05-181-2/+2
| | | | | | | | latest api update
* | Move mix_rate, ouput_latency to AudioDriverManagerFabio Alessandrelli2020-05-181-2/+2
| | | | | | | | | | | | | | Each driver used to define the (same) project settings values `audio/mix_rate` and `audio/output_latency`, but the setting names are not driver specific. Overriding is still possible via platform tags.
* | Implementation of the Godot Android Plugin configuration fileFredia Huya-Kouadio2020-05-177-49/+466
|/
* Merge pull request #37924 from thebestnom/migrate-to-androidXRémi Verschelde2020-05-169-18/+25
|\ | | | | Android: Migrate deprecated support library to AndroidX
| * Android: Migrate deprecated support library to AndroidXthebestnom2020-05-109-18/+25
| |
* | Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-21/+40
| | | | | | | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* | Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* | Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-1464-498/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* | Port member initialization from constructor to declaration (C++11)Rémi Verschelde2020-05-142-8/+3
|/ | | | | | | | | | Using `clang-tidy`'s `modernize-use-default-member-init` check and manual review of the changes, and some extra manual changes that `clang-tidy` failed to do. Also went manually through all of `core` to find occurrences that `clang-tidy` couldn't handle, especially all initializations done in a constructor without using initializer lists.
* Style: clang-format: Disable AllowShortCaseLabelsOnASingleLineRémi Verschelde2020-05-101-8/+24
| | | | Part of #33027.
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-102-2/+4
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Style: Add missing copyright headersRémi Verschelde2020-05-101-2/+2
|
* clang-format: Add JavaImportGroups for Java codeRémi Verschelde2020-05-0636-45/+109
|
* Address `OS.request_permissions()` bug when non-platform permission(s) is ↵Fredia Huya-Kouadio2020-05-051-4/+7
| | | | included
* Rename InputFilter back to InputRémi Verschelde2020-04-283-26/+26
| | | | | | | | | | | | | | | | It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.
* Merge pull request #37193 from madmiraal/fix-android-export-unicode-errorsRémi Verschelde2020-04-281-5/+23
|\ | | | | Fix Android export throwing Unicode errors.
| * Fix Android export throwing Unicode errors.Marcel Admiraal2020-03-201-5/+23
| |
* | Fix detection logic for the Android sdk pathFredia Huya-Kouadio2020-04-241-1/+1
| | | | | | | | The previous logic used the 'tools' directory within the Android sdk to validate it. That directory was recently deprecated and removed from the Android sdk folder (https://developer.android.com/studio/releases/sdk-tools)
* | Fix Android templates size regressionFredia Huya-Kouadio2020-04-232-2/+6
| | | | | | | | | | The issue was caused by PR #36906 which changes prevented the generated shared libraries from being stripped. Since the change is only needed for development (debugging) purposes, it's commented out by default.
* | Migrate legacy apache dependency to the GodotPayment pluginfhuya2020-04-156-7/+8
| | | | | | | | This is the only location in the codebase where it's being used, so no need to make the main lib have a dependency on it.
* | Android: Bump build tools to 29.0.3Rémi Verschelde2020-04-141-1/+1
| |
* | Delete unused drawable resources.fhuya2020-04-134-0/+0
| |
* | Validate supported architectures when exporting to AndroidSkyJJ2020-04-131-0/+9
| |
* | Add signal support to Godot Android plugin:fhuya2020-04-108-188/+480
| | | | | | | | Supports registering and emitting signal from a Godot Android plugin
* | Merge pull request #37256 from m4gr3d/add_custom_build_gradle_settingsRémi Verschelde2020-04-102-0/+7
|\ \ | | | | | | Update Android custom template build configuration
| * | Update Android custom template build configuration.fhuya2020-04-072-0/+7
| | |
* | | Fix extra warnings in Android buildPouleyKetchoupp2020-04-101-8/+0
| | |
* | | Display Server supportPouleyKetchoupp2020-04-0810-740/+935
| | |
* | | Vulkan rendering for AndroidPouleyKetchoupp2020-04-0324-181/+484
| | |
* | | Android: Downgrade gradle plugin to 3.5.3Rémi Verschelde2020-04-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the NDK installed locally, gradle plugin 3.6.0 seems to enforce a specific older NDK version, and will fail building if you don't have it installed with: ``` No version of NDK matched the requested version 20.0.5594570. Versions available locally: 21.0.6113669 ``` Upstream issue: https://github.com/gradle/gradle/issues/12440
* | | Replace NULL with nullptrlupoDharkael2020-04-0217-115/+115
| | |
* | | SCons: Format buildsystem files with psf/blackRémi Verschelde2020-03-302-137/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configured for a max line length of 120 characters. psf/black is very opinionated and purposely doesn't leave much room for configuration. The output is mostly OK so that should be fine for us, but some things worth noting: - Manually wrapped strings will be reflowed, so by using a line length of 120 for the sake of preserving readability for our long command calls, it also means that some manually wrapped strings are back on the same line and should be manually merged again. - Code generators using string concatenation extensively look awful, since black puts each operand on a single line. We need to refactor these generators to use more pythonic string formatting, for which many options are available (`%`, `format` or f-strings). - CI checks and a pre-commit hook will be added to ensure that future buildsystem changes are well-formatted.
* | | Fix copyright headers for recently added filesRémi Verschelde2020-03-282-4/+4
| | |
* | | Renaming of servers for coherency.Juan Linietsky2020-03-272-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
* | | Refactored input, goes all via windows now.Juan Linietsky2020-03-263-5/+7
| | | | | | | | | | | | Also renamed Input to InputFilter because all it does is filter events.
* | | Refactored Input, create DisplayServer and DisplayServerX11Juan Linietsky2020-03-262-3/+2
|/ /
* | Merge pull request #37219 from RajatGoswami/missing-include-guardsRémi Verschelde2020-03-232-0/+10
|\ \ | | | | | | Adding missing include guards to header files identified by LGTM
| * | Adding missing include guards to header files identified by LGTM.Rajat Goswami2020-03-232-0/+10
| |/ | | | | | | This addresses the issue godotengine/godot#37143
* / Make file formatting comply with POSIX and Unix standardsAaron Franke2020-03-211-1/+1
|/ | | | UTF-8, LF, no BOM, and newlines at the end of files
* Update the naming scheme for the GodotPlugin's methods in preparate of the ↵fhuya2020-03-195-24/+40
| | | | vulkan integration.
* Removed unused code in android detect.py and SCsubunknown2020-03-182-8/+0
|
* Complete the implementation of the GodotPayment plugin.fhuya2020-03-1711-175/+39
| | | | Move the remaining plugin components within the plugin source code.
* Merge pull request #36906 from m4gr3d/enable_android_studio_debuggingRémi Verschelde2020-03-173-4/+6
|\ | | | | Enable Android Studio debugging
| * Enable Android studio debugger.fhuya2020-03-083-4/+6
| |