This is a simple Makepad app that demonstrates various Robius platform abstraction crates:
On native desktop, simply run:
cargo runImportant
Certain platform APIs/services require a fully codesigned application bundle on certain platforms.
For example, location services do not work on macOS unless the application has been bundled and packaged. See how we do this for Robrix, a similar Makepad + Robius app.
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 dev cargo-makepadcargo makepad android install-toolchainYou 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 --releaseNote 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.