You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fire the buildAndroidLib gradle task in the calculator-android directory
Publish it to your local Maven (the library will appear at ~/.m2/repository/org/rustylibs/calculator-android/0.1.0/)
cd calculator-android
./gradlew buildAndroidLib
./gradlew publishToMavenLocal
You should then be able to use the library by adding it like any other dependency in an Android project, given you add mavenLocal() to your list of repositories to fetch dependencies from:
This plugin lives in the calculator-android/plugins/ directory, and collects the tasks of building the native binaries, building the glue code file, and putting them all in the correct places in the library to prepare for packaging. The plugin exposes the buildAndroidLib task to the Gradle build tool.
Reducing the size of the final binaries
A special cargo profile is added with many flags turned on/off which allows to significantly reduce binary size.
About
A starter template for creating uniffi-rs language bindings libraries.