No commit activity in last 3 years
No release in over 3 years
Fastlane plugin to trigger a Codemagic build with some options
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

codemagic plugin

fastlane Plugin Badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-codemagic, add it to your project by running:

fastlane add_plugin codemagic

About codemagic

Fastlane plugin to trigger a Codemagic build with some options

Note to author: Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.

Options

Option Description Type Requirement Environment Variable
auth_token Codemagic API access token is available via UI in User settings > Integrations > Codemagic API > Show String Required CODEMAGIC_AUTH_TOKEN
app_id Codemagic application identifier. String Required CODEMAGIC_APP_ID
workflow_id Codemagic workflow identifier as specified in YAML file. String Required CODEMAGIC_WORKFLOW_ID
branch Git branch name String Required CODEMAGIC_BRANCH
download Artefacts downloading options Object Optional none
environment Codemagic specify environment variables and software versions to override values defined in workflow settings. Object Optional none

Return values

If an error is return by the codemagic.io API, the plugin will throw an exception.

Examples

codemagic(
    workflow_id: "YOUR_WORKFLOW_ID",
    app_id: "YOUR_APP_ID",
    branch: "YOUR_BRANCH",
    auth_token: "YOUR_AUTH_TOKEN",
    download: {
        artefacts: ["ipa"],
        build_path: "./build/"
    },
    environment: {
        variables: {
            "ENV": "production",
            "YET_ANOTHER_ENVIRONMENT_VARIABLE" => "123456" 
        },
        softwareVersions: {
            flutter: stable
            xcode: latest
            cocoapods: default
        }
    }
)

Note to author: Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.