fastlane-plugin-sentry 1.14.0 → 1.16.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: 745bf8fab50902d7534e3092ce91c6160dc271c719e2047b205c66fd946a3847
4
- data.tar.gz: f6d4bee0a4f71a848c39ae0f02fa061955f87105105fea93849c385789166981
3
+ metadata.gz: '082a8a94716c081d140251f2aa2213f7cfe00736db89974f5e988520c1e79bb3'
4
+ data.tar.gz: 32e1a27f3f374c70e3a398610a6921c4bc18dc1e5ef04786aab11c43645727d6
5
5
  SHA512:
6
- metadata.gz: 8a3896dc4e7981b4b5a5060ba59ba6c3bec0e623efe8d2165a5608dd39770fab39c9978e3c4508806360fe1b8fa3cd7b7e9b9ac69b395f2c8c60111614dc6eef
7
- data.tar.gz: 400ebc2a4d747aa9e8ca4ef4b80adc3744e0a6ee007a721009ba257feaa371cdf9122d5044f15061b78aa1119a13562a7bf27f63917d6d9f6ad0794e8401355f
6
+ metadata.gz: f3d32e8d4905396df49177ec456d6a6372dd67e3cf345b2c16c0afd9256ca1ce5da6b2e9f945a4425dc139ef2f6da371068310b067a7474ab963c1f5b8bcf16e
7
+ data.tar.gz: a625410b57aaf0a6f93944ba3f9ed7f7d6f483fd65c6652a5c5d298a0d66c172719283d3b22fa402e79256d128daaaa0c4f60dcf59dda6291f6405a799ad9891
data/README.md CHANGED
@@ -50,7 +50,7 @@ A subset of actions provided by the CLI: https://docs.sentry.io/learn/cli/
50
50
 
51
51
  ### Authentication & Configuration
52
52
 
53
- `auth_token` is the preferred way to authentication method with Sentry. This can be obtained on https://sentry.io/api/.
53
+ `auth_token` is the preferred authentication method with Sentry. This can be obtained on https://sentry.io/api/.
54
54
  `api_key` still works but will eventually become deprecated. This can be obtained through the settings of your project.
55
55
  Also note that as of version `1.2.0` you no longer have to provide the required parameters, we will try to fallback to your `.sentryclirc` config file if possible.
56
56
 
@@ -64,7 +64,7 @@ sentry_upload_dif(
64
64
  auth_token: '...', # Do not use if using api_key
65
65
  org_slug: '...',
66
66
  project_slug: '...',
67
- path: '/path/to/files', # Optional. We'll default to '.' when no value is provided.
67
+ path: '/path/to/files', # Optional. Defaults to '.' when no value is provided. Path(s) can be a string, a comma-separated string, or an array of strings.
68
68
  )
69
69
  ```
70
70
 
@@ -121,20 +121,6 @@ sentry_create_release(
121
121
 
122
122
  Useful for uploading build artifacts and JS sourcemaps for react-native apps built using fastlane.
123
123
 
124
- ```ruby
125
- sentry_upload_file(
126
- api_key: '...',
127
- auth_token: '...',
128
- org_slug: '...',
129
- project_slug: '...',
130
- version: '...',
131
- app_identifier: '...', # pass in the bundle_identifer of your app
132
- build: '...', # Optionally pass in the build number of your app
133
- dist: '...', # optional distribution of the release usually the buildnumber
134
- file: 'main.jsbundle' # file to upload
135
- )
136
- ```
137
-
138
124
  ```ruby
139
125
  sentry_upload_sourcemap(
140
126
  api_key: '...',
@@ -145,7 +131,7 @@ sentry_upload_sourcemap(
145
131
  app_identifier: '...', # pass in the bundle_identifer of your app
146
132
  build: '...', # Optionally pass in the build number of your app
147
133
  dist: '...', # optional distribution of the release usually the buildnumber
148
- sourcemap: 'main.jsbundle.map', # Sourcemap(s) to upload. Path(s) can be a comma-separated string or an array of strings.
134
+ sourcemap: ['main.jsbundle', 'main.jsbundle.map'], # Sourcemap(s) to upload. Path(s) can be a comma-separated string or an array of strings.
149
135
  rewrite: true
150
136
  )
151
137
  ```
@@ -175,6 +161,7 @@ sentry_set_commits(
175
161
  auto: false, # enable completely automated commit management
176
162
  clear: false, # clear all current commits from the release
177
163
  commit: '...', # commit spec, see `sentry-cli releases help set-commits` for more information
164
+ ignore_missing: false # Optional boolean value: When the flag is set and the previous release commit was not found in the repository, will create a release with the default commits count (or the one specified with `--initial-depth`) instead of failing the command.
178
165
  )
179
166
  ```
180
167
 
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -18,6 +18,7 @@ module Fastlane
18
18
 
19
19
  command.push('--auto') if params[:auto]
20
20
  command.push('--clear') if params[:clear]
21
+ command.push('--ignore-missing') if params[:ignore_missing]
21
22
  command.push('--commit').push(params[:commit]) unless params[:commit].nil?
22
23
 
23
24
  Helper::SentryHelper.call_sentry_cli(params, command)
@@ -62,7 +63,11 @@ module Fastlane
62
63
  default_value: false),
63
64
  FastlaneCore::ConfigItem.new(key: :commit,
64
65
  description: "Commit spec, see `sentry-cli releases help set-commits` for more information",
65
- optional: true)
66
+ optional: true),
67
+ FastlaneCore::ConfigItem.new(key: :ignore_missing,
68
+ description: "When enabled, if the previous release commit was not found in the repository, will create a release with the default commits count (or the one specified with `--initial-depth`) instead of failing the command",
69
+ is_string: false,
70
+ default_value: false)
66
71
  ]
67
72
  end
68
73
 
@@ -6,13 +6,14 @@ module Fastlane
6
6
 
7
7
  Helper::SentryConfig.parse_api_params(params)
8
8
 
9
- path = params[:path]
10
- path = '.' if path.nil?
9
+ paths = params[:path]
10
+ paths = ['.'] if paths.nil?
11
11
 
12
12
  command = [
13
- "upload-dif",
14
- path
13
+ "upload-dif"
15
14
  ]
15
+ command += paths
16
+
16
17
  command.push('--type').push(params[:type]) unless params[:type].nil?
17
18
  command.push('--no-unwind') unless params[:no_unwind].nil?
18
19
  command.push('--no-debug') unless params[:no_debug].nil?
@@ -51,7 +52,8 @@ module Fastlane
51
52
  def self.available_options
52
53
  Helper::SentryConfig.common_api_config_items + [
53
54
  FastlaneCore::ConfigItem.new(key: :path,
54
- description: "A path to search recursively for symbol files",
55
+ description: "Path or an array of paths to search recursively for symbol files",
56
+ type: Array,
55
57
  optional: true),
56
58
  FastlaneCore::ConfigItem.new(key: :type,
57
59
  short_option: "-t",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "1.14.0"
3
+ VERSION = "1.16.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.14.0
4
+ version: 1.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-05 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os