fastlane-plugin-emerge 0.5.1 → 0.6.2

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: 498e4fcfd1dfcae9df9fddd6b7eeee5225d031ed4ec49a79ddbb1fbb45c9599c
4
- data.tar.gz: 878861b1e1d4569bee5171f598e97a4dbcfa7b0ef5518c64a89446a6d66befa0
3
+ metadata.gz: 1e1447dca3b388a05160397929cd49bd402f82c97cce36e3118b5fc8a91dc0b8
4
+ data.tar.gz: 94f2deab73ca67cb4520c7b2958a003106b07b16c32abd614613c0f0d1b6c13c
5
5
  SHA512:
6
- metadata.gz: a41d64017cd4a2fce676ccd04928f704c65aa62852213ac5675f93a6dd88fe49cf5f3221956dd15fb8b392c57ccbd007723787475c85883c811055bb11383260
7
- data.tar.gz: d132f4dd65ee4ee6695d232b6b069fa78e27db9ca96df239fed0a2e762b0cb89ea748821ddeaecb0637720a2d367a7dd9883fa9dc36d5e30a537eb781f712589
6
+ metadata.gz: e747d8c426f8d873e7a89dc30dce0c03e24a8dbf9e697aab6f7a3b66d0de7aeef0308518a67427e0a91ac7a8d7192385e7404449607bcbf7d77d9b58f76d5260
7
+ data.tar.gz: dd5874a90ad2edfdf97a99eda6736ad9e442a75fdc9e204c7ef2e116db68801175dbe32d7bf98c00f8e401b1381012131ee2133bd3775c1703551843ef77eed4
@@ -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,19 @@ module Fastlane
136
139
  end
137
140
  end
138
141
 
142
+ def self.copy_config(config_path, tmp_dir)
143
+ return unless config_path != nil
144
+
145
+ expanded_path = File.expand_path(config_path)
146
+ if not File.exist?(expanded_path)
147
+ UI.error("No config file found at path '#{expanded_path}'.\nUploading without config file")
148
+ return
149
+ end
150
+
151
+ emerge_config_path = "#{tmp_dir}/emerge_config.yaml"
152
+ FileUtils.cp(expanded_path, emerge_config_path)
153
+ end
154
+
139
155
  def self.description
140
156
  "Fastlane plugin for Emerge"
141
157
  end
@@ -182,7 +198,7 @@ module Fastlane
182
198
  optional: true,
183
199
  type: String),
184
200
  FastlaneCore::ConfigItem.new(key: :base_sha,
185
- description: "The git SHA of the base build. This parameter does not need to be set if you’re using the Github integration",
201
+ description: "The git SHA of the base build",
186
202
  optional: true,
187
203
  type: String),
188
204
  FastlaneCore::ConfigItem.new(key: :build_id,
@@ -211,6 +227,10 @@ module Fastlane
211
227
  description: "Version of the order file to download",
212
228
  optional: true,
213
229
  type: String),
230
+ FastlaneCore::ConfigItem.new(key: :config_path,
231
+ description: "Path to Emerge config path",
232
+ optional: true,
233
+ type: String),
214
234
  ]
215
235
  end
216
236
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Emerge
3
- VERSION = "0.5.1"
3
+ VERSION = "0.6.2"
4
4
  end
5
5
  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.5.1
4
+ version: 0.6.2
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: 2022-03-16 00:00:00.000000000 Z
11
+ date: 2023-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday