This repository serves an example Android project that uses Rust base library via JNI.
Use this repository to understand how to stucture Android project that is bridged with Rust code.
- Install https://github.com/casey/just
- Run
just environment
code inRustAndroidBridgeApp/android/
directory - In order to build
.so
library artifacts runjust build
inRustAndroidBridgeApp/rust/
directory. - Install app.
Based on this project you can plan your own usage of Rust lanuage in Android project. Make sure to get familiar with Rust via official documentation: https://doc.rust-lang.org/book https://doc.rust-lang.org/reference
If you want to learn Rust and go deeper with it's usage, take a look at this course from Google where you can find examples for AIDL servers and AOSP features written in Rust. https://google.github.io/comprehensive-rust/
Happy Learning! ๐ฆ