go-waku/mobile
Richard Ramos 8d42febe18
fix: make 0x prefix optional (#306)
2022-09-14 15:19:04 -04:00
..
README.md feat: kotlin android example (#226) 2022-04-12 08:12:14 -04:00
api.go fix: make 0x prefix optional (#306) 2022-09-14 15:19:04 -04:00
api_filter.go fix: c bindings docs 2022-08-18 15:27:22 -04:00
api_lightpush.go feat: use generic flags and convert values to specific data types 2022-08-15 15:22:13 -04:00
api_relay.go feat: add filter bindings and improve docs (#284) 2022-08-09 09:48:23 -04:00
api_store.go fix: store content filters 2022-08-09 14:26:57 -04:00
encoding.go fix: make 0x prefix optional (#306) 2022-09-14 15:19:04 -04:00
ios.go feat: kotlin android example (#226) 2022-04-12 08:12:14 -04:00
response.go feat: add filter bindings and improve docs (#284) 2022-08-09 09:48:23 -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/status-im/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/status-im/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.