Rémi Verschelde
472d10a0ad
Android: Reapply custom changes to Google expansion.downloader lib
...
I don't know why they're needed, but readding for now to keep things
working as they were.
2019-08-27 14:30:14 +02:00
Rémi Verschelde
ee5898f58a
Android: Resync Google expansion.downloader library with upstream, unmodified
...
Synced with https://github.com/google/play-apk-expansion/commit/9ecf54e5ce7c5a74a2eeedcec4d940ea52b16f0e .
2019-08-27 14:10:31 +02:00
Rémi Verschelde
ce60217894
Android: Reapply changes to Google licensing lib from #24145
...
But document them better this time.
2019-08-27 14:10:30 +02:00
Rémi Verschelde
6f0367052a
Android: Resync Google licensing lib with upstream, unmodified
...
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.
2019-08-27 13:44:16 +02:00
Rémi Verschelde
071ebb1e48
Android: Fix another regression with Secure.ANDROID_ID
...
Regression from #24145 , which was missed in #28146 .
2019-08-27 13:44:07 +02:00
fhuya
5eaaabceaf
Update the fallback input mapping for the Oculus mobile devices.
2019-08-26 18:48:54 -07:00
Rémi Verschelde
1a4dbd9ee2
Merge pull request #31437 from volzhs/vibrate-mobile
...
Support vibration for Android and iOS
2019-08-21 21:10:22 +02:00
volzhs
4061e5bb75
Support vibration for Android and iOS
2019-08-21 23:38:53 +09:00
fhuya
f35b1f3b91
Shut down Godot processes on app exit.
2019-08-20 22:35:46 -07:00
Rémi Verschelde
d2c416ec62
Merge pull request #29824 from m4gr3d/add_ovr_export
...
Add XR mode selection to the Android export process.
2019-07-02 10:36:30 +02:00
fhuya
12e0dc1b65
Add XR mode selection to the Android export process.
2019-07-02 00:12:38 -07:00
lawnjelly
512f8ebb93
Fix some keyboards not working with Android
...
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.
2019-06-21 12:57:33 +01:00
fhuya
2c3536810a
Setup Godot to support the Oculus Mobile SDK.
2019-05-30 16:35:50 -07:00
wombatstampede
6e46701e64
Android: Include Joysticks/Gamepads which are available on app start.
2019-05-28 18:23:30 +02:00
Aaron Franke
702b539405
Change "ID" to lowercase "id"
...
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.
2019-05-09 06:25:32 -04:00
Rémi Verschelde
f20c9c25eb
Merge pull request #28164 from BastiaanOlij/AndroidCameraPermission
...
Add camera permissions to android
2019-04-19 11:27:11 +02:00
Bastiaan Olij
fab84c7dff
Add camera permissions to android
2019-04-18 23:16:41 +10:00
volzhs
5a4b2087a0
Fix get_unique_id() on Android
2019-04-18 08:07:03 +09:00
Rémi Verschelde
c8994b56f9
Style: Apply new changes from clang-format 8.0
...
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).
2019-04-09 17:09:48 +02:00
Bastiaan Olij
b2c0a687f1
Restructuring glue code to make it easier to extend
2019-04-05 21:44:06 +11:00
DESKTOP-3H3MR3A\eloisa
b22cf46fdb
Request Android record permission when needed
2019-03-08 12:38:36 -03:00
Pedro J. Estébanez
2d0d64794e
Restart game on GL context loss on Android
...
Bonus:
Remove useless old code about reload hooks
Fixes #22955 .
2019-03-06 19:09:17 +01:00
Ivan Ponomarev
288ff2fd08
Android: Fixed a possible crash in keyboard hide method. It's called not from main thread so InputMethodManager can't be used directly.
2019-02-27 16:59:50 +03:00
volzhs
87db1a8971
Fix Android keep screen on working properly
2019-01-15 22:06:44 +09:00
Rémi Verschelde
b16c309f82
Update copyright statements to 2019
...
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
volzhs
b385a4b053
Fix lint error/warning while building android template
2018-12-18 17:26:33 +09:00
Rémi Verschelde
173b342ca7
Remove trailing whitespace
...
With `sed -i $(rg -l '[[:blank:]]*$' -g'!thirdparty') -e 's/[[:blank:]]*$//g'`
(+ manual revert of some thirdparty code under `platform/android`).
2018-11-20 11:15:02 +01:00
Rémi Verschelde
bfd1f09ac5
Style: Apply clang-format to wrongly formatted files
2018-10-29 23:47:40 +01:00
Xavier Sellier
7dcf779a8b
Prevent a device to be added/deleted more than once on Android
...
cherry-picked from fb5a601217eed9da6c9b4260c3dfc775abee2733
2018-10-29 13:04:36 -03:00
Juan Linietsky
bad991ea83
Many more fixes for GLES2 mobile export. Also added ability to turn on OpenGL debugging on Android export.
2018-10-02 10:00:15 -03:00
FeralBytes
39738d1866
Add support for onRequestPermissionsResult()
...
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.
2018-09-27 19:20:26 -08:00
Xavier Sellier
f68e127079
Add clipboard operation for android OS
2018-09-05 17:27:45 -04:00
Rémi Verschelde
7c9f7452f4
Style: Format code with clang-format 6.0.1
2018-07-18 16:27:03 +02:00
volzhs
d18235bc38
Fix keep screen on property path for Android/iOS/UWP
2018-07-17 18:45:57 +09:00
Konstantin Zaitsev
d05db4de8e
Fix possible NullPointerException crash on cancel payment
2018-06-27 14:12:53 +07:00
geequlim
e2aa777d4d
Implement OpenGL ES rasterizer selection logic for Android.
2018-06-26 12:21:06 +08:00
volzhs
2f8f34ceaf
Remove android compatibility under API 16
2018-05-09 06:01:33 +09:00
Ruslan Mustakov
265caa687b
Provide error details when in-app purchase fails
2018-04-19 21:04:20 +07:00
Ruslan Mustakov
5dffa506dc
Fix Android input source checks
...
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.
2018-04-16 11:19:07 +07:00
Hugo Locurcio
d698814367
Remove some debugging prints on Android
2018-02-18 00:09:56 +01:00
Xavier Sellier
b8def58705
Add signals and a check function for Android service connectivity.
...
- 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)
2018-02-14 08:05:19 +01:00
Rémi Verschelde
e3658a6464
Fix broken APK expansion due to missed option renames
...
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 .
2018-02-13 22:41:19 +01:00
Ruslan Mustakov
8d41175cae
Fix Android onTextChanged crash
...
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.
2018-01-17 19:28:27 +07:00
volzhs
8fbb82719e
Fix Android multi touch
...
Fix #11798
2018-01-07 23:29:44 +09:00
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
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.
2018-01-05 01:22:23 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Rémi Verschelde
7cb6e6b723
Style: Apply clang-format to Java files
...
Only those from org/godotengine/godot though, not the thirdparty ones.
2017-12-10 01:16:07 +01:00
Unknown
fd1b94e307
Improve slang, especially in user-visible parts
2017-12-05 15:41:38 +01:00
Bastiaan Olij
6205eb40e7
Align sensors and implement gravity sensor for Android
2017-11-11 09:42:23 +11:00
Ramesh Ravone
55784b0c38
export onBackPress for Android Module
2017-10-15 10:35:13 +05:30