fastlane-plugin-sentry 1.33.0 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a54df053c2a06515037c114698cc0bce5ce1141a68d66885f7f935c2c7be098
4
- data.tar.gz: b242d649b6f40229c41ec9ed8b0c89bae46eb0d5e036e78ef1cd4647e7102e98
3
+ metadata.gz: 87dd2d17a37311176fef0342bad23e9c541072af3bbdf6cb1fae208cc2ca0d7a
4
+ data.tar.gz: 627226c01ede0a47c8aa122ee7a082654ed6b262d702a110c4e2934f616e94fa
5
5
  SHA512:
6
- metadata.gz: 0e874c32d14bad10eb69680db9bfc4e6be5e79dd72a80f8598c0f7b8c57a263355416d5f0e2207826469cf153f8a52b54b6e445bbabe37072224c410ec76d55a
7
- data.tar.gz: 5f3aa18d9705a5cebe3c3fd6098f7fb837d3083d9dde9d01464d9d849c66f02be5ad560607eef898791e74f287157251a2ba231dd13d80d7e1167aebd89048f1
6
+ metadata.gz: 4e3aff2f123fcaadaa0599c3d4e866631f6cae6f01488730bc7309713b4a6b525a88973b02dd2e498f88fb92c40b3d8ffb6496a58c68f0629038ea7b950fbfa0
7
+ data.tar.gz: d329de163e772c25835c928dfe14e39e337cee1c47ed011d92d5555c2cd99eddd03ce0a15a4f46fff4ee48f0a7e53d2bcede9faf284dc92b13c9b2c5cc501fe7
data/README.md CHANGED
@@ -81,9 +81,9 @@ Further options:
81
81
  - __symbol_maps__: Optional. Optional path to BCSymbolMap files which are used to resolve hidden symbols in dSYM files downloaded from iTunes Connect. This requires the dsymutil tool to be available.
82
82
  - __derived_data__: Optional. Search for debug symbols in Xcode's derived data.
83
83
  - __no_zips__: Do not search in ZIP files.
84
- - __info_plist__: Optional. Optional path to the Info.plist. We will try to find this automatically if run from Xcode. Providing this information will associate the debug symbols with a specific ITC application and build in Sentry. Note that if you provide the plist explicitly it must already be processed.
84
+ - __info_plist__: Optional. Optional path to the Info.plist. We will try to find this automatically if run from Xcode. Providing this information will associate the debug symbols with a specific ITC application and build in Sentry. Note that if you provide the plist explicitly it must already be processed.
85
85
  - __no_reprocessing__: Optional. Do not trigger reprocessing after uploading.
86
- - __force_foreground__: Optional. __Deprecated NoOp since 1.26.0. Before v 1.26.0__: Wait for the process to finish. By default, the upload process will detach and continue in the background when triggered from Xcode. When an error happens, a dialog is shown. If this parameter is passed Xcode will wait for the process to finish before the build finishes and output will be shown in the Xcode build output.
86
+ - __force_foreground__: Optional. __Deprecated NoOp since 1.26.0. Before v 1.26.0__: Wait for the process to finish. By default, the upload process will detach and continue in the background when triggered from Xcode. When an error happens, a dialog is shown. If this parameter is passed Xcode will wait for the process to finish before the build finishes and output will be shown in the Xcode build output.
87
87
  - __include_sources__: Optional. Include sources from the local file system and upload them as source bundles.
88
88
  - __wait__: Wait for the server to fully process uploaded files. Errors can only be displayed if --wait is specified, but this will significantly slow down the upload process.
89
89
  - __upload_symbol_maps__: Optional. Upload any BCSymbolMap files found to allow Sentry to resolve hidden symbols, e.g. when it downloads dSYMs directly from App Store Connect or when you upload dSYMs without first resolving the hidden symbols using --symbol-maps.
@@ -112,6 +112,34 @@ sentry_upload_dsym(
112
112
  )
