go-waku/mobile
Prem Chaitanya Prathi 34de2941c7
Feat/peer manager (#596)
* 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>
2023-08-03 21:51:15 +05:30
..
README.md chore: rename status-im/go-waku to waku-org/go-waku 2022-11-09 16:03:40 -04:00
api.go Feat/peer manager (#596) 2023-08-03 21:51:15 +05:30
api_discovery.go feat(c-bindings): update bootnodes 2023-06-09 09:05:55 -04:00
api_filter.go feat(c-bindings): filterv2 2023-06-26 11:03:01 -04:00
api_legacy_filter.go feat(c-bindings): filterv2 2023-06-26 11:03:01 -04:00
api_lightpush.go chore: add missing comments to functions 2023-07-23 07:01:42 -04:00
api_relay.go feat: safe broadcaster 2023-05-08 08:31:19 -04:00
api_store.go chore: add missing comments to functions 2023-07-23 07:01:42 -04:00
config.go feat(c-bindings): websockets support 2023-07-07 11:06:43 -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 Persistence: Addressing code-climate issues to increase maintainability score (#592) 2023-07-07 07:08:23 +05:30

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.