59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
# File 'lib/fastlane-ext/upload_dsym.rb', line 59
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :kind,
env_name: 'FL_UPLOAD_DSYM_KIND',
description: "Origin of the dSYM ('beta', 'release', etc)",
is_string: true,
default_value: 'release',
verify_block: proc do |value|
UI.user_error!("No kind for UploadDsymAction given, pass using `kind: 'kind'`") unless value && !value.empty?
end),
FastlaneCore::ConfigItem.new(key: :version,
env_name: 'FL_UPLOAD_DSYM_VERSION',
description: "Version of a constructed .ipa. (Build number '321', App version '1.2.3', etc.)",
is_string: true,
default_value: ENV['APP_RELEASE_BUILD_NUMBER'],
verify_block: proc do |value|
UI.user_error!("No version for UploadDsymAction given, pass using `version: 'version'`") unless value && !value.empty?
end),
FastlaneCore::ConfigItem.new(key: :dSYM,
env_name: 'FL_UPLOAD_DSYM_PATH',
description: 'Archived dSYM files',
is_string: true,
default_value: ENV['DSYM_OUTPUT_PATH'] || Dir['*.dSYM.zip'].first,
verify_block: proc do |value|
UI.user_error!("Couldn't find dSYM file at path '#{value}'") unless File.exist?(value)
end),
FastlaneCore::ConfigItem.new(key: :region,
env_name: 'FL_UPLOAD_DSYM_REGION',
description: 'Region for S3 or Spaces',
is_string: true,
default_value: 'ams3',
verify_block: proc do |value|
UI.user_error!("No region for UploadDsymAction given, pass using `region: 'region'`") unless value && !value.empty?
end),
FastlaneCore::ConfigItem.new(key: :endpoint,
env_name: 'FL_UPLOAD_DSYM_ENDPOINT',
description: 'Endpoint for S3 or Spaces',
is_string: true,
default_value: 'https://ams3.digitaloceanspaces.com',
verify_block: proc do |value|
UI.user_error!("No Endpoint for UploadDsymAction given, pass using `endpoint: 'endpoint'`") unless value && !value.empty?
end),
FastlaneCore::ConfigItem.new(key: :access_key,
env_name: 'FL_UPLOAD_DSYM_S3_ACCESS_KEY',
description: 'Access Key for S3 or Spaces',
is_string: true,
verify_block: proc do |value|
raise "No Access Key for UploadDsymAction given, pass using `access_key: 'access_key'`".red unless value && !value.empty?
end),
FastlaneCore::ConfigItem.new(key: :secret_access_key,
env_name: 'FL_UPLOAD_DSYM_S3_SECRET_ACCESS_KEY',
description: 'Secret Access Key for S3 or Spaces',
is_string: true,
verify_block: proc do |value|
raise "No Secret Access Key for UploadDsymAction given, pass using `secret_access_key: 'secret_access_key'`".red unless value && !value.empty?
end),
FastlaneCore::ConfigItem.new(key: :bucket,
env_name: 'FL_UPLOAD_DSYM_S3_BUCKET',
description: 'Bucket for S3 or Spaces',
is_string: true,
default_value: 'default',
verify_block: proc do |value|
raise "No Bucket for UploadToS3Action given, pass using `bucket: 'bucket'`".red unless value && !value.empty?
end),
FastlaneCore::ConfigItem.new(key: :space,
env_name: 'FL_UPLOAD_DSYM_SPACE',
description: 'Digital Ocean Space',
is_string: true,
default_value: 'project-dsym'),
FastlaneCore::ConfigItem.new(key: :acl,
env_name: 'FL_UPLOAD_DSYM_S3_ACL',
description: 'Access level for the file',
is_string: true,
default_value: 'private',
verify_block: proc do |value|
raise "No Bucket for UploadToS3Action given, pass using `bucket: 'bucket'`".red unless value && !value.empty?
end)
]
end
|