How to deploy the graft Wallet.
-
Get Dependencies from pub
flutter pub get
-
Run the build_runner
flutter pub run build_runner build
-
Add the graft static libs
./tool/download-android-deps.sh https://graft.rocks/graft-io/graft-core/graft-stable-android-deps-LATEST.tar.xz ./tool/download-ios-deps.sh https://graft.rocks/graft-io/graft-core/graft-stable-ios-deps-LATEST.tar.xz
-
Generate Launcher Icons
flutter pub run flutter_launcher_icons:main
-
Create Encryption Keys Create an empty file named
tool/.secrets-prod.json
and run the following command.dart tool/create_secret.dart
Make sure to backup ".secrets-prod.json" in a secure location and share with nobody. The Secrets are used to encrypt the database. Users wont be able to access their local database and wallet if those change.
-
Add Key to the application
dart tool/secrets.dart
This generates the file
lib/.secrets.g.dart
this contains the secrets fromtool/.secrets-prod.json
and should not be shared with anyone. -
Build the App For that I recommend you follow Google's Guides