CI can be so easy with this template

Build Flutter apps for iOS, Android, and Windows with Azure DevOps

A ready-to-use and working build pipeline for Azure DevOps to build Flutter apps for iOS, Android, and Windows.

xeladu
6 min readJan 17, 2022

--

Photo by Danist Soh on Unsplash

(Not a Medium member? Read this story for free here!)

Here is a working pipeline for Azure DevOps to build Flutter apps with the most recent SDK version for iOS, Android, and Windows alongside an integration and configuration guide.

It will produce an Android App bundle (.aab), an iOS IPA file, and a Windows MSIX package which can be submitted to the corresponding app stores.

The pipeline uses the cloud agents of Microsoft and can benefit from parallel builds if available (paid option). It will execute the following steps for every platform:

  1. Install Flutter SDK
    The current stable channel version will be installed by default.
  2. Build app (iOS, Android, Windows)
    Every app is built in its own stage, so parallelism is supported.
  3. Run tests
    If there are any *test.dart files in the project, they will be run here.
  4. Publish app as build artifact
    Build artifacts can be downloaded or used in other pipelines
💡 Get an overview of my new Medium content with my monthly newsletter. Save time and pick what you like to read! 

Click HERE to subscribe for free!

How can I create a pipeline from the YAML file?

Your YAML file is checked into version control, how do we get it into Azure DevOps? It’s quite easy when you know where you have to go. Here are the steps:

  • In Azure DevOps go to Pipelines.
  • Click the New pipeline button in the top right corner.

--

--

xeladu

Flutter and Firebase expert, blogger on QuickCoder.org, find my ebooks and freebies on shop.quickcoder.org, contact me on me.quickcoder.org!