fastlane-plugin-android_testlab_script_swit 0.1.65 → 0.1.66
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: 27eda109932850f31989ededefe7a0e92b2db4c2f2d4fe7e90919e47de074a39
|
4
|
+
data.tar.gz: 5c7887bed19cef9ceb484f4f5cf172904bb74bfafc0d598530e5aefa1e7d9299
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 795f14d58a32319bb75b985117b92f7ee6b572b338a618437a851a605be9ebdef8a73b290a31e027b98505de780a400c186cf66f190457f2bb34a4ab0cbecd4b
|
7
|
+
data.tar.gz: 631b931276e14c421f22b852868cb22bb1af534acc21755734f9b8c41c157b58cb82602afb5ec89c6628e04d97d8307173c6bcfb8ee8fca4f3d15bd6a3d9ab4a
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -64,16 +64,16 @@ module Fastlane
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
-
params[:devices].each_with_index do |device, index|
|
68
|
-
payload_string = {
|
69
|
-
{"type":"rt_section","indent":1,"elements":[{"type":"rt_text","content":"Device#{index + 1}"}]},
|
70
|
-
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"model : #{device[:model]}"}]},
|
71
|
-
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"OS Version : #{device[:version]}"}]},
|
72
|
-
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"locale : #{device[:locale]}"}}},
|
73
|
-
{"type":"rt_section","indent":2,"elements":[{"type\":\"rt_text\",\"content":{"orientation : #{device[:orientation]}"}}},
|
74
|
-
{"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"Result : #{outcome}"}}},
|
75
|
-
}
|
76
|
-
end
|
67
|
+
# params[:devices].each_with_index do |device, index|
|
68
|
+
# payload_string = +{,
|
69
|
+
# {"type":"rt_section","indent":1,"elements":[{"type":"rt_text","content":"Device#{index + 1}"}]},
|
70
|
+
# {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"model : #{device[:model]}"}]},
|
71
|
+
# {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":"OS Version : #{device[:version]}"}]},
|
72
|
+
# {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"locale : #{device[:locale]}"}}},
|
73
|
+
# {"type":"rt_section","indent":2,"elements":[{"type\":\"rt_text\",\"content":{"orientation : #{device[:orientation]}"}}},
|
74
|
+
# {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"Result : #{outcome}"}}},
|
75
|
+
# }
|
76
|
+
# end
|
77
77
|
|
78
78
|
|
79
79
|
# Fetch results
|
@@ -90,7 +90,7 @@ module Fastlane
|
|
90
90
|
|
91
91
|
|
92
92
|
# Swit Message
|
93
|
-
HTTParty.post(params[:swit_webhook_url], body: payload_string.to_json, headers: { 'Content-Type' => 'application/json' })
|
93
|
+
HTTParty.post(params[:swit_webhook_url], body: { body_text: payload_string }.to_json, headers: { 'Content-Type' => 'application/json' })
|
94
94
|
|
95
95
|
UI.message("Finish Action")
|
96
96
|
end
|