113
113
  ```
114
114
 
115
+ ### Uploading iOS Build Archives
116
+
117
+ Upload iOS build archives (.xcarchive) to Sentry for improved symbolication and source context.
118
+
119
+ ```ruby
120
+ sentry_upload_build(
121
+ api_key: '...', # Do not use if using auth_token
122
+ auth_token: '...', # Do not use if using api_key
123
+ org_slug: '...',
124
+ project_slug: '...',
125
+ xcarchive_path: './build/MyApp.xcarchive', # Path to your .xcarchive file
126
+ # Optional git context parameters (can also be set via environment variables)
127
+ head_sha: 'abc123...', # The SHA of the head of the current branch (or SENTRY_HEAD_SHA)
128
+ base_sha: 'def456...', # The SHA of the base branch (or SENTRY_BASE_SHA)
129
+ vcs_provider: 'github', # Version control system provider (e.g., 'github', 'gitlab') (or SENTRY_VCS_PROVIDER)
130
+ head_repo_name: 'owner/repo-name', # Name of the head repository (or SENTRY_HEAD_REPO_NAME)
131
+ base_repo_name: 'owner/repo-name', # Name of the base repository (or SENTRY_BASE_REPO_NAME)
132
+ head_ref: 'feature-branch', # Name of the head branch (or SENTRY_HEAD_REF)
133
+ base_ref: 'main', # Name of the base branch (or SENTRY_BASE_REF)
134
+ pr_number: '123', # Pull request number (or SENTRY_PR_NUMBER)
135
+ build_configuration: 'Release' # Build configuration (e.g., 'Release', 'Debug') (or SENTRY_BUILD_CONFIGURATION)
136
+ )
137
+ ```
138
+
139
+ By default the `SharedValue::XCODEBUILD_ARCHIVE` sets the `xcarchive_path` parameter if set by a prior lane such as `build_app`.
140
+
141
+ This action is only supported on iOS platform.
142
+
115
143
  ### Creating & Finalizing Releases
116
144
 
117
145
  ```ruby
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,115 @@
1
+ module Fastlane
2
+ module Actions
3
+ class SentryUploadBuildAction < Action
4
+ def self.run(params)
5
+ Helper::SentryConfig.parse_api_params(params)
6
+
7
+ # Verify xcarchive path
8
+ xcarchive_path = params[:xcarchive_path]
9
+ UI.user_error!("Could not find xcarchive at path '#{xcarchive_path}'") unless File.exist?(xcarchive_path)
10
+ UI.user_error!("Path '#{xcarchive_path}' is not an xcarchive") unless File.extname(xcarchive_path) == '.xcarchive'
11
+
12
+ command = [
13
+ "build",
14
+ "upload",
15
+ File.absolute_path(xcarchive_path)
16
+ ]
17
+
18
+ # Add git-related parameters if provided
19
+ command << "--head-sha" << params[:head_sha] if params[:head_sha]
20
+ command << "--base-sha" << params[:base_sha] if params[:base_sha]
21
+ command << "--vcs-provider" << params[:vcs_provider] if params[:vcs_provider]
22
+ command << "--head-repo-name" << params[:head_repo_name] if params[:head_repo_name]
23
+ command << "--base-repo-name" << params[:base_repo_name] if params[:base_repo_name]
24
+ command << "--head-ref" << params[:head_ref] if params[:head_ref]
25
+ command << "--base-ref" << params[:base_ref] if params[:base_ref]
26
+ command << "--pr-number" << params[:pr_number] if params[:pr_number]
27
+ command << "--build-configuration" << params[:build_configuration] if params[:build_configuration]
28
+
29
+ Helper::SentryHelper.call_sentry_cli(params, command)
30
+ UI.success("Successfully uploaded build archive: #{xcarchive_path}")
31
+ end
32
+
33
+ #####################################################
34
+ # @!group Documentation
35
+ #####################################################
36
+
37
+ def self.description
38
+ "Upload iOS build archive to Sentry with optional git context"
39
+ end
40
+
41
+ def self.details
42
+ "This action allows you to upload iOS build archives (.xcarchive) to Sentry with optional git-related parameters for enhanced context including commit SHAs, branch names, repository information, and pull request details."
43
+ end
44
+
45
+ def self.available_options
46
+ Helper::SentryConfig.common_api_config_items + [
47
+ FastlaneCore::ConfigItem.new(key: :xcarchive_path,
48
+ description: "Path to your iOS build archive (.xcarchive)",
49
+ default_value: Actions.lane_context[SharedValues::XCODEBUILD_ARCHIVE],
50
+ verify_block: proc do |value|
51
+ UI.user_error!("Could not find xcarchive at path '#{value}'") unless File.exist?(value)
52
+ UI.user_error!("Path '#{value}' is not an xcarchive") unless File.extname(value) == '.xcarchive'
53
+ end),
54
+ FastlaneCore::ConfigItem.new(key: :head_sha,
55
+ env_name: "SENTRY_HEAD_SHA",
56
+ description: "The SHA of the head of the current branch",
57
+ optional: true,
58
+ is_string: true),
59
+ FastlaneCore::ConfigItem.new(key: :base_sha,
60
+ env_name: "SENTRY_BASE_SHA",
61
+ description: "The SHA of the base branch",
62
+ optional: true,
63
+ is_string: true),
64
+ FastlaneCore::ConfigItem.new(key: :vcs_provider,
65
+ env_name: "SENTRY_VCS_PROVIDER",
66
+ description: "The version control system provider (e.g., 'github', 'gitlab')",
67
+ optional: true,
68
+ is_string: true),
69
+ FastlaneCore::ConfigItem.new(key: :head_repo_name,
70
+ env_name: "SENTRY_HEAD_REPO_NAME",
71
+ description: "The name of the head repository",
72
+ optional: true,
73
+ is_string: true),
74
+ FastlaneCore::ConfigItem.new(key: :base_repo_name,
75
+ env_name: "SENTRY_BASE_REPO_NAME",
76
+ description: "The name of the base repository",
77
+ optional: true,
78
+ is_string: true),
79
+ FastlaneCore::ConfigItem.new(key: :head_ref,
80
+ env_name: "SENTRY_HEAD_REF",
81
+ description: "The name of the head branch",
82
+ optional: true,
83
+ is_string: true),
84
+ FastlaneCore::ConfigItem.new(key: :base_ref,
85
+ env_name: "SENTRY_BASE_REF",
86
+ description: "The name of the base branch",
87
+ optional: true,
88
+ is_string: true),
89
+ FastlaneCore::ConfigItem.new(key: :pr_number,
90
+ env_name: "SENTRY_PR_NUMBER",
91
+ description: "The pull request number",
92
+ optional: true,
93
+ is_string: true),
94
+ FastlaneCore::ConfigItem.new(key: :build_configuration,
95
+ env_name: "SENTRY_BUILD_CONFIGURATION",
96
+ description: "The build configuration (e.g., 'Release', 'Debug')",
97
+ optional: true,
98
+ is_string: true)
99
+ ]
100
+ end
101
+
102
+ def self.return_value
103
+ nil
104
+ end
105
+
106
+ def self.authors
107
+ ["runningcode"]
108
+ end
109
+
110
+ def self.is_supported?(platform)
111
+ [:ios].include?(platform)
112
+ end
113
+ end
114
+ end
115
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "1.33.0"
3
+ VERSION = "1.34.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-sentry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.33.0
4
+ version: 1.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-08 00:00:00.000000000 Z
11
+ date: 2025-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os
@@ -120,6 +120,7 @@ files:
120
120
  - lib/fastlane/plugin/sentry/actions/sentry_debug_files_upload.rb
121
121
  - lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb
122
122
  - lib/fastlane/plugin/sentry/actions/sentry_set_commits.rb
123
+ - lib/fastlane/plugin/sentry/actions/sentry_upload_build.rb
123
124
  - lib/fastlane/plugin/sentry/actions/sentry_upload_dif.rb
124
125
  - lib/fastlane/plugin/sentry/actions/sentry_upload_dsym.rb
125
126
  - lib/fastlane/plugin/sentry/actions/sentry_upload_file.rb