fastlane-plugin-android_testlab_script_swit 0.1.77 → 0.1.79
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: d6f7d4dd9e630ebf7278f37d8c56440180e41ab7ae59c47924fa2caf2224016e
|
4
|
+
data.tar.gz: 87be8b82ef88b882005206aeadd1d0abf4529cc081fa7d799a3bf43670c56782
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92809838c4aadcac137e75aa317359483b90151ee1b6107958881041c3ca5188ade23230df7b0cc66bf64a4bfe58a95203266d5c2e3a5902e45b8ac1973bc105
|
7
|
+
data.tar.gz: f68157fca579c24288903d5852a954824165c72ac986af1263914b9e526f45615e25a05e0e065e04af5e0f5554d63c0a8ee68476b1dfd319c4f9c1bccfcde44b
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -82,8 +82,10 @@ module Fastlane
|
|
82
82
|
# {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Result : #{outcome}\"}]}]"
|
83
83
|
# end
|
84
84
|
|
85
|
+
new_payload = ""
|
86
|
+
|
85
87
|
params[:devices].each_with_index do |device, index|
|
86
|
-
new_payload
|
88
|
+
new_payload += "[{\"type\": \"rt_section\", \"indent\": 1, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Device#{index + 1}\"}]},
|
87
89
|
{\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"model : #{device[:model]}\"}]},
|
88
90
|
{\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"OS Version : #{device[:version]}\"}]},
|
89
91
|
{\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"locale : #{device[:locale]}\"}]},
|
@@ -107,13 +109,13 @@ module Fastlane
|
|
107
109
|
# payload_string = params[:swit_webhook_payload]
|
108
110
|
|
109
111
|
# 앞뒤 지우기
|
110
|
-
|
112
|
+
new_payload_string = new_payload.to_json
|
111
113
|
|
112
|
-
#
|
113
|
-
|
114
|
+
# Remove the closing square bracket from the original payload and add a comma
|
115
|
+
swit_webhook_payload = params[:swit_webhook_payload][0..-3] + ','
|
114
116
|
|
115
117
|
# Add the additional payload and close the square bracket
|
116
|
-
|
118
|
+
swit_webhook_payload += new_payload_string + ']}]}'
|
117
119
|
|
118
120
|
# Swit Message
|
119
121
|
HTTParty.post(params[:swit_webhook_url], body: { body_text: params[:swit_webhook_payload] }.to_json, headers: { 'Content-Type' => 'application/json' })
|