Setting up projects
Codemagic allows you to build, test and publish Flutter apps (Android, iOS, web, macOS, Linux), native Android and iOS apps, native apps containing Flutter modules, Flutter widgets and Flutter packages. Projects can be configured via GUI (Flutter projects only) or using
codemagic.yaml (all projects).
Upon login, Codemagic will automatically display the list of apps in the connected repositories. If you want to build an app that is not available through the account you signed up with, you can add the app from custom source.
Running the first build
If it's a Flutter project, you can start the very first build with preconfigured defaults by clicking Start your first build on the Applications page. This will run a debug build of your master branch for the available platforms using the latest stable version of Flutter. Tests are disabled by default. Alternatively, you can click the gear icon to configure app settings, e.g. change the Flutter or Xcode version, prior to building.
Note that if the repository contains multiple projects, you can select the right project after the first build, read more about it below.
If it's a non-Flutter project, e.g. a native Android or iOS app or an app containing Flutter modules, you must first create a codemagic.yaml file for build configuration and commit it to your repository. Then, click the gear icon > Start your first build in app settings to select a branch and YAML configuration to build.
As the build starts, you can monitor the build progress right in your browser and expand each build step for more details.
After the build has finished successfully, you will immediately have artifacts available for download which you will also receive on the email that was configured for the app repository.
Multiple projects in one repository
Codemagic supports monorepos and is able to detect multiple Flutter projects in a repository provided that each project has its
The first build is run for the project whose
pubspec.yaml file was found first. After the first build, you can select the project for building from the Project file path dropdown in the Build section of app settings.
You can then continue to customize how you want Codemagic to build, test and publish your project using either the GUI or
codemagic.yaml. Note that you can also add custom build steps in the GUI by expanding sections before or after the default build steps visible in App settings.
- Enable automatic builds
- Enable automated tests
- Set up workflows for your project
- Set up code signing for Android and iOS
- Set up publishing to Google Play
- Set up publishing to App Store Connect
- Increment build version
- Browse the list of Codemagic read-only environment variables
- See the list of preinstalled software and versions