summaryrefslogtreecommitdiff
path: root/platform/android/java
AgeCommit message (Collapse)Author
2021-11-03Add default `minSdkVersion` and `targetSdkVersion` in the ↵Fredia Huya-Kouadio
AndroidManifest.xml file
2021-11-01Fix new projects always being created with OpenGLHugo Locurcio
Only Vulkan is fully implemented for now, so OpenGL isn't available in the project manager yet. This also makes the rendering driver checks use lowercase names everywhere for consistency.
2021-10-28clang-format: Enable `BreakBeforeTernaryOperators`Rémi Verschelde
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-28clang-format: Various fixes to comments alignment from `clang-format` 13Rémi Verschelde
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
2021-10-28clang-format: Disable alignment of operands, too unreliableRémi Verschelde
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-23Fix Gradle builds not excluding excluded tasksMarcel Admiraal
2021-10-14Upgrade Android Gradle to version 7.2Marcel Admiraal
2021-09-15Add support for Play Asset Delivery.ne0fhyk
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-08Use current androidx Fragment library instead of legacy librariesMarcel Admiraal
2021-09-01Merge pull request #52159 from m4gr3d/addoculus_openxr_Fredia Huya-Kouadio
Update the AndroidManifest to enable access to Oculus OpenXR runtime
2021-09-01Add support for adding plugin views behind the main view on AndroidPouleyKetchoupp
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.
2021-08-27Update the AndroidManifest to enable access to Oculus OpenXR runtime.ne0fhyk
2021-08-22Replace HTTP links with HTTPS for sites with HTTPS versionsAaron Franke
2021-08-21Check if vibration duration is > 0 on AndroidMarcus Brummer
2021-08-18Delegate handling and implementation of the restart functionality to the ↵Fredia Huya-Kouadio
Godot host.
2021-08-16Add partial support for Android scoped storage.ne0fhyk
This is done by providing API access to app specific directories which don't have any limitations and allows us to bump the target sdk version to 30. In addition, we're also bumping the min sdk version to 19 as version 18 is no longer supported by Google Play Services and only account of 0.3% of Android devices.
2021-08-13Switch to input buffering on AndroidPedro J. Estébanez
Key, touch and joystick events will be passed directly from the UI thread to Godot, so they can benefit from agile input flushing. As another consequence of this new way of passing events, less Java object are created at runtime (`Runnable`), which is good since the garbage collector needs to run less. `AndroidInputHandler` is introduced to have a smaller cross-thread surface. `main_loop_request_go_back()` is removed in favor just inline calling `send_window_event()` at the most caller's convenience (i.e., leveraging the new `p_deferred`` parameter as appropriate). Lastly, `get_mouse_position()` and `get_mouse_button_state()` now just call through `Input` to avoid the need of sync of mouse data tracked on the UI thread.
2021-08-13Merge pull request #51586 from m4gr3d/investigate_godot_resume_stalls_masterRémi Verschelde
Resolve issue where the Godot app remains stuck when resuming.
2021-08-12Add support for prompting the user to retain app data on uninstall.Fredia Huya-Kouadio
Supported on Android 10 and higher.
2021-08-12Resolve issue where the Godot app remains stuck when resuming.Fredia Huya-Kouadio
This was caused by the fact that a new instance of Godot was created at resume while a previous instance already existed. The previous instance would then go through its cleanup lifecycle, and would thus attempt to close the entire app, leading to the system to restart the app, thus starting the cycle anew. The fix involves reusing the previous instance of Godot if one is available instead of creating a new one, as well as giving control to the host activity for how the process should be terminated.
2021-08-12Properly finishes Godot's Android activity when destroyed by the systemMarcus Brummer
2021-07-25Fix various typos with codespellluz paz
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,fave,findn,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint`
2021-07-20Disable resource optimizations for release builds as it breaks the legacy ↵ne0fhyk
build system.
2021-07-06Merge pull request #50220 from madmiraal/fix-50125Rémi Verschelde
Queue the calls to GodotLib.key when Android virtual done is pressed
2021-07-06Remove Android onKeyMultiple overrideMarcel Admiraal
2021-07-06Queue the calls to GodotLib.key when Android virtual done is pressedMarcel Admiraal
2021-07-06Merge pull request #50107 from madmiraal/android-use-lambdasRémi Verschelde
Replace single method anonymous classes with lambdas in Godot Java code
2021-07-03Use static inner classes in Godot Java codeMarcel Admiraal
2021-07-03Replace single method anonymous classes with lambdas in Godot Java codeMarcel Admiraal
2021-07-02Merge pull request #50085 from madmiraal/android-replace-stringbufferRémi Verschelde
Use StringBuilder instead StringBuffer in Godot Java code
2021-07-02Merge pull request #50083 from madmiraal/android-fix-raw-useRémi Verschelde
Fix raw use of parameterized Class
2021-07-02Remove redundant explicit types in Godot Java codeMarcel Admiraal
2021-07-02Use StringBuilder instead StringBuffer in Godot Java codeMarcel Admiraal
2021-07-02Merge pull request #50078 from madmiraal/android-remove-unused-importsRémi Verschelde
2021-07-02Fix raw use of parameterized ClassMarcel Admiraal
2021-07-02Remove unused imports from Android Java codeMarcel Admiraal
2021-07-02Merge pull request #50074 from madmiraal/android-replace-c-arrayRémi Verschelde
Use Java array declarations not C-style declarations in Android Java code
2021-07-02Merge pull request #50072 from madmiraal/android-remove-interface-modifiersRémi Verschelde
Remove redundant interface modifiers from Android Java code
2021-07-02Use Java array declarations not C-style declarations in Android Java codeMarcel Admiraal
2021-07-02Remove redundant interface modifiers from Android Java codeMarcel Admiraal
2021-07-02Remove unnecessary semicolons from Android Java codeMarcel Admiraal
2021-07-01Android: Add `isGame` application attribute, default to trueRémi Verschelde
It can be turned off in the export preset with `package/classify_as_game`. Upstream definition: https://developer.android.com/guide/topics/manifest/application-element#isGame > `android:isGame` > > Whether or not the application is a game. The system may group together > applications classifed as games or display them separately from other > applications. Also fixes replacing `android:allowBackup` in custom builds.
2021-06-30Fix unchecked call to put() warning in GodotInputHandler.javaMarcel Admiraal
2021-06-24Update config versions and deprecate the use of the jcenter maven repo.ne0fhyk
2021-06-22Add support for custom debug keystore.ne0fhyk
2021-06-10Merge pull request #49435 from madmiraal/add-android-external-dirRémi Verschelde
Add OS.get_external_data_dir() to get Android external directory
2021-06-10Add OS.get_external_data_dir() to get Android external directoryMarcel Admiraal
2021-06-10Remove unused AudioDriverAndroid from AndroidMarcel Admiraal
2021-06-07Merge pull request #49382 from akien-mga/misc-cleanupRémi Verschelde
Style: Cleanup uses of double spaces between words
2021-06-07Style: Cleanup uses of double spaces between wordsRémi Verschelde
Or after punctuation. Tried to leave third-party stuff alone, unless it has been heavily modified for Godot.