The VAnGo (Vanadium-Android-Go) android app allows running arbitrary Vanadium Go code in the android application.
Modify the [vangoFuncs] map to include your custom Go function, keyed by a unique string key.
Build the Vanadium android-lib library and publish it to maven local.
cd $JIRI_ROOT/release/java ./gradlew :lib:clean :lib:publishToMavenLocal ./gradlew :android-lib:clean :android-lib:publishToMavenLocal
You may need to run jiri goext distclean
for your changes to take effect.
In Android Studio, where you have opened the VAnGo application, run “Build >> Clean project” to remove any locally cached versions of the Vanadium android-lib.
In Android Studio, run the application. It will display a text field. Inputting your unique string key into the field and hitting “Run” will run your custom Go code.
madb
]Set the ANDROID_HOME
environment variable
madb start madb exec logcat :S vlog:
[vangoFuncs]: https://vanadium.googlesource.com/release.go.x.jni/+/master/impl/google/services/vango/funcs.go [`madb`]: https://github.com/vanadium/madb