Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 516 Bytes

build-android-aar.md

File metadata and controls

8 lines (7 loc) · 516 Bytes

Make sure you have installed Go before proceeding.

  • Get lnd: go get -d github.com/lightningnetwork/lnd
  • cd src/github.com/lightningnetwork/lnd/
  • Get and init gomobile: go get golang.org/x/tools/cmd/goimports, go get golang.org/x/tools/go/packages, go get golang.org/x/mobile/cmd/gomobile and gomobile init
  • Add router prefix by editing mobile/gen_bindings.sh on line 47
  • Compile with make android
  • Put mobile/build/android/Lndmobile.aar file inside android/lndmobile