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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea4266f48f851c865ade46b5a6ae7b11658827ae0a3832641d586e3dbb95fd10
|
4
|
+
data.tar.gz: 8845608427eda088dfd3a26182c6b1f573733369bbb8f4f88caeb883f48516d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90d389eda96cdd8ce262191670d78ffb7e387ddca552a531b01aab124fb20ead186d7c2a6f963b5e376fb1748c4df070e219e52429c7d28feb806fef68e71119
|
7
|
+
data.tar.gz: 6d85761328a6f7a015605924c9ebb398240a6eb8ed494353b47add89587ec97b352520748d225b79f93f983c6d7443ffec43b6b8b352ceb6df1c68b7742c9295
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -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].
|
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
|