summaryrefslogtreecommitdiff
path: root/platform/android
AgeCommit message (Collapse)Author
2020-02-05Remove duplicate ERR_PRINT macro.Marcel Admiraal
2020-01-31Fixed LineEdit virtual keyboard inputs on AndroidPouleyKetchoupp
Changed the condition to add a length filter to make it consistent with the documentation (0 means no character limit). Otherwise the default value in LineEdit causes the virtual keyboard to be non-fonctional on Android.
2020-01-27Merge pull request #35632 from ↵Rémi Verschelde
godotengine/revert-32854-fix-wireless-adb-debugging Revert "Fix Android deploy with Remote Debug or Network FS over Wi-Fi"
2020-01-27Revert "Fix Android deploy with Remote Debug or Network FS over Wi-Fi"Rémi Verschelde
2020-01-27Address crash caused by missing dependency.fhuya
2020-01-27Address crash caused by missing dependency.fhuya
2020-01-26Check if can export before exporting; show error message if can't export.Mark Wynn Garcia
2020-01-23Android virtual keyboard respecting LineEdit max length.Bruno Lourenço
2020-01-20Revert "Exposes capture methods to AudioServer + documentation" #30468Rémi Verschelde
Reverts the following commits: - c81ec6f26d40b70283958a4ef3e216fb32cbaf14: "Exposes capture methods to AudioServer, variable renames for consistency, added documentation." - 47c558b98abf842910c780294314326662410cdf: "Expose audio callbacks as signals." - dabaa11b3c451e9b8f2cca7e563bd9ec51edb169: "Fix to make sure the capture buffers are deallocated at shutdown. Silences warnings." Some documentation improvements were kept for pre-existing methods. See rationale for reverting these changes in #30468.
2020-01-19doc: Sync classref with current sourceRémi Verschelde
2020-01-19Fix ClassDB API portability with some android and editor classesIgnacio Etcheverry
- `EditorNavigationMeshGenerator` was being registered as part of the Core API, even after d3f48f88bb84d22b7805ce971ac86cf1953a29fd. We must make sure to set Editor as the current ClassDB API type before creating an instance. - The `VisualScriptEngineSingleton.constant` property has a property hint string that's different between tools and non-tools builds. This commit makes the hint string to no longer be set in `_bind_methods`, and to instead set it in `_validate_property`. This way it's ignored when calculating the API hash. - `JavaClassWrapper` is now registered in ClassDB on all platforms, using a dummy implementation on platforms other than Android. This fixes API portability between Android and other platforms. - Updated `--class-db-json` command to ignore non-virtual methods that start with an underscore (see: 4be87c6016a5893cbde897924e540df4c988cee5).
2020-01-17Android: Improve name of icon export propertiesRémi Verschelde
This seems more readable and still includes the required dimensions.
2020-01-14Add support for Android adaptive icons.Bruno Lourenço
2020-01-13fixes android double tap regressionAlexander Holland
2020-01-10Add support for generating a Oculus Mobile VR apk with hand tracking support.fhuya
2020-01-10Fixes Android FileDialogAlexander Holland
- Go up was not working, simplify was used one time too much - Added GestureHandler - Added doubleTap to recognize open dir - Fixed scroll where sometimes the scroll jumped between start and end when pointer was outside or on the edge of the scroll area
2020-01-09Fix Android exporter manifest creation.Bruno Lourenço
2020-01-07Export: Improve usability of command line interfaceRémi Verschelde
I'm barely scratching the surface of the changes needed to make the --export command line interface easy to use, but this should already improve things somewhat. - Streamline `can_export()` templates check in all platforms, checking first for the presence of official templates, then of any defined custom template, and reporting on the absence of any. Shouldn't change the actual return value much which is still true if either release or debug is usable - we might want to change that eventually and better validate against the requested target. - Fix discrepancy between platforms using `custom_package/debug` and `custom_template/debug` (resp. `release`). All now use `custom_template`, which will break compatibility for `export_presets.cfg` with earlier projects (but is easy to fix). - Use `can_export()` when attempting a command line export and report the same errors that would be shown in the editor. - Improve error reporting after a failed export attempt, handling missing template and invalid path more gracefully. - Cleanup of unused stuff in EditorNode around the export workflow. - Improve --export documentation in --help a bit. Fixes #16949 (at least many of the misunderstandings listed there). Fixes #18470.
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-30Replace the android.defaultConfig.applicationId in build.gradle with the ↵fhuya
package/unique_name.
2019-12-24Cleans up headers included in editor_node.hHaoyu Qiu
2019-12-22i18n: Sync translations with Weblate + update templateRémi Verschelde
Also fix a few stray clang-format formatting errors that passed through CI unnoticed.
2019-12-17Fix crash on Android with no manifest permissions.Fabio Alessandrelli
API allows for null array of permissions. It is now normalized with an empty array.
2019-12-14Add Android NetSocket implementation.Fabio Alessandrelli
Automatically acquire and release multicast lock when needed.
2019-12-14Add GodotNetUtils Java class for Android.Fabio Alessandrelli
Provides access to a MulticastLock. As specified by the Android API, broadcast/multicast packets may be filtered on some phones unless the application explicitly acquires a "MulticastLock".
2019-12-01iOS modular build and export implementation.bruvzg
2019-11-28Merge pull request #32854 from cooperra/fix-wireless-adb-debuggingRémi Verschelde
Fix Android deploy with Remote Debug or Network FS over Wi-Fi
2019-11-22Style: Add missing copyright headersRémi Verschelde
2019-11-11Revert "Android : implement InputEventMagnifyGesture and InputEventPanGesture"Rémi Verschelde
This reverts commit 9cc66495cfb6393102ce5ad4e82f2ccb716b9b33. This caused regressions with the handling of screen drag events. Fixes #33428. Fixes #33459. Fixes #33470.
2019-11-02Android : implement InputEventMagnifyGesture and InputEventPanGestureJérémy Zurcher
sets threshold constants PAN_GESTURE_MIN_DELTA and MAGNIFY_GESTURE_MIN_FACTOR
2019-10-23Improve EditorExportPlatform interface.Fabio Alessandrelli
Convert all get_device* methods to get_option* and normalize their usage as icon, label, tooltip.
2019-10-22Add request permission automatically at androidCagdas
2019-10-22Merge pull request #32858 from m4gr3d/expand_singleton_base_apiRémi Verschelde
Add `View SingletonBase#onMainCreateView(Activity activity)` api
2019-10-18Add `View onMainCreateView(Activity activity)` api to the ↵Fredia Huya-Kouadio
`Godot.SingletonBase` class. The new api allows plugins to define and provide their views for inclusion in the Godot Android view hierarchy.
2019-10-15Add connection information and serial number to device descriptionRobbie Cooper
The description appears when hovering over the one-click-deploy button (top-right). This information helps the user distinguish between their devices if multiple are connected or if the same device is connected by both usb and tcpip (two entries in the list for the same device).
2019-10-15Detect adb connection type and debug over Wi-Fi if neededRobbie Cooper
Avoid using adb reverse if deploying with adb tcpip. This still can fail if the user is attempting to debug over usb and has connected their device over BOTH usb and tcpip. I'm not sure how we would detect that problem in advance though.
2019-10-12Optimize images losslessly using `oxipng -o6 --strip all --zopfli`Hugo Locurcio
2019-10-11Cleanup fix for the meta-data parsing crashing bug.fhuya
2019-10-11Android: Work around crash in _fix_manifestRémi Verschelde
Works around #32553, not fixing the underlying cause but preventing the crash.
2019-10-04Adds Pen support for AndroidAlexander Holland
2019-10-03Merge pull request #32514 from akien-mga/android-one-click-dont-uninstallRémi Verschelde
Android one-click deploy: Don't clear by default
2019-10-03Android: Fix manifest parsing and APK names in export codeRémi Verschelde
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.
2019-10-03Android one-click deploy: Don't clear by defaultRémi Verschelde
This makes iteration faster as you don't need to monitor your phone to allow the installation each time. Fixes #32183.
2019-09-25Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde
Added some obvious errors explanations
2019-09-25Added some obvious errors explanationsqarmin
2019-09-24Merge pull request #32269 from m4gr3d/improve_build_timeRémi Verschelde
Update the Godot gradle build tasks to provide additional flexibility
2019-09-24Updates the Godot gradle tasks to enable manual runs of the `scons` command.fhuya
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 ```
2019-09-24Fix copyright headers and style issuesRémi Verschelde
2019-09-23Merge pull request #32250 from lawnjelly/android-keyboard2Rémi Verschelde
Fix Android keyboard crash with left cursor
2019-09-23Fix Android keyboard crash with left cursorlawnjelly
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).