fastlane-plugin-sentry 1.9.0 → 1.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fcaac063173141e154a7713fe39aaea1f541d6656faca25b59e97e74ac8628a
4
- data.tar.gz: be174a0c3dd6b3c1df22a87c0b67b90aebf0e4684a1aff65dc183e2c2d9d1356
3
+ metadata.gz: c53121ea7f7c00d665e77435c5fef8f378efe2a718fd8268b0cda6833592eb10
4
+ data.tar.gz: 4fac12d2ad679a0ec2ea2311192fd18d9eff66a0be91987cdfa1bfdce0136e16
5
5
  SHA512:
6
- metadata.gz: 1c4962ae6e42b13c30f9633ff2026358cac06c73c9a00a2b88cd025dc7872771f360667d40ed4915efde2df0cdc8a87fb69781f87ea9d9ff47721cc79a76f685
7
- data.tar.gz: d4fd92588967cdce3bc6847752afc63cf496edeb2d5b978f2252fe99ab58439c64779b7c7016a9e4dc4db0864abeb11da2a0553f9d21a0764e6c7f9124e772c2
6
+ metadata.gz: 8a1ce6458533a6244d154588f78c1376d862bb425e37d08351a89203210588d1d6a5d4345d3f01e43d900a9185416fb3e3cd96f2aafbcb47eb5996f19bd12278
7
+ data.tar.gz: 3224bd013b9221dd2feca2c740d686bfa4abe5633cceeda742ad4acf02897d71f402bf74704cf5d4f33472dac081d8dd693a4825640ed8c490e64cb2a3cab018
data/README.md CHANGED
@@ -22,7 +22,7 @@ fastlane add_plugin sentry
22
22
 
23
23
  A subset of actions provided by the CLI: https://docs.sentry.io/learn/cli/
24
24
 
25
- #### Authentication & Configuration
25
+ ### Authentication & Configuration
26
26
 
27
27
  `auth_token` is the preferred way to authentication method with Sentry. This can be obtained on https://sentry.io/api/.
28
28
  `api_key` still works but will eventually become deprecated. This can be obtained through the settings of your project.
@@ -30,7 +30,40 @@ Also note that as of version `1.2.0` you no longer have to provide the required
30
30
 
31
31
  The following environment variables may be used in place of parameters: `SENTRY_API_KEY`, `SENTRY_AUTH_TOKEN`, `SENTRY_ORG_SLUG`, and `SENTRY_PROJECT_SLUG`.
32
32
 
33
- #### Uploading Symbolication Files
33
+ ### Uploading Debug Information Files
34
+
35
+ ```ruby
36
+ sentry_upload_dif(
37
+ api_key: '...', # Do not use if using auth_token
38
+ auth_token: '...', # Do not use if using api_key
39
+ org_slug: '...',
40
+ project_slug: '...',
41
+ path: '/path/to/files', # Optional. We'll default to '.' when no value is provided.
42
+ )
43
+ ```
44
+
45
+ The `SENTRY_DSYM_PATH` environment variable may be used in place of the `dsym_path` parameter.
46
+
47
+ Further options:
48
+
49
+ - __type__: Optional. Only consider debug information files of the given type. By default, all types are considered. Valid options: 'dsym', 'elf', 'breakpad', 'pdb', 'pe', 'sourcebundle', 'bcsymbolmap'.
50
+ - __no_unwind__: Optional. Do not scan for stack unwinding information. Specify this flag for builds with disabled FPO, or when stackwalking occurs on the device. This usually excludes executables and dynamic libraries. They might still be uploaded, if they contain additional processable information (see other flags)".
51
+ - __no_debug__: Optional. Do not scan for debugging information. This will usually exclude debug companion files. They might still be uploaded, if they contain additional processable information (see other flags)".
52
+ - __no_sources__: Optional. "Do not scan for source information. This will usually exclude source bundle files. They might still be uploaded, if they contain additional processable information (see other flags)".
53
+ - __ids__: Optional. Search for specific debug identifiers.
54
+ - __require_all__: Optional. Errors if not all identifiers specified with --id could be found.
55
+ - __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.
56
+ - __derived_data__: Optional. Search for debug symbols in Xcode's derived data.
57
+ - __no_zips__: Do not search in ZIP files.
58
+ - __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.
59
+ - __no_reprocessing__: Optional. Do not trigger reprocessing after uploading.
60
+ - __force_foreground__: Optional. 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.
61
+ - __include_sources__: Optional. Include sources from the local file system and upload them as source bundles.
62
+ - __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.
63
+ - __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.
64
+
65
+
66
+ Or the soon to be deprecated way:
34
67
 
