skywire
skywire copied to clipboard
Skywire Android port
Did you run make format && make check?
Yes
Fixes #138
Changes:
- Added a separate VPN client for mobile devices
- Added
skywiremoblibrary to expose Skywire network API to mobile devices - Added example Android Skywire VPN application
- Visor's startup is now fully interruptable
How to test this PR:
- Install gomobile from https://github.com/golang/mobile
- Install Android SDK and NDK. Put its locations to corresponding env vars: ANDROID_HOME for SDK and ANDROID_NDK_HOME for NDK
- Compile the
skywiremoblibrary. To do this one should put the skywire repository according to theGOPATH, i.e.:$GOPATH/src/github.com/skycoin/skywire. Then you need tocdto the directory right outside of theGOPATH. So, having defaultGOPATHat$HOME/goyou need tocd $HOME. From there you may build the library like this:
$ gomobile bind -o ./go/src/github.com/skycoin/skywire/cmd/skywirevisormobile/android/app/skywire.aar -target=android ./go/src/github.com/skycoin/skywire/pkg/skywiremob/
Probably it may be successfully built the other way, but this is the only way I got it to work. The above command will put the skywire.aar library right to where the Android project is looking for it.
4. Build the apk. May be done from the terminal or Android studio
5. Install and run apk
6. Put correct remote PK of visor running VPN server and passcode for that server and press Start. Once VPN is ready you will see the toast message
7. Check your IP address
UPD: my fork just got out of sync. had to delete the repo itself, so recreated the PR form new fork