fastlane-plugin-automated_test_emulator_run 1.0.0 → 1.1.0

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: 5719e5040624f349907cc2c01d6c7030c3827d01
4
- data.tar.gz: 061d66711e351773c997e350f7c3b53c7326a0bc
3
+ metadata.gz: 2beefd49270a753e5f5c58913fb0d613d8674846
4
+ data.tar.gz: 27d9e176b1f2304c23c410b761b9e3bc442ea629
5
5
  SHA512:
6
- metadata.gz: 115cbc0163872401a1c40a69d2a1d17a8b96f5c9933cfee62015a4d3c9cb1273cb8ac4bf6f45115b0d0a546d99b87d72d0428de98021c1fa81a4e91df177a17c
7
- data.tar.gz: a7fb87f8726d0abd1ff80deb01403227894953eee782efd78e64ed4ee38d0c89933f69c7f9fa04b53d394e643837204dea70ede1e5c6b6c543676b9d75a76382
6
+ metadata.gz: 80ed06b2e25dd8395e09612a6d5e4af7e9b357e5d6c237352caa665af9fc9c780e85a3b7dcb36fdd1b21be62e9a7781082bd2f21f685482ea3a4b1a504f60c7c
7
+ data.tar.gz: 5e4d0f8e600d05dadcd96bbcec08339cbc8222fd36fb287cff949f36ee97017001726506ace3f0ff0090bc176f4b36e8de33421587b84ecaa5ec45d8da1ebd31
@@ -85,7 +85,8 @@ module Fastlane
85
85
  UI.message("Performing wait for params: dev.bootcomplete, sys.boot_completed, init.svc.bootanim".yellow)
86
86
  for i in 0..(avd_schemes.length - 1)
87
87
  avd_controller = avd_controllers[i]
88
- status = wait_for_emulator_boot(adb_controller, avd_controller)
88
+ timeout = "#{params[:AVD_launch_timeout]}"
89
+ status = wait_for_emulator_boot(adb_controller, avd_controller, timeout)
89
90
 
90
91
  if (!status)
91
92
  all_avd_launched = false
@@ -147,8 +148,8 @@ module Fastlane
147
148
 
148
149
  end
149
150
 
150
- def self.wait_for_emulator_boot(adb_controller, avd_controller)
151
- timeoutInSeconds= 240.0
151
+ def self.wait_for_emulator_boot(adb_controller, avd_controller, timeout)
152
+ timeoutInSeconds= timeout.to_i
152
153
  startTime = Time.now
153
154
 
154
155
  launch_status = false
@@ -159,7 +160,7 @@ module Fastlane
159
160
  currentTime = Time.now
160
161
 
161
162
  if (currentTime - startTime) >= timeoutInSeconds
162
- UI.message("AVD loading took more than 4 minutes. Restarting launch".red)
163
+ UI.message("AVD loading took more than 10 minutes. Restarting launch".red)
163
164
  launch_status = false
164
165
  break
165
166
  end
@@ -192,6 +193,12 @@ module Fastlane
192
193
  is_string: true,
193
194
  default_value: ENV['ANDROID_HOME'],
194
195
  optional: true),
196
+ FastlaneCore::ConfigItem.new(key: :AVD_launch_timeout,
197
+ env_name: "AVD_LAUNCH_TIMEOUT",
198
+ description: "Timeout in seconds - after what time should plugin attempt to re-launch AVD setup. Default 600 seconds",
199
+ is_string: true,
200
+ default_value: 600,
201
+ optional: true),
195
202
 
196
203
 
197
204
  #launch commands
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AutomatedTestEmulatorRun
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
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: 1.0.0
4
+ version: 1.1.0
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-16 00:00:00.000000000 Z
11
+ date: 2016-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry