summaryrefslogtreecommitdiffstats
path: root/platform/android
Commit message (Collapse)AuthorAgeFilesLines
* Improve EditorExportPlatform interface.Fabio Alessandrelli2019-10-231-8/+19
| | | | | Convert all get_device* methods to get_option* and normalize their usage as icon, label, tooltip.
* Add request permission automatically at androidCagdas2019-10-227-29/+215
|
* Merge pull request #32858 from m4gr3d/expand_singleton_base_apiRémi Verschelde2019-10-221-0/+34
|\ | | | | Add `View SingletonBase#onMainCreateView(Activity activity)` api
| * Add `View onMainCreateView(Activity activity)` api to the ↵Fredia Huya-Kouadio2019-10-181-0/+34
| | | | | | | | | | | | `Godot.SingletonBase` class. The new api allows plugins to define and provide their views for inclusion in the Godot Android view hierarchy.
* | Optimize images losslessly using `oxipng -o6 --strip all --zopfli`Hugo Locurcio2019-10-124-0/+0
|/
* Cleanup fix for the meta-data parsing crashing bug.fhuya2019-10-111-12/+4
|
* Android: Work around crash in _fix_manifestRémi Verschelde2019-10-111-2/+4
| | | | | Works around #32553, not fixing the underlying cause but preventing the crash.
* Adds Pen support for AndroidAlexander Holland2019-10-046-1/+44
|
* Merge pull request #32514 from akien-mga/android-one-click-dont-uninstallRémi Verschelde2019-10-031-1/+1
|\ | | | | Android one-click deploy: Don't clear by default
| * Android one-click deploy: Don't clear by defaultRémi Verschelde2019-10-031-1/+1
| | | | | | | | | | | | | | This makes iteration faster as you don't need to monitor your phone to allow the installation each time. Fixes #32183.
* | Android: Fix manifest parsing and APK names in export codeRémi Verschelde2019-10-032-9/+6
|/ | | | | | | | | | | A better fix would be to make Godot's export code properly parse the tag over multiple lines (and maybe even use XMLParser instead of doing it ad-hoc?). As for the APK names, we could alternatively pick the first .apk found in the `debug` and `release` folders without expecting a specific name. Fixes #32414.
* Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde2019-09-252-10/+10
|\ | | | | Added some obvious errors explanations
| * Added some obvious errors explanationsqarmin2019-09-252-10/+10
| |
* | Merge pull request #32269 from m4gr3d/improve_build_timeRémi Verschelde2019-09-242-34/+82
|\ \ | | | | | | Update the Godot gradle build tasks to provide additional flexibility
| * | Updates the Godot gradle tasks to enable manual runs of the `scons` command.fhuya2019-09-242-34/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example: To generate for the `release` build target and for the `armv7`, `arm64v8` and `x86` architectures, run the commands: ``` cd godot scons -j4 platform=android target=release android_arch=armv7 scons -j4 platform=android target=release android_arch=arm64v8 scons -j4 platform=android target=release android_arch=x86 cd platform/android/java ./gradlew generateGodotTemplates ``` Notes: - The generated build templates will be located in the `godot/bin` directory (i.e: `android_debug.apk`, `android_release.apk`, `android_source.zip`). - The gradle command will only generate templates for the target(s) with available native shared libraries. For example, running the commands above will only generate the `android_release.apk` and `android_source.zip` files. To delete the generated artifacts, the following commands can be used: ``` cd platform/android/java ./gradlew cleanGodotTemplates ```
* | | Fix copyright headers and style issuesRémi Verschelde2019-09-241-0/+30
| | |
* | | Merge pull request #32250 from lawnjelly/android-keyboard2Rémi Verschelde2019-09-231-4/+2
|\ \ \ | | | | | | | | Fix Android keyboard crash with left cursor
| * | | Fix Android keyboard crash with left cursorlawnjelly2019-09-231-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #32168. Previously we were returning all key up and key down messages as unhandled to the OS. This was resulting in crashes on certain keypresses (left cursor), for undetermined reason. This PR defaults all key up and keydown messages to be returned as handled by Godot, except those explicitly coded as exceptions (currently volume keys only).
* | | | Merge pull request #32055 from qarmin/some_code_fixesRémi Verschelde2019-09-231-3/+3
|\ \ \ \ | | | | | | | | | | Changed some code found by Clang Tidy and Coverity
| * | | | Changed some code found by Clang Tidy and Coverityqarmin2019-09-221-3/+3
| | |/ / | |/| |
* / | | Fix starting intent problemCagdas2019-09-221-1/+1
|/ / /
* | | Merge pull request #32064 from m4gr3d/propagate_gl_surface_eventsRémi Verschelde2019-09-206-15/+83
|\ \ \ | | | | | | | | Notify for app pause and resume events on Android
| * | | Add new events and accompanying logic to notify when the app is paused and ↵fhuya2019-09-196-15/+83
| |/ / | | | | | | | | | resumed on Android devices.
* / / Distinguish editor-originating messages in the editor logHugo Locurcio2019-09-201-4/+4
|/ / | | | | | | | | | | | | This fades out messages originating from the editor to make messages printed by the project stand out more. This also tweaks wording in some editor messages for consistency.
* / Split the Android platform java logic into an Android library module (`lib`) ↵fhuya2019-09-04136-187/+378
|/ | | | | | 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').
* Android: Improve dialogs about custom build templateRémi Verschelde2019-08-291-6/+3
| | | | | | | The language didn't make it clear that it's installing a *source* template to the project folder, for later use when compiling custom APKs. Fixes #28736.
* SCons: Generate android_source.zip during buildRémi Verschelde2019-08-291-0/+22
| | | | | This is now needed after #27781, as this android_source.zip template is used for custom Android builds from the editor.
* Merge pull request #31709 from akien-mga/android-fix-thirdpartyRémi Verschelde2019-08-2742-5026/+5458
|\ | | | | Android: Fix another regression with Secure.ANDROID_ID, and fix formatting and documentation of thirdparty code
| * Android: Sync Google billing library with upstream, unmodifiedRémi Verschelde2019-08-272-32/+177
| | | | | | | | Synced with https://github.com/googlesamples/android-play-billing/commit/7a94c6905a9c125518354c216b5c3094fde47ce1.
| * Android: Reapply custom changes to Google expansion.downloader libRémi Verschelde2019-08-279-48/+417
| | | | | | | | | | 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-2717-3259/+3338
| | | | | | | | Synced with https://github.com/google/play-apk-expansion/commit/9ecf54e5ce7c5a74a2eeedcec4d940ea52b16f0e.
| * Android: Reapply changes to Google licensing lib from #24145Rémi Verschelde2019-08-274-33/+61
| | | | | | | | But document them better this time.
| * Android: Resync Google licensing lib with upstream, unmodifiedRémi Verschelde2019-08-2721-1700/+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-273-17/+15
| | | | | | | | Regression from #24145, which was missed in #28146.
* | Merge pull request #31713 from volzhs/fix-vibrateRémi Verschelde2019-08-271-1/+9
|\ \ | | | | | | Suppress MissingPermission warning for Android vibration
| * | 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.
* / Android: Style fixes to manifest and build.gradleRémi Verschelde2019-08-274-122/+132
|/
* Android: Bump gradle version to 5.1.1Rémi Verschelde2019-08-272-2/+2
| | | | | Matching changes made in #31521 and #31547 but only in the Jetbrains IDE config.
* Update the fallback input mapping for the Oculus mobile devices.fhuya2019-08-268-48/+195
|
* Merge pull request #31437 from volzhs/vibrate-mobileRémi Verschelde2019-08-215-0/+33
|\ | | | | Support vibration for Android and iOS
| * Support vibration for Android and iOSvolzhs2019-08-215-0/+33
| |
* | Shut down Godot processes on app exit.fhuya2019-08-201-0/+4
|/
* Merge pull request #31266 from ↵Rémi Verschelde2019-08-141-4/+0
|\ | | | | | | | | IAmActuallyCthulhu/pr/remove-redundant-author-comments Remove redundant author doc comments
| * Remove redundant author doc commentsIAmActuallyCthulhu2019-08-121-4/+0
| |
* | Export: Remove temp files from cache after exportRémi Verschelde2019-08-121-36/+54
|/ | | | | | | | | So far we left most temporary files lying around, so this attempts to fix that. I added a helper method to DirAccess to factor out the boilerplate of creating a DirAccess, checking if the file exists, remove it or print an error on failure.
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in "platform", ↵Robin Hübner2019-08-094-36/+11
| | | | "modules/gdnative", "modules/gdscript" directories.
* Add feature tag for hmd devices based on DOFCameron Reikes2019-08-071-0/+133
| | | | - Necessary according to https://developers.google.com/vr/develop/android/3dof-to-6dof
* Merge pull request #30468 from SaracenOne/expose_audio_captureRémi Verschelde2019-08-071-3/+3
|\ | | | | Exposes capture methods to AudioServer + documentation
| * Exposes capture methods to AudioServer, variable renames for consistency,Saracen2019-07-151-3/+3
| | | | | | | | added documentation.
* | Android: Remove unusable android_stl=no optionRémi Verschelde2019-07-301-5/+6
| | | | | | | | | | | | | | | | | | | | | | As of 3.1 and later, we have too many thirdparty C++ dependencies and some internal uses of `new` and `delete` too for it to make sense to build without the STL on Android. The option has been broken since 3.0, and the "System STL" that we relied on for basic support of `new` and `delete` is likely to be dropped from the NDK: https://android.googlesource.com/platform/ndk/+/ndk-release-r20/docs/BuildSystemMaintainers.md#System-STL