fastlane-plugin-automated_test_emulator_run 0.4.0 → 0.4.1

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: d06094f9088ae5f1ed4620cae30ef51d3489f8ae
4
- data.tar.gz: 0a51f7fdb8ccea4f5ffdd5e4d49542bebd8e752b
3
+ metadata.gz: 48db1d581d99500b8b3face8530cf4ee36a022c7
4
+ data.tar.gz: 555f51d862155fcccb8b326d8d60391338bb5140
5
5
  SHA512:
6
- metadata.gz: 647b6125717ea2a16b4e2ccea6820f0458dbd31e6092fc70f6b06095e0bf9f375db9e5ef02ad7cfc9e3d93fb57602f5ef1aeb27f9c851d6033c7a916cb06a3bb
7
- data.tar.gz: c6339445d415605e22d1082a9df46d781bd4f5062f8698e49e47620962216dd0012828144a087a34243200f230fb5226bb3426ab5d572ea9d15744192092ca8a
6
+ metadata.gz: 0d0cca502c9cb0bfcd25a7a7b0c6682df8ad86d0a651cfb49e8ae7b0bb3959cb7829960ca5d5c891cc8c576fd76aea2f86f45e070afc053eb0021bb171c12adc
7
+ data.tar.gz: f073f79618f46267ce730825ff78411fa8123c438ad90208734bf4a71556e96244accbc4b2d6bc28267aeacc6d2580c13ee3c02adf82bea132e8cac104eea428
@@ -7,6 +7,8 @@ module Fastlane
7
7
  end
8
8
 
9
9
  class AutomatedTestEmulatorRunAction < Action
10
+ emulatorStarted = false
11
+
10
12
  def self.run(params)
11
13
  gradle = Helper::GradleHelper.new(gradle_path: Dir["./gradlew"].last)
12
14
 
@@ -128,6 +130,7 @@ module Fastlane
128
130
  end
129
131
 
130
132
  if stdout.strip == "1"
133
+ emulatorStarted = true
131
134
  UI.message("Emulator Booted!".green)
132
135
  break
133
136
  end
@@ -136,14 +139,16 @@ module Fastlane
136
139
  end
137
140
 
138
141
  def self.waitFor_emulatorStop(sdkRoot, port, params, file)
139
- adb = Helper::AdbHelper.new(adb_path: sdkRoot + "/platform-tools/adb")
140
- temp = File.open(file.path).read
142
+ if emulatorStarted
143
+ adb = Helper::AdbHelper.new(adb_path: sdkRoot + "/platform-tools/adb")
144
+ temp = File.open(file.path).read
141
145
 
142
- UI.message("Shutting down emulator...".green)
143
- adb.trigger(command: "emu kill", serial: "emulator-#{port}")
146
+ UI.message("Shutting down emulator...".green)
147
+ adb.trigger(command: "emu kill", serial: "emulator-#{port}")
144
148
 
145
- UI.message("Deleting emulator....".green)
146
- Action.sh(sdkRoot + "/tools/android delete avd -n #{params[:avd_name]}")
149
+ UI.message("Deleting emulator....".green)
150
+ Action.sh(sdkRoot + "/tools/android delete avd -n #{params[:avd_name]}")
151
+ end
147
152
  end
148
153
 
149
154
  def self.available_options
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AutomatedTestEmulatorRun
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Krzyk