In this article, I will be showing how to add Flutter to your new or existing Native Androidproject and how to test it on Codemagic CI/CD using codemagic.yaml
file.
The YAML feature is currently in beta and has the following limitations:
I will be starting from the scratch to give you some tips and tricks in the way. So, let us first create a simple Native Android app for this tutorial.
Editor’s Note: We also recommend you to read iOS Code Signing and Publishing with codemagic.yaml file.
App screens
We will be creating a simple app called Court Counter, which will be a score keeper for a basketball match between two teams.
It will contain two screens:
Project details
I have added an extra folder to store the native Android project because this will make it easier to add the Flutter module later.
So, the empty native Android project is ready.
The Flutter module should be added as a sibling to the native Android project. Assuming that you have your Android project at path/to/project/nativeApp
, where nativeApp is the name of your Android project folder, then you have to create the Flutter module from path/to/project
folder.
The steps for creating the Flutter module are as follows:
$ cd ..
$ flutter create -t module name_of_module
#android #flutter