Rod Hynes 2bab4d853b Record and report server entry source and receipt time 10 tahun lalu
..
psi 2bab4d853b Record and report server entry source and receipt time 10 tahun lalu
README.md 2c81521a85 Add TunneledWebView sample app. Link to this simler sample from AndroidLibrary. Update Psibot sample to use latest Psiphn Library. 10 tahun lalu

README.md

Psiphon Library for Android README

Overview

Psiphon Library for Android enables you to easily embed Psiphon in your Android app. The Psiphon Library for Android is implemented in Go and follows the standard conventions for using a Go library in an Android app.

Status

  • Pre-release

Building From Source

Follow Go Android documentation:

  • gomobile documentation
  • Requires Go 1.5 or later.
  • Build command: gomobile bind -target=android github.com/Psiphon-Labs/psiphon-tunnel-core/AndroidLibrary/psi
    • Record build version info, as described here, by passing a -ldflags argument to gomobile bind.
  • Output: psi.aar

Using

  1. Build psi.aar from source or use the binary release
  2. Add psi.aar to your Android Studio project as described in the gomobile documentation
  3. Example usage in TunneledWebView sample app

Limitations

  • Only supports one concurrent instance of Psiphon.