Skip to content

Commit 9507051

Browse files
authored
Merge pull request #5104 from StoDevX/sentry-sourcemap-fix
Fix Sentry Sourcemap Uploading
2 parents 2ccb30e + b766c3a commit 9507051

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

fastlane/lib/sourcemaps.rb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,20 @@ def sourcemap_args
66
when :android
77
platform = 'android'
88
entry_file = 'index.js'
9-
bundle_output = '../android-release.bundle'
10-
sourcemap_output = '../android-release.bundle.map'
11-
bundle_url = 'index.android.bundle'
9+
bundle_output = 'index.android.bundle'
10+
sourcemap_output = 'index.android.bundle.map'
1211
when :ios
1312
platform = 'ios'
1413
entry_file = 'index.js'
15-
bundle_output = '../ios-release.bundle'
16-
sourcemap_output = '../ios-release.bundle.map'
17-
bundle_url = 'main.jsbundle'
14+
bundle_output = 'main.jsbundle'
15+
sourcemap_output = 'main.jsbundle.map'
1816
end
1917

2018
{
2119
platform: platform,
2220
entry_file: entry_file,
2321
bundle_output: bundle_output,
2422
sourcemap_output: sourcemap_output,
25-
bundle_url: bundle_url,
2623
}
2724
end
2825

@@ -66,6 +63,7 @@ def upload_sourcemap_to_sentry
6663
"--dist #{current_bundle_code}",
6764
"--strip-prefix #{File.expand_path(File.join(__FILE__, '..', '..', '..'))}",
6865
'--rewrite',
66+
args[:bundle_output],
6967
args[:sourcemap_output]
7068
].join ' '
7169

0 commit comments

Comments
 (0)