Skip to content

Files

Latest commit

00d5e35 · Apr 25, 2023

History

History

sdk-android

README.md

FeatureProbe Android SDK

How to use this SDK

See Android SDK Doc for detail. 安卓

How to build

  1. make sure NDK version 21.3.6528147 is installed, and JNA jna.jar in $CLASSPATH

  2. install uniffi codegen tool

cargo install --version 0.21 uniffi_bindgen

  1. install rust android target
rustup target add armv7-linux-androideabi   # for arm
rustup target add aarch64-apple-darwin      # for darwin arm64 (if you have a M1 MacOS)
rustup target add i686-linux-android        # for x86
rustup target add x86_64-linux-android
rustup target add aarch64-linux-android
  1. build android lib

./gradlew build