fastlane-plugin-automated_test_emulator_run 0.5.6 → 0.5.7

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
  SHA1:
3
- metadata.gz: a213f892c4b603df647ca591ec6939c8889768ec
4
- data.tar.gz: eb9cfc525f4669b721321e7b6dd0bfa2fbec4dba
3
+ metadata.gz: 3c944af9cc08ec10f293601d8b2be3171d53d4e1
4
+ data.tar.gz: 5d3de76a679147d85c5425cc447c392ef769e105
5
5
  SHA512:
6
- metadata.gz: 8d0500a7ce1e9a6b8b61ebbd485f5646fc15348582848088b1b77de7d1c81c596c5c8b5dc5201a911ccc3a36ccce2e73b83e64919899436d44e640f7362bb0a9
7
- data.tar.gz: d6b4c1bdb4271a9d85714174b82cb173d0ee2a7037a71d6b96efe1b40b9f0a70545f5ba0be69693bbe62d6978bc92882a9d9c9c9dbecd28d72bb75908835297e
6
+ metadata.gz: e3c4119ff6a00fba586ed4df4c38feff0c5f13cdb744f9e3cf889750880f47e36158485fa4b1aa37e5bab865b9da478dc131015e9c32e6375a2332eb9e62b9e4
7
+ data.tar.gz: 7c72d3c2e932d14049da36ef55865cb2ba7b416325e4b670f8dfa0156c1a7a8943675b53cd657f779b0f04b8d3f6815f52d4d90a37ae885ec398d31606615815
@@ -112,7 +112,9 @@ module Fastlane
112
112
  timeoutInSeconds= 180.0
113
113
  startTime = Time.now
114
114
  loop do
115
- stdout, _stdeerr, _status = Open3.capture3(sdkRoot + ["/platform-tools/adb -s emulator-", port].join("") + " shell getprop sys.boot_completed")
115
+ dev_bootcomplete, _stdeerr, _status = Open3.capture3(sdkRoot + ["/platform-tools/adb -s emulator-", port].join("") + " shell getprop dev.bootcomplete")
116
+ sys_boot_completed, _stdeerr, _status = Open3.capture3(sdkRoot + ["/platform-tools/adb -s emulator-", port].join("") + " shell getprop sys.boot_completed")
117
+ bootanim, _stdeerr, _status = Open3.capture3(sdkRoot + ["/platform-tools/adb -s emulator-", port].join("") + " shell getprop init.svc.bootanim")
116
118
  currentTime = Time.now
117
119
 
118
120
  if (currentTime - startTime) >= timeoutInSeconds
@@ -120,7 +122,7 @@ module Fastlane
120
122
  return false
121
123
  end
122
124
 
123
- if stdout.strip == "1"
125
+ if (dev_bootcomplete.strip == "1" && sys_boot_completed.strip == "1" && bootanim.strip == "stopped")
124
126
  UI.message("Emulator Booted!".green)
125
127
  return true
126
128
  end
@@ -130,11 +132,15 @@ module Fastlane
130
132
 
131
133
  def self.waitFor_emulatorStop(sdkRoot, port, params)
132
134
  UI.message("Shutting down emulator...".green)
133
- Action.sh(sdkRoot + "/platform-tools/adb emu kill &>/dev/null")
135
+ Action.sh(sdkRoot + "/platform-tools/adb -s " + ["emulator-", port].join("") + " emu kill &>/dev/null")
134
136
 
135
137
  delayInSeconds = 45.0
136
138
  sleep(delayInSeconds)
137
139
 
140
+ UI.message("Restarting adb..".green)
141
+ Action.sh(sdkRoot + "/platform-tools/adb kill-server")
142
+ Action.sh(sdkRoot + "/platform-tools/adb start-server")
143
+
138
144
  UI.message("Deleting emulator....".green)
139
145
  Action.sh(sdkRoot + "/tools/android delete avd -n #{params[:avd_name]}")
140
146
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AutomatedTestEmulatorRun
3
- VERSION = "0.5.6"
3
+ VERSION = "0.5.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-automated_test_emulator_run
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Krzyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-03 00:00:00.000000000 Z
11
+ date: 2016-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry