With the introduction of the Codemagic.yaml file it is now possible to release any app whether it is built with React NativeFlutterwebdesktopiOS or Android! Today we will set up an Android project from scratch and integrate fastlane into the CLI commands for the YAML file.

TL;DR; You can find the final project here.

Android project setup

Make sure you have Android Studio installed and the necessary SDKs you want to release for.

Click Create a new Android Project and choose Basic Activity:

Now set up your project name and project path:

Now your project should look like this:

Codemagic CI/CD YAML Setup

Now that you have the project set up, create a new top level file called codemagic.yaml and add the following:

workflows:
    android-app:
        name: Android App
        scripts:
            - ./gradlew assembleDebug
        artifacts:
            - build/outputs/**/**/*.apk

Check this into VCS and open the project in Codemagic to run your build!

#android #ci/cd

How to set up an Android project on Codemagic CI/CD?
1.60 GEEK