build-android
Build Android Kotlin bindings, moq library and final library AAR file
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-28
- Stars
- ★ 32
- Forks
- 6
01 前言 Front Matter
- name
- build-android
- description
- Build Android Kotlin bindings, moq library and final library AAR file
03 SKILL.md 正文
Build Android
Run the following steps sequentially:
1. Build JNI shared library + Kotlin bindings (Rust -> UniFFI -> .so + Kotlin)
mise run android:ffi
This compiles Rust via cargo ndk for arm64-v8a, runs uniffi-bindgen to generate Kotlin bindings, and copies the .so into android/moqkit/moqkit/src/main/jniLibs/.
2. Assemble AAR
mise run android:build
3. Verify
- Confirm
android/moqkit/moqkit/src/main/jniLibs/arm64-v8a/moq_ffi.soexists - Confirm Kotlin bindings were generated under
android/moqkit/moqkit/src/main/java/uniffi/moq/ - Confirm the AAR was built under
android/moqkit/moqkit/build/outputs/aar/ - Check Gradle build succeeded with no errors
Full build shortcut
mise run android:build
Runs both steps above.
04 同仓库更多 Skills
moq-kit
Software Mansion's moq-kit — native Swift (iOS) and Kotlin (Android) SDKs for Media over QUIC (moq-lite) live streaming: sub-second-latency playback, camera/microphone/screen publishing, and realtime data tracks over a MoQ relay. MUST USE before writing, reviewing, or debugging ANY code that imports MoQKit (Swift) or com.swmansion.moqkit (Kotlin); for React Native apps use the react-native-moq skill instead. Trigger on: 'moq-kit', 'MoQKit', 'Media over QUIC', 'moq-lite', 'MoQ relay', 'moq-ffi', 'BroadcastSubscription', 'DataTrackEmitter', 'CameraCapture', 'MicrophoneCapture', 'MultiCameraCapture', 'ScreenCapture', 'TrackSubscription', 'AudioDataStream', 'MoQReplayKitBroadcastSampleHandler', or a Session/Player/Publisher/Catalog from moq-kit.
run-ios
Build and run the iOS MoQ Demo on a connected device
run-android
Build and run the Android subscriber demo on a connected device
commit
Analyzes the staged/unstaged git files and commits them
build-rust
Build Rust moq-ffi for iOS/Android targets
build-ios
Build iOS Swift package