go-waku/mobile
RichΛrd a1edf45fad
fix: protocolID must be a string in the mobile API (#466)
2023-02-20 17:50:36 -04:00
..
README.md chore: rename status-im/go-waku to waku-org/go-waku 2022-11-09 16:03:40 -04:00
api.go fix: protocolID must be a string in the mobile API (#466) 2023-02-20 17:50:36 -04:00
api_discovery.go fix(c-bindings): check if ENR is nil 2023-02-20 10:42:35 -04:00
api_filter.go refactor(c-bindings): store waku state in single variable 2023-02-17 11:05:28 -04:00
api_lightpush.go refactor(c-bindings): store waku state in single variable 2023-02-17 11:05:28 -04:00
api_relay.go fix(c-bindings): relayTopics should trigger signal handler 2023-02-17 13:32:37 -04:00
api_store.go refactor(c-bindings): store waku state in single variable 2023-02-17 11:05:28 -04:00
encoding.go chore: switch to Google's Protobuf library 2023-02-16 11:37:59 -04:00
ios.go feat: kotlin android example (#226) 2022-04-12 08:12:14 -04:00
response.go fix(library): fix inconsistencies in comments/code 2022-10-10 10:04:07 -04:00
signals.c feat: kotlin android example (#226) 2022-04-12 08:12:14 -04:00
signals.go feat: kotlin android example (#226) 2022-04-12 08:12:14 -04:00

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.