tree: 4173c63b923b2743b355e2ad6ed2f190626a7a10 [path history] [tgz]
  1. app/
  2. gradle/
  3. .gitignore
  4. build.gradle
  5. gradle.properties
  6. gradlew
  7. gradlew.bat
  8. README.md
  9. settings.gradle
projects/vango/README.md

VAnGo

The VAnGo (Vanadium-Android-Go) android app allows running arbitrary Vanadium Go code in the android application.

Building Vanadium Go Code for Android

  1. Modify the [vangoFuncs] map to include your custom Go function, keyed by a unique string key.

  2. 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.

Running using Android Studio

  1. 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.

  2. 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.

Running using [madb]

  1. 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