This project is a fastlane plugin. To get started with fastlane-plugin-appcenter
, add it to your project by running:
fastlane add_plugin appcenter
With App Center you can continuously build, test, release, and monitor your apps. This plugin provides an appcenter_upload
action which allows you to upload and release distribute apps to your testers on App Center as well as to upload .dSYM files to collect detailed crash reports in App Center.
To get started, first, obtain an API token in App Center. The API Token is used to authenticate with the App Center API in each call.
appcenter_upload(
api_token: "<appcenter token>",
owner_name: "<your appcenter account name>",
app_name: "<your app name>",
apk: "<path to android build binary>"
)
The action parameters api_token
and owner_name
can also be omitted when their values are set as environment variables. Below a list of all available environment variables:
APPCENTER_API_TOKEN
- API Token for App CenterAPPCENTER_OWNER_NAME
- Owner nameAPPCENTER_APP_NAME
- App name. If there is no app with such name, you will be prompted to create oneAPPCENTER_DISTRIBUTE_APK
- Build release path for android buildAPPCENTER_DISTRIBUTE_IPA
- Build release path for ios buildAPPCENTER_DISTRIBUTE_DSYM
- Path to your symbols file. For iOS provide path to app.dSYM.zipAPPCENTER_DISTRIBUTE_UPLOAD_DSYM_ONLY
- Flag to upload only the dSYM file to App CenterAPPCENTER_DISTRIBUTE_GROUP
- Comma separated list of Distribution Group namesAPPCENTER_DISTRIBUTE_DESTINATION
- Comma separated list of Destination namesAPPCENTER_DISTRIBUTE_RELEASE_NOTES
- Release notes
Check out the example Fastfile
to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins
and bundle exec fastlane test
.
Sample uses .env
for setting private variables like API token, owner name, .etc. You need to replace it in Fastfile
by your own values.
There are three examples in test
lane:
- upload release for android with minimum required parameters
- upload release for ios with all set parameters
- upload only dSYM file for ios
To run both the tests, and code style validation, run
rake
To automatically fix many of the styling issues, use
rubocop -a
For any other issues and feedback about this plugin, please open a GitHub issue.
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
For more information about how the fastlane
plugin system works, check out the Plugins documentation.
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
We're on Twitter as @vsappcenter. Additionally you can reach out to us on the App Center portal by using the blue Intercom button on the bottom right to start a conversation.