fastlane-plugin-sentry 0 → 0.1.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 +5 -5
- data/LICENSE +1 -1
- data/README.md +13 -256
- data/lib/fastlane/plugin/sentry/actions/sentry_upload_dsym.rb +137 -0
- data/lib/fastlane/plugin/sentry/helper/sentry_helper.rb +5 -80
- data/lib/fastlane/plugin/sentry/version.rb +1 -1
- data/lib/fastlane/plugin/sentry.rb +1 -1
- metadata +24 -56
- data/bin/sentry-cli-Darwin-universal +0 -0
- data/bin/sentry-cli-Linux-i686 +0 -0
- data/bin/sentry-cli-Linux-x86_64 +0 -0
- data/bin/sentry-cli-Windows-i686.exe +0 -0
- data/bin/sentry-cli-Windows-x86_64.exe +0 -0
- data/lib/fastlane/plugin/sentry/actions/sentry_check_cli_installed.rb +0 -41
- data/lib/fastlane/plugin/sentry/actions/sentry_create_deploy.rb +0 -98
- data/lib/fastlane/plugin/sentry/actions/sentry_create_release.rb +0 -77
- data/lib/fastlane/plugin/sentry/actions/sentry_debug_files_upload.rb +0 -162
- data/lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb +0 -75
- data/lib/fastlane/plugin/sentry/actions/sentry_set_commits.rb +0 -99
- data/lib/fastlane/plugin/sentry/actions/sentry_upload_build.rb +0 -132
- data/lib/fastlane/plugin/sentry/actions/sentry_upload_proguard.rb +0 -88
- data/lib/fastlane/plugin/sentry/actions/sentry_upload_sourcemap.rb +0 -209
- data/lib/fastlane/plugin/sentry/helper/sentry_config.rb +0 -100
metadata
CHANGED
|
@@ -1,37 +1,31 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-sentry
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
8
|
-
autorequire:
|
|
7
|
+
- Josh Holtz
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-06-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: rest-client
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
20
|
-
- - ">="
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: 1.1.4
|
|
19
|
+
version: 1.6.7
|
|
23
20
|
type: :runtime
|
|
24
21
|
prerelease: false
|
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
23
|
requirements:
|
|
27
24
|
- - "~>"
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
|
-
version:
|
|
30
|
-
- - ">="
|
|
31
|
-
- !ruby/object:Gem::Version
|
|
32
|
-
version: 1.1.4
|
|
26
|
+
version: 1.6.7
|
|
33
27
|
- !ruby/object:Gem::Dependency
|
|
34
|
-
name:
|
|
28
|
+
name: pry
|
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
|
36
30
|
requirements:
|
|
37
31
|
- - ">="
|
|
@@ -45,21 +39,7 @@ dependencies:
|
|
|
45
39
|
- !ruby/object:Gem::Version
|
|
46
40
|
version: '0'
|
|
47
41
|
- !ruby/object:Gem::Dependency
|
|
48
|
-
name:
|
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - ">="
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: 2.10.0
|
|
54
|
-
type: :development
|
|
55
|
-
prerelease: false
|
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
-
requirements:
|
|
58
|
-
- - ">="
|
|
59
|
-
- !ruby/object:Gem::Version
|
|
60
|
-
version: 2.10.0
|
|
61
|
-
- !ruby/object:Gem::Dependency
|
|
62
|
-
name: pry
|
|
42
|
+
name: bundler
|
|
63
43
|
requirement: !ruby/object:Gem::Requirement
|
|
64
44
|
requirements:
|
|
65
45
|
- - ">="
|
|
@@ -87,50 +67,36 @@ dependencies:
|
|
|
87
67
|
- !ruby/object:Gem::Version
|
|
88
68
|
version: '0'
|
|
89
69
|
- !ruby/object:Gem::Dependency
|
|
90
|
-
name:
|
|
70
|
+
name: fastlane
|
|
91
71
|
requirement: !ruby/object:Gem::Requirement
|
|
92
72
|
requirements:
|
|
93
|
-
- - "
|
|
73
|
+
- - "~>"
|
|
94
74
|
- !ruby/object:Gem::Version
|
|
95
|
-
version:
|
|
75
|
+
version: 1.93.0
|
|
96
76
|
type: :development
|
|
97
77
|
prerelease: false
|
|
98
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
99
79
|
requirements:
|
|
100
|
-
- - "
|
|
80
|
+
- - "~>"
|
|
101
81
|
- !ruby/object:Gem::Version
|
|
102
|
-
version:
|
|
103
|
-
description:
|
|
104
|
-
email:
|
|
82
|
+
version: 1.93.0
|
|
83
|
+
description:
|
|
84
|
+
email: josh@rokkincat.com
|
|
105
85
|
executables: []
|
|
106
86
|
extensions: []
|
|
107
87
|
extra_rdoc_files: []
|
|
108
88
|
files:
|
|
109
89
|
- LICENSE
|
|
110
90
|
- README.md
|
|
111
|
-
- bin/sentry-cli-Darwin-universal
|
|
112
|
-
- bin/sentry-cli-Linux-i686
|
|
113
|
-
- bin/sentry-cli-Linux-x86_64
|
|
114
|
-
- bin/sentry-cli-Windows-i686.exe
|
|
115
|
-
- bin/sentry-cli-Windows-x86_64.exe
|
|
116
91
|
- lib/fastlane/plugin/sentry.rb
|
|
117
|
-
- lib/fastlane/plugin/sentry/actions/
|
|
118
|
-
- lib/fastlane/plugin/sentry/actions/sentry_create_deploy.rb
|
|
119
|
-
- lib/fastlane/plugin/sentry/actions/sentry_create_release.rb
|
|
120
|
-
- lib/fastlane/plugin/sentry/actions/sentry_debug_files_upload.rb
|
|
121
|
-
- lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb
|
|
122
|
-
- lib/fastlane/plugin/sentry/actions/sentry_set_commits.rb
|
|
123
|
-
- lib/fastlane/plugin/sentry/actions/sentry_upload_build.rb
|
|
124
|
-
- lib/fastlane/plugin/sentry/actions/sentry_upload_proguard.rb
|
|
125
|
-
- lib/fastlane/plugin/sentry/actions/sentry_upload_sourcemap.rb
|
|
126
|
-
- lib/fastlane/plugin/sentry/helper/sentry_config.rb
|
|
92
|
+
- lib/fastlane/plugin/sentry/actions/sentry_upload_dsym.rb
|
|
127
93
|
- lib/fastlane/plugin/sentry/helper/sentry_helper.rb
|
|
128
94
|
- lib/fastlane/plugin/sentry/version.rb
|
|
129
|
-
homepage: https://github.com/getsentry/sentry-fastlane
|
|
95
|
+
homepage: https://github.com/getsentry/sentry-fastlane
|
|
130
96
|
licenses:
|
|
131
97
|
- MIT
|
|
132
98
|
metadata: {}
|
|
133
|
-
post_install_message:
|
|
99
|
+
post_install_message:
|
|
134
100
|
rdoc_options: []
|
|
135
101
|
require_paths:
|
|
136
102
|
- lib
|
|
@@ -138,15 +104,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
138
104
|
requirements:
|
|
139
105
|
- - ">="
|
|
140
106
|
- !ruby/object:Gem::Version
|
|
141
|
-
version:
|
|
107
|
+
version: '0'
|
|
142
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
109
|
requirements:
|
|
144
110
|
- - ">="
|
|
145
111
|
- !ruby/object:Gem::Version
|
|
146
112
|
version: '0'
|
|
147
113
|
requirements: []
|
|
148
|
-
|
|
149
|
-
|
|
114
|
+
rubyforge_project:
|
|
115
|
+
rubygems_version: 2.4.5
|
|
116
|
+
signing_key:
|
|
150
117
|
specification_version: 4
|
|
151
118
|
summary: Upload symbols to Sentry
|
|
152
119
|
test_files: []
|
|
120
|
+
has_rdoc:
|
|
Binary file
|
data/bin/sentry-cli-Linux-i686
DELETED
|
Binary file
|
data/bin/sentry-cli-Linux-x86_64
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
module Fastlane
|
|
2
|
-
module Actions
|
|
3
|
-
class SentryCheckCliInstalledAction < Action
|
|
4
|
-
def self.run(params)
|
|
5
|
-
Helper::SentryHelper.find_and_check_sentry_cli_path!(params)
|
|
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
|
-
|
|
36
|
-
def self.available_options
|
|
37
|
-
Helper::SentryConfig.common_cli_config_items
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
module Fastlane
|
|
2
|
-
module Actions
|
|
3
|
-
class SentryCreateDeployAction < Action
|
|
4
|
-
def self.run(params)
|
|
5
|
-
require 'shellwords'
|
|
6
|
-
|
|
7
|
-
Helper::SentryConfig.parse_api_params(params)
|
|
8
|
-
|
|
9
|
-
version = params[:version]
|
|
10
|
-
version = "#{params[:app_identifier]}@#{params[:version]}" if params[:app_identifier]
|
|
11
|
-
version = "#{version}+#{params[:build]}" if params[:build]
|
|
12
|
-
|
|
13
|
-
command = [
|
|
14
|
-
"releases",
|
|
15
|
-
"deploys",
|
|
16
|
-
version,
|
|
17
|
-
"new"
|
|
18
|
-
]
|
|
19
|
-
command.push('--env').push(params[:env]) unless params[:env].nil?
|
|
20
|
-
command.push('--name').push(params[:name]) unless params[:name].nil?
|
|
21
|
-
command.push('--url').push(params[:deploy_url]) unless params[:deploy_url].nil?
|
|
22
|
-
command.push('--started').push(params[:started]) unless params[:started].nil?
|
|
23
|
-
command.push('--finished').push(params[:finished]) unless params[:finished].nil?
|
|
24
|
-
command.push('--time').push(params[:time]) unless params[:time].nil?
|
|
25
|
-
|
|
26
|
-
Helper::SentryHelper.call_sentry_cli(params, command)
|
|
27
|
-
UI.success("Successfully created deploy: #{version}")
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
#####################################################
|
|
31
|
-
# @!group Documentation
|
|
32
|
-
#####################################################
|
|
33
|
-
|
|
34
|
-
def self.description
|
|
35
|
-
"Creates a new release deployment for a project on Sentry"
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
def self.details
|
|
39
|
-
[
|
|
40
|
-
"This action allows you to associate deploys to releases for a project on Sentry.",
|
|
41
|
-
"See https://docs.sentry.io/product/cli/releases/#creating-deploys for more information."
|
|
42
|
-
].join(" ")
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
def self.available_options
|
|
46
|
-
Helper::SentryConfig.common_api_config_items + [
|
|
47
|
-
FastlaneCore::ConfigItem.new(key: :version,
|
|
48
|
-
description: "Release version to associate the deploy with on Sentry"),
|
|
49
|
-
FastlaneCore::ConfigItem.new(key: :app_identifier,
|
|
50
|
-
short_option: "-a",
|
|
51
|
-
env_name: "SENTRY_APP_IDENTIFIER",
|
|
52
|
-
description: "App Bundle Identifier, prepended with the version.\nFor example bundle@version",
|
|
53
|
-
optional: true),
|
|
54
|
-
FastlaneCore::ConfigItem.new(key: :build,
|
|
55
|
-
short_option: "-b",
|
|
56
|
-
description: "Release build to associate the deploy with on Sentry",
|
|
57
|
-
optional: true),
|
|
58
|
-
FastlaneCore::ConfigItem.new(key: :env,
|
|
59
|
-
short_option: "-e",
|
|
60
|
-
description: "Set the environment for this release. This argument is required. Values that make sense here would be 'production' or 'staging'",
|
|
61
|
-
optional: false),
|
|
62
|
-
FastlaneCore::ConfigItem.new(key: :name,
|
|
63
|
-
short_option: "-n",
|
|
64
|
-
description: "Optional human readable name for this deployment",
|
|
65
|
-
optional: true),
|
|
66
|
-
FastlaneCore::ConfigItem.new(key: :deploy_url,
|
|
67
|
-
description: "Optional URL that points to the deployment",
|
|
68
|
-
optional: true),
|
|
69
|
-
FastlaneCore::ConfigItem.new(key: :started,
|
|
70
|
-
description: "Optional unix timestamp when the deployment started",
|
|
71
|
-
is_string: false,
|
|
72
|
-
optional: true),
|
|
73
|
-
FastlaneCore::ConfigItem.new(key: :finished,
|
|
74
|
-
description: "Optional unix timestamp when the deployment finished",
|
|
75
|
-
is_string: false,
|
|
76
|
-
optional: true),
|
|
77
|
-
FastlaneCore::ConfigItem.new(key: :time,
|
|
78
|
-
short_option: "-t",
|
|
79
|
-
description: "Optional deployment duration in seconds. This can be specified alternatively to `started` and `finished`",
|
|
80
|
-
is_string: false,
|
|
81
|
-
optional: true)
|
|
82
|
-
]
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
def self.return_value
|
|
86
|
-
nil
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
def self.authors
|
|
90
|
-
["denrase"]
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
def self.is_supported?(platform)
|
|
94
|
-
true
|
|
95
|
-
end
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
|
-
end
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
module Fastlane
|
|
2
|
-
module Actions
|
|
3
|
-
class SentryCreateReleaseAction < Action
|
|
4
|
-
def self.run(params)
|
|
5
|
-
require 'shellwords'
|
|
6
|
-
|
|
7
|
-
Helper::SentryConfig.parse_api_params(params)
|
|
8
|
-
|
|
9
|
-
version = params[:version]
|
|
10
|
-
version = "#{params[:app_identifier]}@#{params[:version]}" if params[:app_identifier]
|
|
11
|
-
version = "#{version}+#{params[:build]}" if params[:build]
|
|
12
|
-
|
|
13
|
-
command = [
|
|
14
|
-
"releases",
|
|
15
|
-
"new",
|
|
16
|
-
version
|
|
17
|
-
]
|
|
18
|
-
command.push("--finalize") if params[:finalize] == true
|
|
19
|
-
command.push("--url").push(params[:release_url]) unless params[:release_url].nil?
|
|
20
|
-
|
|
21
|
-
Helper::SentryHelper.call_sentry_cli(params, command)
|
|
22
|
-
UI.success("Successfully created release: #{version}")
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
#####################################################
|
|
26
|
-
# @!group Documentation
|
|
27
|
-
#####################################################
|
|
28
|
-
|
|
29
|
-
def self.description
|
|
30
|
-
"Create new releases for a project on Sentry"
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
def self.details
|
|
34
|
-
[
|
|
35
|
-
"This action allows you to create new releases for a project on Sentry.",
|
|
36
|
-
"See https://docs.sentry.io/learn/cli/releases/#creating-releases for more information."
|
|
37
|
-
].join(" ")
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def self.available_options
|
|
41
|
-
Helper::SentryConfig.common_api_config_items + [
|
|
42
|
-
FastlaneCore::ConfigItem.new(key: :version,
|
|
43
|
-
description: "Release version to create on Sentry"),
|
|
44
|
-
FastlaneCore::ConfigItem.new(key: :app_identifier,
|
|
45
|
-
short_option: "-a",
|
|
46
|
-
env_name: "SENTRY_APP_IDENTIFIER",
|
|
47
|
-
description: "App Bundle Identifier, prepended to version",
|
|
48
|
-
optional: true),
|
|
49
|
-
FastlaneCore::ConfigItem.new(key: :build,
|
|
50
|
-
short_option: "-b",
|
|
51
|
-
description: "Release build to create on Sentry",
|
|
52
|
-
optional: true),
|
|
53
|
-
FastlaneCore::ConfigItem.new(key: :finalize,
|
|
54
|
-
description: "Whether to finalize the release. If not provided or false, the release can be finalized using the finalize_release action",
|
|
55
|
-
default_value: false,
|
|
56
|
-
is_string: false,
|
|
57
|
-
optional: true),
|
|
58
|
-
FastlaneCore::ConfigItem.new(key: :release_url,
|
|
59
|
-
description: "Optional URL to the release for information purposes",
|
|
60
|
-
optional: true)
|
|
61
|
-
]
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
def self.return_value
|
|
65
|
-
nil
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
def self.authors
|
|
69
|
-
["wschurman"]
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
def self.is_supported?(platform)
|
|
73
|
-
true
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
end
|
|
77
|
-
end
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
module Fastlane
|
|
2
|
-
module Actions
|
|
3
|
-
class SentryDebugFilesUploadAction < Action
|
|
4
|
-
def self.run(params)
|
|
5
|
-
require 'shellwords'
|
|
6
|
-
|
|
7
|
-
Helper::SentryConfig.parse_api_params(params)
|
|
8
|
-
|
|
9
|
-
paths = params[:path]
|
|
10
|
-
# Use DSYM_OUTPUT_PATH from fastlane context if available, otherwise default to current directory
|
|
11
|
-
if paths.nil?
|
|
12
|
-
dsym_path = Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH]
|
|
13
|
-
if dsym_path && !dsym_path.to_s.empty?
|
|
14
|
-
paths = [dsym_path]
|
|
15
|
-
else
|
|
16
|
-
paths = ['.']
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
command = [
|
|
21
|
-
"debug-files",
|
|
22
|
-
"upload"
|
|
23
|
-
]
|
|
24
|
-
command += paths
|
|
25
|
-
|
|
26
|
-
command.push('--type').push(params[:type]) unless params[:type].nil?
|
|
27
|
-
command.push('--no-unwind') unless params[:no_unwind].nil?
|
|
28
|
-
command.push('--no-debug') unless params[:no_debug].nil?
|
|
29
|
-
command.push('--no-sources') unless params[:no_sources].nil?
|
|
30
|
-
command.push('--id').push(params[:id]) unless params[:id].nil?
|
|
31
|
-
command.push('--require-all') unless params[:require_all].nil?
|
|
32
|
-
command.push('--symbol-maps').push(params[:symbol_maps]) unless params[:symbol_maps].nil?
|
|
33
|
-
command.push('--derived-data') unless params[:derived_data].nil?
|
|
34
|
-
command.push('--no-zips') unless params[:no_zips].nil?
|
|
35
|
-
command.push('--no-upload') unless params[:no_upload].nil?
|
|
36
|
-
command.push('--include-sources') if params[:include_sources] == true
|
|
37
|
-
command.push('--wait') unless params[:wait].nil?
|
|
38
|
-
command.push('--wait-for').push(params[:wait_for]) unless params[:wait_for].nil?
|
|
39
|
-
command.push('--il2cpp-mapping') unless params[:il2cpp_mapping].nil?
|
|
40
|
-
|
|
41
|
-
Helper::SentryHelper.call_sentry_cli(params, command)
|
|
42
|
-
UI.success("Successfully ran debug-files upload")
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
#####################################################
|
|
46
|
-
# @!group Documentation
|
|
47
|
-
#####################################################
|
|
48
|
-
|
|
49
|
-
def self.description
|
|
50
|
-
"Upload debugging information files."
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
def self.details
|
|
54
|
-
[
|
|
55
|
-
"Files can be uploaded using the `debug-files upload` command. This command will scan a given folder recursively for files and upload them to Sentry.",
|
|
56
|
-
"See https://docs.sentry.io/product/cli/dif/#uploading-files for more information."
|
|
57
|
-
].join(" ")
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
def self.available_options
|
|
61
|
-
Helper::SentryConfig.common_api_config_items + [
|
|
62
|
-
FastlaneCore::ConfigItem.new(key: :path,
|
|
63
|
-
description: "Path or an array of paths to search recursively for symbol files. Defaults to DSYM_OUTPUT_PATH from fastlane context if available, otherwise '.' (current directory)",
|
|
64
|
-
type: Array,
|
|
65
|
-
optional: true),
|
|
66
|
-
FastlaneCore::ConfigItem.new(key: :type,
|
|
67
|
-
short_option: "-t",
|
|
68
|
-
description: "Only consider debug information files of the given \
|
|
69
|
-
type. By default, all types are considered",
|
|
70
|
-
optional: true,
|
|
71
|
-
verify_block: proc do |value|
|
|
72
|
-
UI.user_error! "Invalid value '#{value}'" unless ['bcsymbolmap', 'breakpad', 'dsym', 'elf', 'jvm', 'pdb', 'pe', 'portablepdb', 'sourcebundle', 'wasm'].include? value
|
|
73
|
-
end),
|
|
74
|
-
FastlaneCore::ConfigItem.new(key: :no_unwind,
|
|
75
|
-
description: "Do not scan for stack unwinding information. Specify \
|
|
76
|
-
this flag for builds with disabled FPO, or when \
|
|
77
|
-
stackwalking occurs on the device. This usually \
|
|
78
|
-
excludes executables and dynamic libraries. They might \
|
|
79
|
-
still be uploaded, if they contain additional \
|
|
80
|
-
processable information (see other flags)",
|
|
81
|
-
is_string: false,
|
|
82
|
-
optional: true),
|
|
83
|
-
FastlaneCore::ConfigItem.new(key: :no_debug,
|
|
84
|
-
description: "Do not scan for debugging information. This will \
|
|
85
|
-
usually exclude debug companion files. They might \
|
|
86
|
-
still be uploaded, if they contain additional \
|
|
87
|
-
processable information (see other flags)",
|
|
88
|
-
conflicting_options: [:no_unwind],
|
|
89
|
-
is_string: false,
|
|
90
|
-
optional: true),
|
|
91
|
-
FastlaneCore::ConfigItem.new(key: :no_sources,
|
|
92
|
-
description: "Do not scan for source information. This will \
|
|
93
|
-
usually exclude source bundle files. They might \
|
|
94
|
-
still be uploaded, if they contain additional \
|
|
95
|
-
processable information (see other flags)",
|
|
96
|
-
is_string: false,
|
|
97
|
-
optional: true),
|
|
98
|
-
FastlaneCore::ConfigItem.new(key: :id,
|
|
99
|
-
description: "Search for specific debug identifiers",
|
|
100
|
-
optional: true),
|
|
101
|
-
FastlaneCore::ConfigItem.new(key: :require_all,
|
|
102
|
-
description: "Errors if not all identifiers specified with --id could be found",
|
|
103
|
-
is_string: false,
|
|
104
|
-
optional: true),
|
|
105
|
-
FastlaneCore::ConfigItem.new(key: :symbol_maps,
|
|
106
|
-
description: "Optional path to BCSymbolMap files which are used to \
|
|
107
|
-
resolve hidden symbols in dSYM files downloaded from \
|
|
108
|
-
iTunes Connect. This requires the dsymutil tool to be \
|
|
109
|
-
available",
|
|
110
|
-
optional: true),
|
|
111
|
-
FastlaneCore::ConfigItem.new(key: :derived_data,
|
|
112
|
-
description: "Search for debug symbols in Xcode's derived data",
|
|
113
|
-
is_string: false,
|
|
114
|
-
optional: true),
|
|
115
|
-
FastlaneCore::ConfigItem.new(key: :no_zips,
|
|
116
|
-
description: "Do not search in ZIP files",
|
|
117
|
-
is_string: false,
|
|
118
|
-
optional: true),
|
|
119
|
-
FastlaneCore::ConfigItem.new(key: :no_upload,
|
|
120
|
-
description: "Disable the actual upload. This runs all steps for the \
|
|
121
|
-
processing but does not trigger the upload. This is useful if \
|
|
122
|
-
you just want to verify the setup or skip the upload in tests",
|
|
123
|
-
is_string: false,
|
|
124
|
-
optional: true),
|
|
125
|
-
FastlaneCore::ConfigItem.new(key: :include_sources,
|
|
126
|
-
description: "Include sources from the local file system and upload \
|
|
127
|
-
them as source bundles",
|
|
128
|
-
is_string: false,
|
|
129
|
-
optional: true),
|
|
130
|
-
FastlaneCore::ConfigItem.new(key: :wait,
|
|
131
|
-
description: "Wait for the server to fully process uploaded files. Errors \
|
|
132
|
-
can only be displayed if --wait or --wait-for is specified, but this will \
|
|
133
|
-
significantly slow down the upload process",
|
|
134
|
-
is_string: false,
|
|
135
|
-
optional: true),
|
|
136
|
-
FastlaneCore::ConfigItem.new(key: :wait_for,
|
|
137
|
-
description: "Wait for the server to fully process uploaded files, but at most \
|
|
138
|
-
for the given number of seconds. Errors can only be displayed if --wait or \
|
|
139
|
-
--wait-for is specified, but this will significantly slow down the upload process",
|
|
140
|
-
type: Integer,
|
|
141
|
-
optional: true),
|
|
142
|
-
FastlaneCore::ConfigItem.new(key: :il2cpp_mapping,
|
|
143
|
-
description: "Compute il2cpp line mappings and upload them along with sources",
|
|
144
|
-
is_string: false,
|
|
145
|
-
optional: true)
|
|
146
|
-
]
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
def self.return_value
|
|
150
|
-
nil
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
def self.authors
|
|
154
|
-
["denrase"]
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
def self.is_supported?(platform)
|
|
158
|
-
true
|
|
159
|
-
end
|
|
160
|
-
end
|
|
161
|
-
end
|
|
162
|
-
end
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
module Fastlane
|
|
2
|
-
module Actions
|
|
3
|
-
class SentryFinalizeReleaseAction < Action
|
|
4
|
-
def self.run(params)
|
|
5
|
-
require 'shellwords'
|
|
6
|
-
|
|
7
|
-
Helper::SentryConfig.parse_api_params(params)
|
|
8
|
-
|
|
9
|
-
version = params[:version]
|
|
10
|
-
version = "#{params[:app_identifier]}@#{params[:version]}" if params[:app_identifier]
|
|
11
|
-
version = "#{version}+#{params[:build]}" if params[:build]
|
|
12
|
-
|
|
13
|
-
command = [
|
|
14
|
-
"releases",
|
|
15
|
-
"finalize",
|
|
16
|
-
version
|
|
17
|
-
]
|
|
18
|
-
command.push("--url").push(params[:release_url]) unless params[:release_url].nil?
|
|
19
|
-
command.push("--released").push(params[:released]) unless params[:released].nil?
|
|
20
|
-
|
|
21
|
-
Helper::SentryHelper.call_sentry_cli(params, command)
|
|
22
|
-
UI.success("Successfully finalized release: #{version}")
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
#####################################################
|
|
26
|
-
# @!group Documentation
|
|
27
|
-
#####################################################
|
|
28
|
-
|
|
29
|
-
def self.description
|
|
30
|
-
"Finalize a release for a project on Sentry"
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
def self.details
|
|
34
|
-
[
|
|
35
|
-
"This action allows you to finalize releases created for a project on Sentry.",
|
|
36
|
-
"See https://docs.sentry.io/learn/cli/releases/#finalizing-releases for more information."
|
|
37
|
-
].join(" ")
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def self.available_options
|
|
41
|
-
Helper::SentryConfig.common_api_config_items + [
|
|
42
|
-
FastlaneCore::ConfigItem.new(key: :version,
|
|
43
|
-
description: "Release version to finalize on Sentry"),
|
|
44
|
-
FastlaneCore::ConfigItem.new(key: :app_identifier,
|
|
45
|
-
short_option: "-a",
|
|
46
|
-
env_name: "SENTRY_APP_IDENTIFIER",
|
|
47
|
-
description: "App Bundle Identifier, prepended to version",
|
|
48
|
-
optional: true),
|
|
49
|
-
FastlaneCore::ConfigItem.new(key: :build,
|
|
50
|
-
short_option: "-b",
|
|
51
|
-
description: "Release build to finalize on Sentry",
|
|
52
|
-
optional: true),
|
|
53
|
-
FastlaneCore::ConfigItem.new(key: :release_url,
|
|
54
|
-
description: "Optional URL to the release for information purposes",
|
|
55
|
-
optional: true),
|
|
56
|
-
FastlaneCore::ConfigItem.new(key: :released,
|
|
57
|
-
description: "Set the release time. Defaults to the current time if not provided",
|
|
58
|
-
optional: true)
|
|
59
|
-
]
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
def self.return_value
|
|
63
|
-
nil
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
def self.authors
|
|
67
|
-
["wschurman"]
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
def self.is_supported?(platform)
|
|
71
|
-
true
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
end
|