fastlane-plugin-automated_test_emulator_run 0.4.3 → 0.4.4

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
  SHA1:
3
- metadata.gz: d15bb8e87eb0c251dfd58c1f7455b98da311e5c1
4
- data.tar.gz: 111be4f7e0d3df17f7abc0ce6c2c7019f76a8529
3
+ metadata.gz: 2c4a08b6203a0781bbcd1ec0af9fbeb0bbe243ed
4
+ data.tar.gz: 9f01308e8fc7f3fe2d5c6e2bc1b43f203c2c4676
5
5
  SHA512:
6
- metadata.gz: 2ecb3820347f73b5662061d4314a0ea1e3a476f4cca77bc31209b2c6333b5558175d1136279b9e2fc523b396445e510b02b5b151d6c2a9ea5c1bb490193fcca8
7
- data.tar.gz: f5202c10395572137d6800e6be08c29728cafba6fbe7e4bb63ddd9271776f7ba4c75bc5e985963b96b77290a120978e203f3fa7fdee923e946acd2780666fbb3
6
+ metadata.gz: 940b6378c58e9c8fcf8248855d923e5c2d61b75bf6c3d95f91aaf1b780cf8f33599051efba6103a9d1b485d479f5b90a29880b7967c59c79ced22b95e1cb7dba
7
+ data.tar.gz: 5b7ebd2ded5fdb2b5c4383638914f57f008529ec48ae35d5de0c57b618ff8249224464e34a6183cfab1ed0a5d6d5de9b0c4a7891682a3967b2dd43b8d9049526
@@ -87,9 +87,10 @@ module Fastlane
87
87
  UI.message("Using gradle task".green)
88
88
  gradle.trigger(task: params[:gradle_task], flags: params[:gradle_flags], serial: nil)
89
89
  end
90
-
91
- ensure
92
- waitFor_emulatorStop(sdkRoot, port, params, file, emulatorStarted)
90
+ end
91
+
92
+ if emulatorStarted
93
+ waitFor_emulatorStop(sdkRoot, port, params, file)
93
94
  end
94
95
  ensure
95
96
  file.close
@@ -118,9 +119,9 @@ module Fastlane
118
119
  if startParams.include? "-no-window"
119
120
  Action.sh("adb wait-for-device")
120
121
  Action.sh("adb devices")
122
+ return true
121
123
  else
122
-
123
- timeoutInSeconds= 150.0
124
+ timeoutInSeconds= 300.0
124
125
  startTime = Time.now
125
126
  loop do
126
127
  stdout, _stdeerr, _status = Open3.capture3(sdkRoot + ["/platform-tools/adb -s emulator-", port].join("") + " shell getprop sys.boot_completed")
@@ -139,8 +140,7 @@ module Fastlane
139
140
  end
140
141
  end
141
142
 
142
- def self.waitFor_emulatorStop(sdkRoot, port, params, file, emulatorStarted)
143
- if emulatorStarted == true
143
+ def self.waitFor_emulatorStop(sdkRoot, port, params, file)
144
144
  adb = Helper::AdbHelper.new(adb_path: sdkRoot + "/platform-tools/adb")
145
145
  temp = File.open(file.path).read
146
146
 
@@ -149,7 +149,6 @@ module Fastlane
149
149
 
150
150
  UI.message("Deleting emulator....".green)
151
151
  Action.sh(sdkRoot + "/tools/android delete avd -n #{params[:avd_name]}")
152
- end
153
152
  end
154
153
 
155
154
  def self.available_options
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AutomatedTestEmulatorRun
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Krzyk