Skip to content

Commit 1ac4511

Browse files
committed
fastlane: Prepend bundle identifier before version when uploading smaps
Signed-off-by: Kristofer Rye <[email protected]>
1 parent 7cf0298 commit 1ac4511

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

fastlane/lib/sourcemaps.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ def generate_sourcemap
4444
print_command: true)
4545
end
4646

47+
def bundle_identifier
48+
case lane_context[:PLATFORM_NAME]
49+
when :android
50+
"com.allaboutolaf"
51+
when :ios
52+
get_info_plist_value(path: 'ios/AllAboutOlaf/Info.plist',
53+
key: 'CFBundleIdentifier')
54+
end
55+
end
56+
4757
# Upload sourcemap to sentry
4858
def upload_sourcemap_to_sentry
4959
args = sourcemap_args
@@ -52,7 +62,7 @@ def upload_sourcemap_to_sentry
5262
'npx @sentry/cli',
5363
'releases',
5464
'files',
55-
current_bundle_version,
65+
"#{bundle_identifier}-#{current_bundle_version}",
5666
'upload-sourcemaps',
5767
"--dist #{current_bundle_code}",
5868
"--strip-prefix #{File.expand_path(File.join(__FILE__, '..', '..', '..'))}",

0 commit comments

Comments
 (0)