mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-10 02:32:20 +08:00
1.4 KiB
1.4 KiB
Building Instructions
- It's best to just work on this on Android - the ios setup is far more complicated and I haven't managed to automate it.
Environment setup
-
Install Flutter through official guidilines
-
As a part of flutter installation, you will need to install Android Studio
-
Use AVD manager from Android Studio, to create device for local development.
-
Project contains
:git_binding
dependency, so it needs Android NDK. You need to install through SDK Manager. -
Run the
scripts/setup_env.dart
script -
Run command
flutter run --flavor dev --debug
: it will connect to available device and run program.- Or you can run
flutter build apk --flavor dev --debug
and see apk underbuild/app/outputs/apk/
folder
- Or you can run
-
You will see application on emulator, you are all setup. You can start with app.dart file to exploring code.
IDE Setup
VS Code has great plugin for flutter, but you need to add args to launch.json. Example launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Flutter",
"request": "launch",
"type": "dart",
"args": ["--flavor", "dev"]
}
]
}