This is a simple Makepad app that demonstrates various Robius platform abstraction crates:
On native desktop, simply run:
cargo run
To build for Android, you need to first install the cargo makepad
build tool,
and then use it to installe the Android SDK + NDK.
cargo install --force --locked --git https://github.com/makepad/makepad.git --branch rik cargo-makepad
cargo makepad android install-toolchain --full-ndk
You only need to run the above commands once on your build machine.
Then, to build and run this robius-demo-simple
app, do the following:
cargo makepad android run -p robius-demo-simple --release
Note that the above android run
command will look for a running Android emulator or a physically-connected Android device.
Once the demo app is running, you should see a simple view with several labeled buttons. Click whichever buttons that corresponds to the functionality you wish to test out.