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§
Enums§
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.
Runs
adb 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.
Runs
adb 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
andres
. Usesaapt
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
intoAndroidManifest
- 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