2a4382369a
This PR does a few things: 1) Add a call GetContactCode to check whether we have a bundle for a given user. 2) Add a DH flag to the API (non-breaking change), for those messages that we want to target all devices (contact-requests for example). 3) Fixes a few small issues with installations, namely if for example a messages is sent without a bundle (currently not done by any client), we still infer installation info, so that we can communicate securely and making it truly optional. |
||
---|---|---|
.. | ||
README.md | ||
response.go | ||
response_test.go | ||
status.go | ||
types.go | ||
utils.go |
README.md
Mobile
Package mobile implements gomobile bindings for status-go. Current implementation servers as a drop-in replacement for lib
package.
The framework name is generated from the package name, hence these things are done intentionally:
(1) this package's name isn't equal to the directory name (statusgo
vs mobile
respectively);
(2) this package name is statusgo
and not status
which produces the right framework name.
Usage
For properly using this package, please refer to Makefile in the root of status-go
directory.
To manually build library, run following commands:
iOS
gomobile bind -v -target=ios -ldflags="-s -w" github.com/status-im/status-go/mobile
This will produce Statusgo.framework
file in the current directory, which can be used in iOS project.
Android
gomobile bind -v -target=android -ldflags="-s -w" github.com/status-im/status-go/mobile
This will generate Statusgo.aar
file in the current dir.
Notes
See https://github.com/golang/go/wiki/Mobile for more information on gomobile
usage.