Template for a Flutter project, with CI and CD.
- Replace
com.example.flutter_template
with your application ID. - Add extra platforms with
flutter create .
. - Generate a Personal Access Token for the repo, with read and
write access to commit statuses, contents, and deployments, and add it to your repository secrets
as
GH_TOKEN
.
- Runs
flutter analyze
,dart format
andflutter test
. - The linter is customizable with
analysis_options.yaml
.
- Uses semantic-release with plugins @semantic-release/exec, @semantic-release/git, and @semantic-release/github.
- Each push to
main
updates theversion
field inpubspec.yaml
, builds an APK, and releases it on GitHub. See.releaserc.json
for details and customization.
- Thanks to
.gitattributes
, all your end-of-lines are converted to LF, except PNGs. If some of your binary files are corrupted, add exceptions to.gitattributes
.