Module android

Source

Modules§

aab
add_libs_into_aapt2
add_libs_into_apk
align_apk
apk
gen_aab_from_modules
gen_gradle_project
gen_minimal_unsigned_aab
gen_unaligned_apk
gen_zip_modules
gradle_init
install_apk
sign_apk

Structs§

AndroidGradlePlugins
GradleDependencyProject
ImageGeneration

Enums§

MipmapDpi

Functions§

add_clinker_args
Add linker args for quad engine using NDK versions <=22
add_lib_aapt2
Copy lib into out_dir then add this lib into apk file
add_libs_into_aapt2
Adds given lib and all reletad libs into APK
add_libs_into_apk
Adds given lib and all reletad libs into APK. Uses readelf, aapt tools
align_apk
Aligns APK on 4-byte memory boundary. Uses zipalign build tools
attach_logger_only_app
Attach logger to device with filter that filters only App Stdout or Stderr. Runsadb logcat --pid=adb shell pidof -s com.crossbow.game`` command
attach_logger_only_rust
Attach logger to device with filter that passes only Rust Stdout or Stderr. Runsadb logcat RustStdoutStderr:D '*:S' command
cargo_env_target_cfg
Helper function that allows to return environment argument with specified tool
detect_abi
Returns current android target. Runs adb shell getprop ro.product.cpu.abi command
extract_archive
Allows to extract files from generated APK to use that to generate .aab
find_library_path
Resolves native library using search paths
gen_aab_from_modules
Allows to generate aab from archive with files extracted from apk or set of archives to specified storage
gen_gradle_project
gen_key
Generates keystore with default configuration. You can manage configuration with options
gen_minimal_unsigned_aab
Generates minimal unsigned aab
gen_unaligned_apk
Generates unaligned APK with given manifest_path, assets and res. Uses aapt build tool
gen_zip_modules
Allows to generate archive from files extracted from APK
get_libs_in_dir
Return all files in directory with .so ending
gradle_init
Find gradle executable file in and initialize it
install_apk
Installs given APK in emulator or connected device. Runs adb install -r ... command
linker_args
Replace libgcc file with unwind. libgcc was removed in ndk versions >=23. This is workaround for gcc not found issue.
make_path
Returns path to NDK provided make
new_ndk_quad_args
Replace cmd with new arguments. For more information see the [Target Selection]
read_android_manifest
Read file and deserializes AndroidManifest.xml into AndroidManifest
readelf_list_shared_libs
List all linked shared libraries
recursively_define_needed_libs
Update needed_libs hashset with given lib and all related libs. Note: libc++ is not a system lib. If you use libc++_shared.so, it must be included in your APK. https://developer.android.com/ndk/guides/cpp-support
remove
Helper function to delete files
rust_compile
save_android_manifest
Saves given manifest in new AndroidManifest.xml file
search_dylibs
Search dylibs in given deps_dir
set_cmake_vars
Sets needed environment variables
sign_apk
Signs APK with given key. Uses apksigner build tool
start_app
Installing APK or AAB on emulator or connected device. Runs adb shell am start ... command
write_cmake_toolchain
Write a CMake toolchain which will remove references to the rustc build target before including the NDK provided toolchain. The NDK provided android toolchain will set the target appropriately Returns the path to the generated toolchain file
zip_dirs_to_write
Moving AndroidManifest.xml file into directory to write files to archive
zip_write
Writing files into archive