Build the public Android fixture¶
Use external NDK r29, CMake 3.25+ and the arm64 Rust target. SDKs remain outside source control and the build script downloads nothing:
rustup target add aarch64-linux-android
python3 scripts/build-mobile.py android --ndk /path/to/android-ndk-r29
# Also package and verify an installable development APK:
python3 scripts/build-mobile.py android --ndk /path/to/android-ndk-r29 \
--android-sdk /path/to/android-sdk --java-home /path/to/jdk17
APK packaging defaults to platform 36 and build-tools 36.0.0 in the usual SDK layout.
The result is target/mobile/android/ravet-gain-debug.apk; native-only builds
produce target/mobile/android/libravet_gain_mobile.so. The build checks Java
warnings, generates DEX/resources, aligns uncompressed native libraries for
16 KiB pages and verifies a local development signature. The development keystore
stays under ignored target/mobile/; this is not a store/distribution signing
configuration. An optional Gradle 8.13/AGP 8.13.0 project is also provided; pass
-PravetGainLibrary=/absolute/path/to/arm64/libravet_gain_native.a and configure
the external Android SDK/NDK. Optional Gradle properties ravetMinApi,
ravetTargetSdk and ravetCompileSdk select the same deployment choices and obey
the same minimums. The direct script is the locally exercised path.