Skip to content

Commit

Permalink
Merge pull request #5104 from StoDevX/sentry-sourcemap-fix
Browse files Browse the repository at this point in the history
Fix Sentry Sourcemap Uploading
  • Loading branch information
rye authored Apr 10, 2021
2 parents 2ccb30e + b766c3a commit 9507051
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions fastlane/lib/sourcemaps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,20 @@ def sourcemap_args
when :android
platform = 'android'
entry_file = 'index.js'
bundle_output = '../android-release.bundle'
sourcemap_output = '../android-release.bundle.map'
bundle_url = 'index.android.bundle'
bundle_output = 'index.android.bundle'
sourcemap_output = 'index.android.bundle.map'
when :ios
platform = 'ios'
entry_file = 'index.js'
bundle_output = '../ios-release.bundle'
sourcemap_output = '../ios-release.bundle.map'
bundle_url = 'main.jsbundle'
bundle_output = 'main.jsbundle'
sourcemap_output = 'main.jsbundle.map'
end

{
platform: platform,
entry_file: entry_file,
bundle_output: bundle_output,
sourcemap_output: sourcemap_output,
bundle_url: bundle_url,
}
end

Expand Down Expand Up @@ -66,6 +63,7 @@ def upload_sourcemap_to_sentry
"--dist #{current_bundle_code}",
"--strip-prefix #{File.expand_path(File.join(__FILE__, '..', '..', '..'))}",
'--rewrite',
args[:bundle_output],
args[:sourcemap_output]
].join ' '

Expand Down

0 comments on commit 9507051

Please sign in to comment.