go-waku/library/mobile
Prem Chaitanya Prathi 28c0cd5d8e
fix: content topic validation as per rfc 51 (#874)
* fix: content topic validation as per rfc 51

* chore: update library API's and examples
2023-11-08 18:24:24 +05:30
..
README.md refactor: c-bindings 2023-08-10 09:30:38 -04:00
api.go fix: content topic validation as per rfc 51 (#874) 2023-11-08 18:24:24 +05:30
api_discovery.go refactor: c-bindings 2023-08-10 09:30:38 -04:00
api_encoding.go refactor: remove enc_publish functions and create separate encoding functions instead 2023-08-11 11:47:58 -04:00
api_filter.go refactor: c-bindings 2023-08-10 09:30:38 -04:00
api_legacy_filter.go refactor: c-bindings 2023-08-10 09:30:38 -04:00
api_lightpush.go refactor: remove enc_publish functions and create separate encoding functions instead 2023-08-11 11:47:58 -04:00
api_relay.go refactor: remove enc_publish functions and create separate encoding functions instead 2023-08-11 11:47:58 -04:00
api_store.go refactor: c-bindings 2023-08-10 09:30:38 -04:00
response.go refactor: c-bindings 2023-08-10 09:30:38 -04:00
signals.go fix: SignalHandler not exported in mobile package (#793) 2023-10-07 16:28:07 -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.