mirror of https://github.com/status-im/go-waku.git
34de2941c7
* chore: refactor existing code into peer maanger package * feat: move peer connection related code into peer manager * feat: in relay peer connection pruning * feat: add max-connections CLI flag and limit outRelayPeers based on max-connections #621 * tested both in and out relay connection limits Co-authored-by: richΛrd <info@richardramos.me> * Review comment, use context to pause connectivity loop during node shutdown. Co-authored-by: richΛrd <info@richardramos.me> * address review comments --------- Co-authored-by: richΛrd <info@richardramos.me> |
||
---|---|---|
.. | ||
README.md | ||
api.go | ||
api_discovery.go | ||
api_filter.go | ||
api_legacy_filter.go | ||
api_lightpush.go | ||
api_relay.go | ||
api_store.go | ||
config.go | ||
encoding.go | ||
ios.go | ||
response.go | ||
signals.c | ||
signals.go |
README.md
Mobile
Package mobile implements gomobile bindings for go-waku.
Usage
For properly using this package, please refer to Makefile in the root of go-waku
directory.
To manually build library, run following commands:
iOS
gomobile init
gomobile bind -v -target=ios -ldflags="-s -w" github.com/waku-org/go-waku/mobile
This will produce gowaku.framework
file in the current directory, which can be used in iOS project.
Android
export ANDROID_NDK_HOME=/path/to/android/ndk
export ANDROID_HOME=/path/to/android/sdk/
gomobile init
gomobile bind -v -target=android -ldflags="-s -w" github.com/waku-org/go-waku/mobile
This will generate gowaku.aar
file in the current dir.
Notes
See https://github.com/golang/go/wiki/Mobile for more information on gomobile
usage.