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_sdkthen run the following command
./packages/subsocial_sdk/init.pyin your flutter project in pubspec.yml just add:
subsocial_sdk:
path: packages/subsocial_sdkthen use the SDK as any other flutter package.
To Update the SDK Simply run:
git submodule foreach git pull origin mainthen rerun the init.py script to fetch the latest native libs.
./packages/subsocial_sdk/init.pyRun the following script
./init.py .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 Plugins
cargo install cargo-make-
Install LLVM (10+) in the following way:
-
ubuntu/linux
- Install libclangdev -
sudo apt-get install libclang-dev.
- Install libclangdev -
-
Windows
- Install Visual Studio with C++ development support.
- Install LLVM
or
winget install -e --id LLVM.LLVM.
-
MacOS
- Install Xcode.
- Install LLVM -
brew install llvm.
In the Root of the project simply run:
cargo make nativeTo Run tests:
flutter testThen run the example flutter app:
- Build the native libs
cargo make android-dev # or ios- then run the app (the example)
flutter run