fastlane-plugin-android_testlab_script_swit 0.1.909 → 0.1.910
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 673b81d033f7a7ffe5ee441dc8cb01085525468a584359540deb6b45bbc133e2
|
4
|
+
data.tar.gz: 3400955d2e46ce5ed54f748198379a88e0561710da14672402d3fc232ddd669b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b61a5165d2625dff6b89940cb641555b1b0bff97d313908efd745264d456d571b37a6f6e4f685aeb601e724a8f01ba5e03ec8d0a0a13ac8fd9f503052f5408c0
|
7
|
+
data.tar.gz: 07fe8b118a381b5154131882586a3f40cb50f1c71ee696ce94bb5c09b7742f81c09054d6ae64c63bf7da81fc29751937a1bf83fa8417bf0caca6cb952df9c556
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -68,8 +68,7 @@ module Fastlane
|
|
68
68
|
# swit_device_payload += "," unless index == parts.length - 1
|
69
69
|
# end
|
70
70
|
# end
|
71
|
-
|
72
|
-
|
71
|
+
|
73
72
|
resultJson.each_with_index do |item, device_index|
|
74
73
|
# 정보 추출하기
|
75
74
|
axis_value = item["axis_value"]
|
@@ -81,23 +80,19 @@ module Fastlane
|
|
81
80
|
|
82
81
|
swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{device_index + 1}\"}]},"
|
83
82
|
|
84
|
-
part_names = ["Model", "Version", "Locale", "Orientation"]
|
85
|
-
|
86
83
|
parts.each_with_index do |part, index|
|
87
|
-
swit_device_payload += "{\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"
|
88
|
-
|
89
|
-
if index == parts.length -1
|
84
|
+
swit_device_payload += "{\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{parts[index]}\"}]},"
|
85
|
+
if index == parts.length -1 then
|
90
86
|
swit_device_payload += "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content":"Result : #{outcome}\"}]}"
|
91
87
|
end
|
92
|
-
|
93
|
-
swit_device_payload += "," unless device_index == resultJson.length -1 && index == parts.length -1
|
94
|
-
|
95
88
|
end
|
96
|
-
|
89
|
+
|
90
|
+
swit_device_payload += "," unless device_index == resultJson.length -1 && index == parts.length -1
|
97
91
|
end
|
98
92
|
|
99
93
|
# remove the last comma if it exists
|
100
94
|
swit_device_payload.chomp!(',')
|
95
|
+
|
101
96
|
|
102
97
|
|
103
98
|
|