35
68
  ```ruby
36
69
  sentry_upload_dsym(
@@ -44,9 +77,7 @@ sentry_upload_dsym(
44
77
  )
45
78
  ```
46
79
 
47
- The `SENTRY_DSYM_PATH` environment variable may be used in place of the `dsym_path` parameter.
48
-
49
- #### Creating & Finalizing Releases
80
+ ### Creating & Finalizing Releases
50
81
 
51
82
  ```ruby
52
83
  sentry_create_release(
@@ -60,7 +91,7 @@ sentry_create_release(
60
91
  )
61
92
  ```
62
93
 
63
- #### Uploading Files & Sourcemaps
94
+ ### Uploading Files & Sourcemaps
64
95
 
65
96
  Useful for uploading build artifacts and JS sourcemaps for react-native apps built using fastlane.
66
97
 
@@ -93,7 +124,7 @@ sentry_upload_sourcemap(
93
124
  )
94
125
  ```
95
126
 
96
- #### Uploading Proguard Mapping File
127
+ ### Uploading Proguard Mapping File
97
128
 
98
129
  ```ruby
99
130
  sentry_upload_proguard(
@@ -106,19 +137,7 @@ sentry_upload_proguard(
106
137
  )
107
138
  ```
108
139
 
109
- #### Upload Debugging Information Files
110
-
111
- ```ruby
112
- sentry_upload_dif(
113
- api_key: '...', # Do not use if using auth_token
114
- auth_token: '...', # Do not use if using api_key
115
- org_slug: '...',
116
- project_slug: '...',
117
- path: '/path/to/files'
118
- )
119
- ```
120
-
121
- #### Associating commits
140
+ ### Associating commits
122
141
 
123
142
  Useful for telling Sentry which commits are associated with a release.
124
143
 
@@ -133,7 +152,7 @@ sentry_set_commits(
133
152
  )
134
153
  ```
135
154
 
136
- #### Create deploy
155
+ ### Create deploy
137
156
 
138
157
  Creates a new release deployment for a project on Sentry.
139
158
 
@@ -155,6 +174,14 @@ sentry_create_deploy(
155
174
  )
156
175
  ```
157
176
 
177
+ ### Checking the sentry-cli is installed
178
+
179
+ Useful for checking that the sentry-cli is installed and meets the minimum version requirements before starting to build your app in your lane.
180
+
181
+ ```ruby
182
+ sentry_check_cli_installed()
183
+ ```
184
+
158
185
  ## Issues and Feedback
159
186
 
160
187
  For any other issues and feedback about this plugin, please submit it to this repository.
@@ -0,0 +1,37 @@
1
+ module Fastlane
2
+ module Actions
3
+ class SentryCheckCliInstalledAction < Action
4
+ def self.run(params)
5
+ Helper::SentryHelper.check_sentry_cli!
6
+ UI.success("Successfully checked that sentry-cli is installed")
7
+ end
8
+
9
+ #####################################################
10
+ # @!group Documentation
11
+ #####################################################
12
+
13
+ def self.description
14
+ "Checks that sentry-cli with the correct version is installed"
15
+ end
16
+
17
+ def self.details
18
+ [
19
+ "This action checks that the senty-cli is installed and meets the mimum verson requirements.",
20
+ "You can use it at the start of your lane to ensure that sentry-cli is correctly installed."
21
+ ].join(" ")
22
+ end
23
+
24
+ def self.return_value
25
+ nil
26
+ end
27
+
28
+ def self.authors
29
+ ["matt-oakes"]
30
+ end
31
+
32
+ def self.is_supported?(platform)
33
+ true
34
+ end
35
+ end
36
+ end
37
+ end
@@ -17,7 +17,7 @@ module Fastlane
17
17
  "new",
18
18
  version
19
19
  ]
20
- command.push("--finalize") if params[:finalize].nil?
20
+ command.push("--finalize") if params[:finalize] == true
21
21
 
22
22
  Helper::SentryHelper.call_sentry_cli(command)
23
23
  UI.success("Successfully created release: #{version}")
@@ -8,6 +8,7 @@ module Fastlane
8
8
  Helper::SentryConfig.parse_api_params(params)
9
9
 
10
10
  path = params[:path]
11
+ path = '.' if path.nil?
11
12
 
12
13
  command = [
13
14
  "sentry-cli",
@@ -15,20 +16,20 @@ module Fastlane
15
16
  path
16
17
  ]
17
18
  command.push('--type').push(params[:type]) unless params[:type].nil?
18
- command.push('--no_unwind') unless params[:no_unwind].nil?
19
- command.push('--no_debug') unless params[:no_debug].nil?
20
- command.push('--no_sources') unless params[:no_sources].nil?
19
+ command.push('--no-unwind') unless params[:no_unwind].nil?
20
+ command.push('--no-debug') unless params[:no_debug].nil?
21
+ command.push('--no-sources') unless params[:no_sources].nil?
21
22
  command.push('--ids').push(params[:ids]) unless params[:ids].nil?
22
- command.push('--require_all') unless params[:require_all].nil?
23
- command.push('--symbol_maps').push(params[:symbol_maps]) unless params[:symbol_maps].nil?
24
- command.push('--derived_data') unless params[:derived_data].nil?
25
- command.push('--no_zips') unless params[:no_zips].nil?
26
- command.push('--info_plist').push(params[:info_plist]) unless params[:info_plist].nil?
27
- command.push('--no_reprocessing') unless params[:no_reprocessing].nil?
28
- command.push('--force_foreground') unless params[:force_foreground].nil?
29
- command.push('--include_sources') unless params[:include_sources].nil?
23
+ command.push('--require-all') unless params[:require_all].nil?
24
+ command.push('--symbol-maps').push(params[:symbol_maps]) unless params[:symbol_maps].nil?
25
+ command.push('--derived-data') unless params[:derived_data].nil?
26
+ command.push('--no-zips') unless params[:no_zips].nil?
27
+ command.push('--info-plist').push(params[:info_plist]) unless params[:info_plist].nil?
28
+ command.push('--no-reprocessing') unless params[:no_reprocessing].nil?
29
+ command.push('--force-foreground') unless params[:force_foreground].nil?
30
+ command.push('--include-sources') unless params[:include_sources].nil?
30
31
  command.push('--wait') unless params[:wait].nil?
31
- command.push('--upload_symbol_maps') unless params[:upload_symbol_maps].nil?
32
+ command.push('--upload-symbol-maps') unless params[:upload_symbol_maps].nil?
32
33
 
33
34
  Helper::SentryHelper.call_sentry_cli(command)
34
35
  UI.success("Successfully ran upload-dif")
@@ -52,7 +53,8 @@ module Fastlane
52
53
  def self.available_options
53
54
  Helper::SentryConfig.common_api_config_items + [
54
55
  FastlaneCore::ConfigItem.new(key: :path,
55
- description: "A path to search recursively for symbol files"),
56
+ description: "A path to search recursively for symbol files",
57
+ optional: true),
56
58
  FastlaneCore::ConfigItem.new(key: :type,
57
59
  short_option: "-t",
58
60
  description: "Only consider debug information files of the given \
@@ -36,7 +36,7 @@ module Fastlane
36
36
  def self.details
37
37
  [
38
38
  "This action allows you to upload the proguard mapping file to Sentry.",
39
- "See https://docs.sentry.io/cli/dif/proguard for more information."
39
+ "See https://docs.sentry.io/product/cli/dif/#proguard-mapping-upload for more information."
40
40
  ].join(" ")
41
41
  end
42
42
 
@@ -1,6 +1,6 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "1.9.0"
4
- CLI_VERSION = "1.63.1"
3
+ VERSION = "1.11.1"
4
+ CLI_VERSION = "1.72.0"
5
5
  end
6
6
  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.9.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-03 00:00:00.000000000 Z
11
+ date: 2022-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -89,6 +89,7 @@ files:
89
89
  - LICENSE
90
90
  - README.md
91
91
  - lib/fastlane/plugin/sentry.rb
92
+ - lib/fastlane/plugin/sentry/actions/sentry_check_cli_installed.rb
92
93
  - lib/fastlane/plugin/sentry/actions/sentry_create_deploy.rb
93
94
  - lib/fastlane/plugin/sentry/actions/sentry_create_release.rb
94
95
  - lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb