fastlane-plugin-android_emulator 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: 17104a36bd72a96126cb59e9a36e911bfb2d5dc0
4
- data.tar.gz: 9fa26d306438b27de51c827abc1b0a4060fa7eb0
3
+ metadata.gz: 86c178eb6144d83935914e4894e047da05fee892
4
+ data.tar.gz: ff043984afa562bdb230189b8a578d29ef0004ae
5
5
  SHA512:
6
- metadata.gz: e1dfc77a11cea89cf0440ec43a169989ea7563ac0cc478221b39358dc102ceed91c2a6af3f2ddf4a58df6d855f3007ec1039dc7131f35bfe9b97c44bf6e5db4a
7
- data.tar.gz: 6b76a6887f4c470cf89df20b60b8d49e888d24e5448e0bf6fea6cc63377528be8eef8c223f28159614b6584ecaf54a40c4306d62a6517ca5290783c8ce2fbcf2
6
+ metadata.gz: 8601bbf7dacb3158cbbb03958a376ad7cb8f2fa53c6e88f284bf407f1009b8a6d2498e6b7d327c61d5d12d2a56a7b08ca2df70bf7ee910f75c744638ea03aa8e
7
+ data.tar.gz: 2fc302387f8cb99ca88956013ab31f83368e531d766f15ad137c79ec2d0d0f1bf533c437ae382652aae086e9b2677af7caecf24b0f67b8cc4ae3bfefeff55059
@@ -15,7 +15,7 @@ module Fastlane
15
15
 
16
16
  UI.message("Creating new emulator")
17
17
  FastlaneCore::CommandExecutor.execute(
18
- command: "#{sdk_dir}/tools/bin/avdmanager create avd -n '#{params[:name]}' -f -k '#{params[:package]}' -d 'Nexus 5'",
18
+ command: "#{sdk_dir}/tools/bin/avdmanager create avd -n '#{params[:name]}' -f -k '#{params[:package]}' -d '#{params[:device]}'",
19
19
  print_all: true,
20
20
  print_command: false
21
21
  )
@@ -36,10 +36,10 @@ module Fastlane
36
36
  end
37
37
 
38
38
  UI.message("Starting emulator")
39
- system("LC_NUMERIC=C; #{sdk_dir}/tools/emulator @#{params[:name]} -port #{port} > /dev/null 2>&1 &")
39
+ system("LC_NUMERIC=C; #{sdk_dir}/emulator/emulator @#{params[:name]} -port #{port} > /dev/null 2>&1 &")
40
40
  sh("#{adb} -e wait-for-device")
41
41
 
42
- until Actions.sh("#{adb} -e shell getprop init.svc.bootanim", log: false).include? "stopped" do
42
+ until Actions.sh("#{adb} -e shell getprop dev.bootcomplete", log: false).strip == "1" do
43
43
  sleep(5)
44
44
  end
45
45
 
@@ -95,6 +95,11 @@ module Fastlane
95
95
  description: "Name of the AVD",
96
96
  default_value: "fastlane",
97
97
  optional: false),
98
+ FastlaneCore::ConfigItem.new(key: :device,
99
+ env_name: "AVD_DEVICE",
100
+ description: "Device",
101
+ default_value: "Nexus 5",
102
+ optional: false),
98
103
  FastlaneCore::ConfigItem.new(key: :port,
99
104
  env_name: "AVD_PORT",
100
105
  description: "Port of the emulator",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidEmulator
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-android_emulator
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
  - Michael Ruhl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-07 00:00:00.000000000 Z
11
+ date: 2019-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry