motor_flutter

Last updated:

0 purchases

motor_flutter Image
motor_flutter Images
Add to Cart

Description:

motor flutter

The Official Implementation of the Sonr Motor Node in Flutter. This package provides methods for Authentication, Data Management, and Wallet interactions for the Sonr Network.
Quick Start

Get started by Registering User Accounts and following the next steps at the bottom of the doc.
Read the Full Sonr Stack Documentation and Motor Flutter API Reference
Visit our Website and Join the Community Discord
Submit Feature Requests at sonr.fyi

Installation #
Here's how to install the motor_flutter package in your Flutter project:
Prerequisites

Flutter
GetX

Using the Flutter CLI
flutter pub add motor_flutter
copied to clipboard
or
dependencies:
motor_flutter: ^0.9.2
copied to clipboard
Update your ios/Podfile:
platform :ios, '13.0' # At the top of the file
.
.
use_frameworks! # Then **remove or comment out**
copied to clipboard
Usage #
We have full usage examples available in the motor_flutter docs site. Each method on the
MotorFlutter class has a full example and usage guide for its functionality.
Storybook #
To run storybook, run flutter on storybook directory like so:
$ cd storybook
$ flutter run -d <your_device_id>
copied to clipboard
Running tests #
To run tests simply run this command:
$ flutter test
copied to clipboard
This repository uses golden tests, so whenever a widget structure is changed the tests will fail, if you actually want the changes to take place you can update the golden files with this command:
$ flutter test --update-goldens
copied to clipboard
Coverage #
To generate coverage reports first install lcov:
Linux
sudo apt-get update -qq -y
sudo apt-get install lcov -y
copied to clipboard
MacOS
brew install lcov
copied to clipboard
Use this command to generate coverage:
$ ./scripts/generate-coverage.sh
copied to clipboard
If you don't have permission to execute the script run this command and try again:
$ chmod 777 scripts/generate-coverage.sh
$ ./scripts/generate-coverage.sh
copied to clipboard
Now you can check coverage by opening coverage/html/index.html
$ open coverage/html/index.html
copied to clipboard
Contributing #
This library is still under active core team development. We welcome contributions from the community, but for the time being we would ask
that you create an issue before submitting a pull request.
License #
Our code is licensed under the GPLv3 license.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.