Add functionality and tests for iOS mobile app upload
This calls sentry-cli mobile-app upload with a path to the xcarchive.
The lane looks like this (also documented in README):
sentry_upload_mobile_app(
api_key: '...', # Do not use if using auth_token
auth_token: '...', # Do not use if using api_key
org_slug: '...',
project_slug: '...',
xcarchive_path: './build/MyApp.xcarchive', # Path to your .xcarchive file
)
The xcarchive_path is automatically inferred from SharedValue::XCODEBUILD_ARCHIVE and can be overridden.
See this internal doc for more details on the implementation of this feature: https://www.notion.so/sentry/1f68b10e4b5d80b1a127fb174f87c555
Regarding testing, I used the hackernews app built locally: https://github.com/EmergeTools/hackernews
You need to use the main branch of the sentry-cli and point the fastlane plugin to that via the SENTRY_CLI_PATH environment variable.
This pull request has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Hey @runningcode, what's the status on this PR?
We're waiting on two things,
- The service to process the uploads being ready. Launchpad
- The
sentry-cli'smobile-app uploadcommand being released. This should happen in the next few weeks.
The sentry-cli was just released (2.53.0) with the build subcommand to upload builds and the Launchpad service to process them is online.
The sentry-cli build subcommand is considered experimental and subject to change but it is fully functional.