-
Notifications
You must be signed in to change notification settings - Fork 0
Add lane to upload dSyms to Crashlytics #18
base: develop
Are you sure you want to change the base?
Conversation
Fastfile
Outdated
@@ -202,6 +202,18 @@ platform :ios do | |||
!ENV['BITRISE_IO'].nil? | |||
end | |||
|
|||
desc 'Downloads dSYM from iTuneConnect and upload them to Crashlytics.' | |||
lane :refresh_dsyms do | |||
if ENV['CRASHLYTICS_API_TOKEN'] || ENV['GOOGLE_SERVICES_INFO_PLIST_PATH'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't it the opposite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rsomlette yes, will change this.
d56c373
to
17894bb
Compare
Fastfile
Outdated
@@ -202,6 +202,18 @@ platform :ios do | |||
!ENV['BITRISE_IO'].nil? | |||
end | |||
|
|||
desc 'Downloads dSYM from iTuneConnect and upload them to Crashlytics.' | |||
lane :refresh_dsyms do | |||
if !ENV['CRASHLYTICS_API_TOKEN'] || !ENV['GOOGLE_SERVICES_INFO_PLIST_PATH'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also change the ||
to &&
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ccmjz it's either one or the other. If we're using Firebase Crashlytics we have to set GOOGLE_SERVICES_INFO_PLIST_PATH
otherwise CRASHLYTICS_API_TOKEN
for the original Crashlytics.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we should raise the error when none of them is set, right? If we use the ||
here, the error will be raised if one of them is not set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ccmjz yes, you're right. In my haste, I made this stupid error.
17894bb
to
3b78b03
Compare
3b78b03
to
a42523e
Compare
Description
This lane
refresh_dsyms
will download debug symbols from iTC and upload them to Crashlytics.It is necessary to have dSyms in Crashlytics to decode a crash stack trace.
Developer must set either
CRASHLYTICS_API_TOKEN
orGOOGLE_SERVICES_INFO_PLIST_PATH
in order to upload the dSyms. TheGOOGLE_SERVICE_INFO_PLIST_PATH
environment variable is used if you're using Firebase Crashlytics.