fastlane-plugin-android_testlab_script_swit 0.1.59 → 0.1.61

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: b6b9590ae77e0dc54c8ee2f135704efe2d40c929c5be225d69dc41b74677d4a2
4
- data.tar.gz: 870b2ab989d815f50103abe4a92c035d3eb3c4b175d4dd1306497cf2d9504d7c
3
+ metadata.gz: ea4266f48f851c865ade46b5a6ae7b11658827ae0a3832641d586e3dbb95fd10
4
+ data.tar.gz: 8845608427eda088dfd3a26182c6b1f573733369bbb8f4f88caeb883f48516d7
5
5
  SHA512:
6
- metadata.gz: 6746c05a46905fd685c937843654c2c19fb6a42e2bcb3ef638c24cb4c04dd5fcf9780b5c782c659eba8c7bc6540fcc899ddc79b76c40c58d45a670253a26d652
7
- data.tar.gz: 4615383325c0cc10b7ca6bffcfd843ed00b0903c728e335ffa494fd3f7f1757f2fa02456719f3ad01995c81f3fcdc079a9b4256eb211dee1e3cd41393d101fe4
6
+ metadata.gz: 90d389eda96cdd8ce262191670d78ffb7e387ddca552a531b01aab124fb20ead186d7c2a6f963b5e376fb1748c4df070e219e52429c7d28feb806fef68e71119
7
+ data.tar.gz: 6d85761328a6f7a015605924c9ebb398240a6eb8ed494353b47add89587ec97b352520748d225b79f93f983c6d7443ffec43b6b8b352ceb6df1c68b7742c9295
@@ -43,6 +43,9 @@ module Fastlane
43
43
  json = JSON.parse(File.read(params[:console_log_file_name]))
44
44
  UI.message("Test status: #{json}")
45
45
 
46
+ #
47
+ payload_string = params[:swit_webhook_payload]
48
+
46
49
  # 각 JSON 객체에 대해 반복
47
50
  json.each do |item|
48
51
  # 정보 추출하기
@@ -59,6 +62,18 @@ module Fastlane
59
62
  parts.each_with_index do |part, index|
60
63
  UI.message("Part #{index + 1}: #{part}")
61
64
  end
65
+
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
+
62
77
  end
63
78
 
64
79
 
@@ -76,7 +91,7 @@ module Fastlane
76
91
 
77
92
 
78
93
  # Swit Message
79
- 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: params[:swit_webhook_payload].to_json, headers: { 'Content-Type' => 'application/json' })
80
95
 
81
96
  UI.message("Finish Action")
82
97
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidTestlabScriptSwit
3
- VERSION = "0.1.59"
3
+ VERSION = "0.1.61"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.59
4
+ version: 0.1.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이