Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 530 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 530 Bytes

rust-flutter-jni-lib

1. Buildez le projet rust

cd hello-hack-congo
cargo ndk -t armeabi-v7a -o ./jniLibs build 
cargo ndk -t arm64-v8a -o ./jniLibs build

2. Copiez le fichier .so dans le dossier android/app/src/main/jniLibs

cp -r ./jniLibs/* ../hello_hack_congo/android/app/src/main/jniLibs

3. Buildez le projet flutter

cd ../hello_hack_congo
flutter build apk

4. Installez l'apk sur votre téléphone

flutter install

5. Lancez l'application

flutter run