Skip to content

Commit 19e1106

Browse files
committed
Ensure Sentry is installed
1 parent e0173f1 commit 19e1106

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

fastlane/Fastfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,8 @@ platform :ios do
540540
#####################################################################################
541541
desc 'Builds and uploads an installable build'
542542
lane :build_and_upload_installable_build do |options|
543+
ensure_sentry_installed
544+
543545
alpha_code_signing
544546

545547
# Get the current build version, and update it if needed
@@ -620,6 +622,8 @@ platform :ios do
620622
ios_build_prechecks(skip_confirm: options[:skip_confirm], internal: true) unless options[:skip_prechecks]
621623
ios_build_preflight unless options[:skip_prechecks]
622624

625+
ensure_sentry_installed
626+
623627
internal_code_signing
624628

625629
gym(
@@ -671,6 +675,7 @@ platform :ios do
671675
ios_build_prechecks(skip_confirm: options[:skip_confirm], external: true) unless options[:skip_prechecks]
672676
ios_build_preflight unless options[:skip_prechecks]
673677

678+
ensure_sentry_installed
674679
appstore_code_signing
675680

676681
gym(
@@ -932,6 +937,10 @@ def read_version_from_config
932937
end
933938
end
934939

940+
def ensure_sentry_installed
941+
UI.user_error('sentry-cli not installed') unless sh('command -v sentry-cli')
942+
end
943+
935944
# Application-agnostic settings for the `upload_to_app_store` action, also
936945
# known as `deliver`.
937946
UPLOAD_TO_APP_STORE_COMMON_PARAMS = {

0 commit comments

Comments
 (0)