dappforce / subsocial-flutter

Flutter SDK for Subsocial blockchain.
GNU General Public License v3.0
11 stars 7 forks source link
dapp dart flutter subsocial subsocial-network substrate

Subsocial Flutter SDK

Usage

in your flutter project run the following commands to add the SDK to your project as a package.

git submodule add https://github.com/dappforce/subsocial-flutter.git packages/subsocial_sdk

then run the following command

./packages/subsocial_sdk/init.py

in your flutter project in pubspec.yml just add:

subsocial_sdk:
    path: packages/subsocial_sdk

then use the SDK as any other flutter package.

To Update the SDK Simply run:

git submodule foreach git pull origin main

then rerun the init.py script to fetch the latest native libs.

./packages/subsocial_sdk/init.py

To run the example app

Run the following script

./init.py .

Development, Setup and, Tools

Note these instructions only for who are working on the development of the SDK not the end-users that will use this SDK in the apps.

cargo install cargo-make

Build and Test

In the Root of the project simply run:

cargo make native

To Run tests:

flutter test

Then run the example flutter app:

cargo make android-dev # or ios
flutter run

See also