fastlane-plugin-android_testlab_script_swit 0.1.62 → 0.1.64

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: d02e177def84ba2351c112268eab1a33901782fdb531088aa8b224e0bdf4a632
4
- data.tar.gz: 45acfe808313d419546a4688e657d5486116293da704259ea29f9d94b899c336
3
+ metadata.gz: 9f682bc65eeb71a668a0d0ffc875ccbcf6f0a1268cdc2a3881d10c668cc8e671
4
+ data.tar.gz: ff931f3294f95a83a631584ac6110361dd016377847d84d25d1d9d260b66da37
5
5
  SHA512:
6
- metadata.gz: 97660d8b824517d9e92bcca10fffdd7ac4793fb478ee81de4d2ca66a6c5b6923c96aa67c3dce683674a94bed977862b3957137126fcd84bb2a49b74a19fc7bd6
7
- data.tar.gz: 772195df543b735f2faf9fc972b64cb16d8a01c672a807bf2f557da2aba88aaad917c45976d82bbf5a8391eb33fd05428e0d35485f413c2668aee2b659021bc7
6
+ metadata.gz: 75890a8c09d3512eab63c768f3374caa432eb7fdb6bd19fa78729f20f015736566fd6aef0b970fb1938ee282cde0136eb2e4bea37fd078b52456b2ea9b5fc904
7
+ data.tar.gz: adb3856b1ffb7ac89af69898dca4b9ec6fecf50f5ff001c1ca18b6f1ff0c161f116421367b9aaed01768dbd192795b64871661413494d95482a2f49a09d99e92
@@ -49,9 +49,9 @@ module Fastlane
49
49
  # 각 JSON 객체에 대해 반복
50
50
  json.each do |item|
51
51
  # 정보 추출하기
52
- axis_value = item["axis_value"]
53
- outcome = item["outcome"]
54
- test_details = item["test_details"]
52
+ axis_value = item["axis_value"]
53
+ outcome = item["outcome"]
54
+ test_details = item["test_details"]
55
55
 
56
56
  # 'axis_value' 분리하기
57
57
  parts = axis_value.split('-')
@@ -61,19 +61,19 @@ module Fastlane
61
61
 
62
62
  parts.each_with_index do |part, index|
63
63
  UI.message("Part #{index + 1}: #{part}")
64
+
65
+ params[:devices].each_with_index do |device, index|
66
+ payload_string = {
67
+ {"type":"rt_section","indent":1,"elements":[{"type":"rt_text","content":"Device#{index + 1}"}]},
68
+ {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"model : #{device[:model]}"}]},
69
+ {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"OS Version : #{device[:version]}"}]},
70
+ {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"locale : #{device[:locale]}"}}},
71
+ {"type":"rt_section","indent":2,"elements":[{"type\":\"rt_text\",\"content":{"orientation : #{device[:orientation]}"}}},
72
+ {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"Result : #{outcome}"}}},
73
+ }
74
+ end
64
75
  end
65
76
 
66
- # params[:devices].each_with_index do |device, index|
67
- # payload_string += %Q{
68
- # {"type":"rt_section","indent":1,"elements":[{"type":"rt_text","content":"Device#{index + 1}"}]},
69
- # {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"model : #{device[:model]}"}]},
70
- # {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"OS Version : #{device[:version]}"}]},
71
- # {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"locale : #{device[:locale]}"}}},
72
- # {"type":"rt_section","indent":2,"elements":[{"type\":\"rt_text\",\"content":{"orientation : #{device[:orientation]}"}}},
73
- # {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"Result : #{outcome}"}}},
74
- # }
75
- # end
76
-
77
77
  end
78
78
 
79
79
 
@@ -91,7 +91,7 @@ module Fastlane
91
91
 
92
92
 
93
93
  # Swit Message
94
- HTTParty.post(params[:swit_webhook_url], body: params[:swit_webhook_payload].to_json, headers: { 'Content-Type' => 'application/json' })
94
+ HTTParty.post(params[:swit_webhook_url], body: payload_string.to_json, headers: { 'Content-Type' => 'application/json' })
95
95
 
96
96
  UI.message("Finish Action")
97
97
  end
@@ -188,7 +188,7 @@ module Fastlane
188
188
  type: String,
189
189
  optional: false),
190
190
 
191
- # swit_webhook url (true)
191
+ # swit_webhook url (false)
192
192
  FastlaneCore::ConfigItem.new(key: :swit_webhook_url,
193
193
  env_name: "SWIT_WEBHOOK_URL",
194
194
  description: "The Swit WebHOOK URL",
@@ -297,19 +297,6 @@ module Fastlane
297
297
  [['console_output.log', 'A console log when running Firebase Test Lab with gcloud']]
298
298
  end
299
299
 
300
- #
301
- def wait_for_test_to_complete(url)
302
- loop do
303
- html = open(url).read
304
-
305
- if html.include?("TestLab is complete")
306
- break
307
- else
308
- sleep(10) # wait for 10 seconds before checking again
309
- end
310
- end
311
- end
312
-
313
300
  def self.example_code
314
301
 
315
302
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidTestlabScriptSwit
3
- VERSION = "0.1.62"
3
+ VERSION = "0.1.64"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-android_testlab_script_swit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.62
4
+ version: 0.1.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-27 00:00:00.000000000 Z
11
+ date: 2023-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler