fastlane-plugin-emerge 0.5.1 → 0.6.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f84892f800a40e25a4b867e178edb8619c24864a4b9ff9670470270ea227969c
|
4
|
+
data.tar.gz: b8749428f0e193bf816b8dae1dc9e3f10ace668eb86ab3e1e6992d61438995cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93d799a5679ba33a333028db9f30217da3742ca2af4cc24c4c792a1c3c06122ee3bc2f79c79ff0f5f2306513a079ab280f586204618deeb5a50fa6953eae363b
|
7
|
+
data.tar.gz: 86718d6dc29e96ce1fbe78d6198dfcb5dde0fcdadadd63d6f87d1040672fa3d8f73c4171f059615afca40536a217b2f2b283f6cb8262aa68be07f73071538775
|
@@ -24,6 +24,7 @@ module Fastlane
|
|
24
24
|
gitlab_project_id = params[:gitlab_project_id]
|
25
25
|
build_type = params[:build_type]
|
26
26
|
order_file_version = params[:order_file_version]
|
27
|
+
config_path = params[:config_path]
|
27
28
|
|
28
29
|
if file_path == nil || !File.exist?(file_path)
|
29
30
|
UI.error("Invalid input file")
|
@@ -46,6 +47,7 @@ module Fastlane
|
|
46
47
|
FileUtils.cp(l, linkmap_folder)
|
47
48
|
end
|
48
49
|
end
|
50
|
+
copy_config(config_path, "#{d}/archive.xcarchive")
|
49
51
|
FileUtils.cp_r(file_path, application_folder)
|
50
52
|
copy_dsyms("#{absolute_path.dirname}/*.dsym", dsym_folder)
|
51
53
|
copy_dsyms("#{absolute_path.dirname}/*/*.dsym", dsym_folder)
|
@@ -67,6 +69,7 @@ module Fastlane
|
|
67
69
|
FileUtils.cp(l, linkmap_folder)
|
68
70
|
end
|
69
71
|
end
|
72
|
+
copy_config(config_path, file_path)
|
70
73
|
Actions::ZipAction.run(
|
71
74
|
path: file_path,
|
72
75
|
output_path: zip_path,
|
@@ -136,6 +139,13 @@ module Fastlane
|
|
136
139
|
end
|
137
140
|
end
|
138
141
|
|
142
|
+
def self.copy_config(config_path, tmp_dir)
|
143
|
+
if config_path != nil && File.exist?(config_path)
|
144
|
+
emerge_config_path = "#{tmp_dir}/emerge_config.yaml"
|
145
|
+
FileUtils.cp(config_path, emerge_config_path)
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
139
149
|
def self.description
|
140
150
|
"Fastlane plugin for Emerge"
|
141
151
|
end
|
@@ -182,7 +192,7 @@ module Fastlane
|
|
182
192
|
optional: true,
|
183
193
|
type: String),
|
184
194
|
FastlaneCore::ConfigItem.new(key: :base_sha,
|
185
|
-
description: "The git SHA of the base build
|
195
|
+
description: "The git SHA of the base build",
|
186
196
|
optional: true,
|
187
197
|
type: String),
|
188
198
|
FastlaneCore::ConfigItem.new(key: :build_id,
|
@@ -211,6 +221,10 @@ module Fastlane
|
|
211
221
|
description: "Version of the order file to download",
|
212
222
|
optional: true,
|
213
223
|
type: String),
|
224
|
+
FastlaneCore::ConfigItem.new(key: :config_path,
|
225
|
+
description: "Path to Emerge config path",
|
226
|
+
optional: true,
|
227
|
+
type: String),
|
214
228
|
]
|
215
229
|
end
|
216
230
|
|
@@ -16,13 +16,20 @@ module Fastlane
|
|
16
16
|
decompressed = IO.popen(['gunzip', '-c', f.path]).read
|
17
17
|
IO.write(params[:output_path], decompressed)
|
18
18
|
end
|
19
|
+
return 200
|
19
20
|
when 401
|
20
21
|
UI.error("Unauthorized")
|
22
|
+
when 403
|
23
|
+
UI.message("No order file found, this is expected for the first build of an app_id/version.")
|
24
|
+
# The API will return a 403 when no order file is found, but we change that to a 200 for the
|
25
|
+
# fastlane plugin because this is an expected state for a CI integraion.
|
26
|
+
return 200
|
21
27
|
else
|
22
28
|
UI.error("Failed to download order file code: #{resp.status}")
|
23
29
|
end
|
24
|
-
|
30
|
+
resp.status
|
25
31
|
end
|
32
|
+
|
26
33
|
def self.description
|
27
34
|
"Fastlane plugin to download order files"
|
28
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-emerge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emerge Tools, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|