Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Skywire Android port #447

Closed
wants to merge 69 commits into from
Closed

[WIP] Skywire Android port #447

wants to merge 69 commits into from

Conversation

Darkren
Copy link
Contributor

@Darkren Darkren commented Jul 23, 2020

Did you run make format && make check?
Yes

Fixes #138

Changes:

  • Added a separate VPN client for mobile devices
  • Added skywiremob library 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:

  1. Install gomobile from https://github.com/golang/mobile
  2. Install Android SDK and NDK. Put its locations to corresponding env vars: ANDROID_HOME for SDK and ANDROID_NDK_HOME for NDK
  3. Compile the skywiremob library. To do this one should put the skywire repository according to the GOPATH, i.e.: $GOPATH/src/github.com/skycoin/skywire. Then you need to cd to the directory right outside of the GOPATH. So, having default GOPATH at $HOME/go you need to cd $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

@Darkren Darkren changed the title Skywire Android port [WIP] Skywire Android port Aug 20, 2020
@Darkren Darkren changed the base branch from develop to feature/v0.4.0 August 28, 2020 09:17
@jdknives jdknives closed this Oct 22, 2020
@jdknives jdknives deleted the branch skycoin:develop October 22, 2020 10:52
@jdknives jdknives reopened this Oct 22, 2020
@nkryuchkov nkryuchkov changed the base branch from feature/v0.4.0 to develop October 22, 2020 11:09
@Darkren Darkren closed this Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants