mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-15 08:14:33 +00:00
6ece3c483b
- Shards in same cluster are advertised on ENR - Store().Resume() was moved to app layer - NoDefaultWakuTopic() was removed since it's the app that must determine whether it subscribes to the default waku topic - Removed `Publish` from WakuNode (not really used and easy to implement in app layer if needed)
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.