be9c55bc16
* WIP accounts implementation * Accounts datasore and changes to status mobile API * Add library changes and method to update config * Handle error after account selection * Add two methods to start account to backend * Use encrypted database for settings and add a service for them * Resolve linter warning * Bring back StartNode StopNode for tests * Add sub accounts and get/save api * Changes to accounts structure * Login use root address and fetch necessary info from database * Cover accounts store with tests * Refactor in progress * Initialize status keystore instance before starting ethereum node * Rework library tests * Resolve failures in private api test and send transaction test * Pass pointer to initialized config to unmarshal * Use multiaccounts/accounts naming consistently Multiaccount is used as a login identifier Account references an address and a key, if account is not watch-only. * Add login timestamp stored in the database to accounts.Account object * Add photo-path field for multiaccount struct * Add multiaccoutns rpc with updateAccount method Update to any other account that wasn't used for login will return an error * Fix linter in services/accounts * Select account before starting a node * Save list of accounts on first login * Pass account manager to accounts service to avoid selecting account before starting a node * Add logs to login with save and regualr login |
||
---|---|---|
.. | ||
README.md | ||
multiaccount.go | ||
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.