The previous packaging format for Godot Android plugins consisted of the plugin's `gdap` config file accompanied by binaries defined in the `gdap` file. This format is now deprecated (starting with Godot 4.2), and instead Godot Android plugins are now packaged as `EditorExportPlugin` plugins. The `EditorExportPlugin` class has been updated with the following methods to provide the necessary set of functionality: - `_supports_platform`: returns true if the plugin supports the given platform - `_get_android_dependencies`: retrieve the set of android dependencies (e.g: `org.godot.example:my-plugin:0.0.0`) provided by the plugin - `_get_android_dependencies_maven_repos`: retrieve the urls of the maven repos for the provided android dependencies - `_get_android_libraries`: retrieve the local paths of the android libraries (AAR files) provided by the plugin - `_get_android_manifest_activity_element_contents`: update the contents of the `<activity>` element in the generated Android manifest - `_get_android_manifest_application_element_contents`: update the contents of the `<application>` element in the generated Android manifest - `_get_android_manifest_element_contents`: update the contents of the `<manifest>` element in the generated Android manifest |
||
|---|---|---|
| .. | ||
| api | ||
| doc_classes | ||
| export | ||
| java | ||
| plugin | ||
| android_input_handler.cpp | ||
| android_input_handler.h | ||
| android_keys_utils.cpp | ||
| android_keys_utils.h | ||
| audio_driver_opensl.cpp | ||
| audio_driver_opensl.h | ||
| detect.py | ||
| dir_access_jandroid.cpp | ||
| dir_access_jandroid.h | ||
| display_server_android.cpp | ||
| display_server_android.h | ||
| file_access_android.cpp | ||
| file_access_android.h | ||
| file_access_filesystem_jandroid.cpp | ||
| file_access_filesystem_jandroid.h | ||
| java_class_wrapper.cpp | ||
| java_godot_io_wrapper.cpp | ||
| java_godot_io_wrapper.h | ||
| java_godot_lib_jni.cpp | ||
| java_godot_lib_jni.h | ||
| java_godot_view_wrapper.cpp | ||
| java_godot_view_wrapper.h | ||
| java_godot_wrapper.cpp | ||
| java_godot_wrapper.h | ||
| jni_utils.cpp | ||
| jni_utils.h | ||
| net_socket_android.cpp | ||
| net_socket_android.h | ||
| os_android.cpp | ||
| os_android.h | ||
| platform_config.h | ||
| README.md | ||
| SCsub | ||
| string_android.h | ||
| thread_jandroid.cpp | ||
| thread_jandroid.h | ||
| tts_android.cpp | ||
| tts_android.h | ||
| vulkan_context_android.cpp | ||
| vulkan_context_android.h | ||
Android platform port
This folder contains the Java and C++ (JNI) code for the Android platform port, using Gradle as a build system.
Documentation
- Compiling for Android
- Instructions on building this platform port from source.
- Exporting for Android
- Instructions on using the compiled export templates to export a project.
Artwork license
logo.png and run_icon.png are licensed under
Creative Commons Attribution 3.0 Unported
per the Android logo usage guidelines:
The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.