Install all of the following things:
Ensure your path is set up correctly to execute flutter
Run flutter doctor
and fix everything it complains before proceeding
NOTE on iOS, always open Runner.xcworkspace
and NOT the Runner.xccodeproj
env.sh.example
and set it up for your machinegomobile init
Show package details
box, expand the NDK section and select 21.1.6352462
version.Show package details
box to select the correct version. The correct version comes from the error when you try and compilegem
installed with sudo gem install
sudo gem install ffi -- --enable-libffi-alloc
If you are having issues with iOS pods, try blowing it all away! cd ios && rm -rf Pods/ Podfile.lock && pod install --repo-update
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
Update version
in pubspec.yaml
to reflect this release, then
flutter build appbundle
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
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