fhuya
a7712cc9e4
Add new events and accompanying logic to notify when the app is paused and resumed on Android devices.
2019-09-19 13:29:49 -07:00
fhuya
7fabfd402f
Split the Android platform java logic into an Android library module (lib
) 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').
2019-09-04 16:20:22 -07:00
Rémi Verschelde
f38c64e8b1
Merge pull request #31709 from akien-mga/android-fix-thirdparty
...
Android: Fix another regression with Secure.ANDROID_ID, and fix formatting and documentation of thirdparty code
2019-08-27 20:16:08 +02:00
Rémi Verschelde
b7c46ed929
Merge pull request #31713 from volzhs/fix-vibrate
...
Suppress MissingPermission warning for Android vibration
2019-08-27 17:42:32 +02:00
Rémi Verschelde
eb8d181cb2
Android: Sync Google billing library with upstream, unmodified
...
Synced with 7a94c6905a
.
2019-08-27 15:15:37 +02:00
volzhs
8cda898fbb
Suppress MissingPermission warning for Android vibration
...
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.
2019-08-27 22:01:45 +09:00
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 9ecf54e5ce
.
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 eb57657f66
,
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
Rémi Verschelde
04ac6a43a4
Android: Style fixes to manifest and build.gradle
2019-08-27 11:16:55 +02:00
Rémi Verschelde
1afd77e375
Android: Bump gradle version to 5.1.1
...
Matching changes made in #31521 and #31547 but only in the Jetbrains
IDE config.
2019-08-27 10:22:05 +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
fhuya
dea414abc8
Make the meta-data name attribute settable. This will facilitate reuse for ARCore integration.
2019-07-02 11:21:26 -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
Rémi Verschelde
900d90bb61
Git: Explicitly list binary files as such to avoid EOL change
...
text=auto works well in Git 2.10+ but it's broken in previous versions,
which are still used in production on e.g. Ubuntu 16.04 LTS.
Also fix a couple missed text files with CRLF terminators.
.bat files likely require it to be processed properly on Windows,
but core.autocrlf should take care of converting them on the fly
when checking out on Windows.
2019-05-25 10:43:48 +02:00
Rémi Verschelde
e0574e1d98
Fix typos with codespell
...
Using codespell 1.15.0.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
doubleclick
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2019-05-19 13:10:35 +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
Juan Linietsky
cf5881f574
Rename wrong field.
2019-04-24 17:01:20 -03:00
Juan Linietsky
a424d39f76
Remove forgotten strings in configuration files
2019-04-24 16:31:23 -03:00
Juan Linietsky
dd03dcbd5a
Android now (optionally) builds the template when exporting
...
Added new way to create add-ons
Removed old way to create add-ons
2019-04-07 15:46:52 -03: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 fb5a601217
2018-10-29 13:04:36 -03:00
Wojciech Milkowski
3598165c4d
Fix build with Android NDK r18
...
As a bonus there is no need to use undocumented Gradle API any more.
2018-10-08 22:35:18 +02: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
Max Hilbrunner
28ebddd49e
Merge pull request #19799 from kosz78/android-payment-fix
...
Fix possible NullPointerException crash on cancel payment
2018-07-03 18:52:10 +02:00