tree: faf7e8f848a4e213db867a7c531fd8562728395f [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.

Running your Vanadium Go Code in 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.

  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.