Rody Davis

Full Stack Polymath Developer | Mobile: Native, Flutter | Web: .NET Core, Angular | Languages: Dart, Java, Kotlin, Swift, Ruby, C#, TS

Home

Automate Flutter App Releases

Published Mar 15, 2019

TLDR

You can find the script here.

Make your life easier and automate your builds to beta and production!

What you need

Initial Setup

  • Download this file
  • Put it at the root level of your flutter project
  • Open the terminal and navigate to your project location
  • Enter this command: chmod +x release.sh

Usage

Now you can call this script!

  • For beta: ./release.sh beta
  • For production: ./release.sh release

Overview

  • Bump the version numbers if you are using the version in the pubspec.yaml
  • Release the apps with Fastlane
  • Format all Dart Files
  • Clean Project
  • Rebuild classes
  • Add commit messages
  • Updates Cocoa Pods