b2c674d65a
- Updated README with some maybe-helpful instructions for downgrading flutter to a version that will build the project - Added a step to create a missing directory to the Gradle build (otherwise the build fails) - Set `shrinkResources false` - otherwise you get an error that you can't shrink resources unless you also enable minifying |
||
---|---|---|
android | ||
fonts | ||
ios | ||
lib | ||
nebula | ||
.gitignore | ||
.metadata | ||
README.md | ||
env.sh.example | ||
gen-artifacts.sh | ||
pubspec.lock | ||
pubspec.yaml |
README.md
Dependencies
flutter
gomobile
android-studio
- Enable NDK Check local.properties for current NDK version
Downgrade flutter to a 1.x release (the following worked on an AUR install of flutter
)
cd $(dirname $(readlink $(which flutter)))
git checkout 1.22.6
flutter doctor
Copy env.sh.example to env.sh and update your PATH variable to expose both flutter and go bin directories
export PATH="$PATH:/path/to/go/bin:/path/to/flutter/bin
Formatting
flutter format
can be used to format the code in lib
and test
but it's default is 80 char line limit, it's 2020
Use:
flutter format lib/ test/ -l 120
Release
Update version
in pubspec.yaml
to reflect this release, then
Android
flutter build appbundle --no-shrink
This will create an android app bundle at build/app/outputs/bundle/release/
Upload the android bundle to the google play store https://play.google.com/apps/publish
iOS
In xcode, Release -> Archive then follow the directions to upload to the app store. If you have issues, https://flutter.dev/docs/deployment/ios#create-a-build-archive