fastlane-plugin-android_testlab_script_swit 0.1.58 → 0.1.60

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: 4725803217545518fde854f72e271aa9182856b2d7f3f8490c42bdff4b9eb982
4
- data.tar.gz: b272b5d494492c5ef16307d24aace17ea0babf3cb000102b79b79ba551d1341c
3
+ metadata.gz: 433ae917a1d77fd508b76854302277fc1b5c7a7eb695e4f514c56da61d5a78ed
4
+ data.tar.gz: 8eb294131557ff2f01c5cf8d47a6c4b2b03301841cc9f50aea40c1152270e0e6
5
5
  SHA512:
6
- metadata.gz: 8c2b90a01f4df2b74c645bbf8158db49db31fa8d2218ff283c941ec502cc9915b36f9d21a3936f81fcfdba2982be9c21d074ba1b422029e7ca9e3ad9b998b2c2
7
- data.tar.gz: aac74eee1282a526a253ef9576cbb7abb616b6c779bc6c01a23e5891f706fdb286cc479a6eef0cdac4935ae795eda7c2ccf4728fd134ce1b3cd00329543ac98d
6
+ metadata.gz: 7141618559c47af3b089ab46181a19f420e29a1824a9fb22ccd7f625a99be57fea7815a44079888d983ad30332da7315e9c250a3fd448dbc0e2bf43d399569de
7
+ data.tar.gz: '084d6edaabc6c2d7e879fde41bd63dddaa83716a82746ce0f9184e15c9d6fbdef2f6113e724584d4a5f6afed47c3508091977cfba49dd9b0e76dae2369fe1ad2'
@@ -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], 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.58"
3
+ VERSION = "0.1.60"
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.58
4
+ version: 0.1.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이