summaryrefslogtreecommitdiffstats
path: root/platform/android/java/src
Commit message (Collapse)AuthorAgeFilesLines
* Split the Android platform java logic into an Android library module (`lib`) ↵fhuya2019-09-0468-13547/+0
| | | | | | and an application module (`app`). The application module `app` serves double duties of providing the prebuilt Godot binaries ('android_debug.apk', 'android_release.apk') and the Godot custom build template ('android_source.zip').
* Merge pull request #31709 from akien-mga/android-fix-thirdpartyRémi Verschelde2019-08-2737-4991/+4908
|\ | | | | Android: Fix another regression with Secure.ANDROID_ID, and fix formatting and documentation of thirdparty code
| * Android: Reapply custom changes to Google expansion.downloader libRémi Verschelde2019-08-277-48/+114
| | | | | | | | | | I don't know why they're needed, but readding for now to keep things working as they were.
| * Android: Resync Google expansion.downloader library with upstream, unmodifiedRémi Verschelde2019-08-2716-3258/+3327
| | | | | | | | Synced with https://github.com/google/play-apk-expansion/commit/9ecf54e5ce7c5a74a2eeedcec4d940ea52b16f0e.
| * Android: Reapply changes to Google licensing lib from #24145Rémi Verschelde2019-08-272-1/+12
| | | | | | | | But document them better this time.
| * Android: Resync Google licensing lib with upstream, unmodifiedRémi Verschelde2019-08-2721-1744/+1513
| | | | | | | | | | | | | | | | | | | | It had been synced with style changes (spaces -> tabs), not sure why I accepted to merge it this way back then... Synced with https://github.com/google/play-licensing/commit/eb57657f666363914085cdde49d875cf49f5ab06, same as before. Custom-changes will be reapplied in the next commit, if relevant.
| * Android: Fix another regression with Secure.ANDROID_IDRémi Verschelde2019-08-272-2/+4
| | | | | | | | Regression from #24145, which was missed in #28146.
* | Suppress MissingPermission warning for Android vibrationvolzhs2019-08-271-1/+9
|/ | | | | | | It does check its permission every `vibrate_handheld()` calls. Vibrate permission is added by checking it on export settings. And there are some changes for deprecated method.
* Update the fallback input mapping for the Oculus mobile devices.fhuya2019-08-263-45/+179
|
* Merge pull request #31437 from volzhs/vibrate-mobileRémi Verschelde2019-08-211-0/+18
|\ | | | | Support vibration for Android and iOS
| * Support vibration for Android and iOSvolzhs2019-08-211-0/+18
| |
* | Shut down Godot processes on app exit.fhuya2019-08-201-0/+4
|/
* Merge pull request #29824 from m4gr3d/add_ovr_exportRémi Verschelde2019-07-026-31/+45
|\ | | | | Add XR mode selection to the Android export process.
| * Add XR mode selection to the Android export process.fhuya2019-07-026-31/+45
| |
* | Fix some keyboards not working with Androidlawnjelly2019-06-211-2/+10
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #17004 Currently the keydown and keyup messages are handled with method like this: if ((source & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK || (source & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD || (source & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) { // joystick input } else { // keyboard input } The constant for SOURCE_DPAD is 513 10 0000 0001 and the constant for SOURCE_KEYBOARD is 257 1 0000 0001 However, rather confusingly, for many keyboards the source sent by android is 769 11 0000 0001 Thus the keyboard is passing the check as being a DPAD and being processed as a joystick rather than keyboard. This PR handles the specific case of 769, allowing input from physical keyboards.
* Setup Godot to support the Oculus Mobile SDK.fhuya2019-05-3013-652/+1270
|
* Android: Include Joysticks/Gamepads which are available on app start.wombatstampede2019-05-282-26/+49
|
* Change "ID" to lowercase "id"Aaron Franke2019-05-091-2/+2
| | | | Reasoning: ID is not an acronym, it is simply short for identification, so it logically should not be capitalized. But even if it was an acronym, other acronyms in Godot are not capitalized, like p_rid, p_ip, and p_json.
* Merge pull request #28164 from BastiaanOlij/AndroidCameraPermissionRémi Verschelde2019-04-191-0/+7
|\ | | | | Add camera permissions to android
| * Add camera permissions to androidBastiaan Olij2019-04-181-0/+7
| |
* | Fix get_unique_id() on Androidvolzhs2019-04-181-1/+1
|/
* Style: Apply new changes from clang-format 8.0Rémi Verschelde2019-04-0917-91/+58
| | | | | | It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
* Restructuring glue code to make it easier to extendBastiaan Olij2019-04-052-0/+4
|
* Request Android record permission when neededDESKTOP-3H3MR3A\eloisa2019-03-082-1/+24
|
* Restart game on GL context loss on AndroidPedro J. Estébanez2019-03-065-19/+78
| | | | | | | Bonus: Remove useless old code about reload hooks Fixes #22955.
* Android: Fixed a possible crash in keyboard hide method. It's called not ↵Ivan Ponomarev2019-02-271-8/+0
| | | | from main thread so InputMethodManager can't be used directly.
* Fix Android keep screen on working properlyvolzhs2019-01-151-16/+10
|
* Update copyright statements to 2019Rémi Verschelde2019-01-0121-42/+42
| | | | Happy new year to the wonderful Godot community!
* Fix lint error/warning while building android templatevolzhs2018-12-1863-7104/+6242
|
* Remove trailing whitespaceRémi Verschelde2018-11-203-3/+3
| | | | | With `sed -i $(rg -l '[[:blank:]]*$' -g'!thirdparty') -e 's/[[:blank:]]*$//g'` (+ manual revert of some thirdparty code under `platform/android`).
* Style: Apply clang-format to wrongly formatted filesRémi Verschelde2018-10-292-8/+8
|
* Prevent a device to be added/deleted more than once on AndroidXavier Sellier2018-10-291-74/+100
| | | | cherry-picked from fb5a601217eed9da6c9b4260c3dfc775abee2733
* Many more fixes for GLES2 mobile export. Also added ability to turn on ↵Juan Linietsky2018-10-022-5/+20
| | | | OpenGL debugging on Android export.
* Add support for onRequestPermissionsResult()FeralBytes2018-09-271-0/+10
| | | | | | Credit goes to @vanyasem https://github.com/vanyasem/Godot-AndroidPermissions But this is a much needed feature to support Android beyond API 21. Fixed style errors again.
* Add clipboard operation for android OSXavier Sellier2018-09-051-0/+23
|
* Style: Format code with clang-format 6.0.1Rémi Verschelde2018-07-184-13/+0
|
* Fix keep screen on property path for Android/iOS/UWPvolzhs2018-07-171-1/+1
|
* Fix possible NullPointerException crash on cancel paymentKonstantin Zaitsev2018-06-271-9/+7
|
* Implement OpenGL ES rasterizer selection logic for Android.geequlim2018-06-261-3/+12
|
* Remove android compatibility under API 16volzhs2018-05-092-11/+7
|
* Provide error details when in-app purchase failsRuslan Mustakov2018-04-192-13/+13
|
* Fix Android input source checksRuslan Mustakov2018-04-161-2/+2
| | | | | | Input source types are not pure bit flags, they are combinations of flags, so != 0 check was incorrect and resulted in crashes later, when trying to obtain the device.
* Remove some debugging prints on AndroidHugo Locurcio2018-02-181-48/+0
|
* Add signals and a check function for Android service connectivity.Xavier Sellier2018-02-142-1/+28
| | | | | | | - Add a iap_connect and iap_disconnect events for android platform. - Add isConnected() function returning true if its connected to android service, false otherwise (cherry picked from commit 546b48813f2b75481d846957275f6d4eecd8de3c)
* Fix broken APK expansion due to missed option renamesRémi Verschelde2018-02-131-1/+1
| | | | | | | Command line options were refactored for 3.0 to follow the common usage of double-dashed long options, but `--main-pack` went through the cracks. Fixes #16533.
* Fix Android onTextChanged crashRuslan Mustakov2018-01-171-4/+7
| | | | | | As it turns out, onTextChanged supplies a mutable CharSequence, which lead to crashes or unexpected behaviour when input was coming faster than it was processed.
* Fix Android multi touchvolzhs2018-01-072-5/+2
| | | | Fix #11798
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-0522-0/+22
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-0122-44/+44
| | | | Happy new year to the wonderful Godot community!
* Style: Apply clang-format to Java filesRémi Verschelde2017-12-1025-1510/+1419
| | | | Only those from org/godotengine/godot though, not the thirdparty ones.