fastlane-plugin-automated_test_emulator_run 0.1.1 → 0.1.3

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: 0809def7e76fb808ea4d702dc69175c2713d9602
4
- data.tar.gz: bd11ceb3d378e9555a4a412fd647b547b8bd1a18
3
+ metadata.gz: 23a87d5f4659764de3c4e2a3e415d597107570dc
4
+ data.tar.gz: cc23667e7e5561e00f7fd814177a5d08fc95f928
5
5
  SHA512:
6
- metadata.gz: d456e752b7f15e022edb47aad228ab728bbdd2937b21a63b86675310838f7b89e50fa058ff20aa491e381dbb78d60fa13af92e3235db0f5b62f96e8ff8d3a398
7
- data.tar.gz: e1eebb1904da216fa63df9060eb20b785b53749283e845082bff3b47a8868782b7ed1a93d9e32be2d0998067c965a4b2bd079a52b87dfbdd5a4ab8d8d833f343
6
+ metadata.gz: 943737d7fb7eb74182ebdef1fd1256972319eefbe01726f98274de715b35de84bba06244efa9535b4abdbdcb4c933ffb00d80ce70220cb867d745f3534ebb597
7
+ data.tar.gz: 1ec2eb1443e0cce0382d54c572535785af053efc1c741498344be3f278e450612a0776efdd51fcdd90bafbeae10e48e8bbe640d475dff00ee303cc61b17e4c3d
@@ -29,7 +29,7 @@ module Fastlane
29
29
  avd_create_options = params[:avd_create_options] unless params[:avd_create_options].nil?
30
30
  avd_initdata = "-wipe-data -initdata #{params[:initdata_snapshot_path]}" unless params[:initdata_snapshot_path].nil?
31
31
  avd_port = ["-port", port].join(" ")
32
- sdkRoot = getSdkRoot(params)
32
+ sdkRoot = "#{params[:sdk_path]}"
33
33
 
34
34
  # Set up commands
35
35
  UI.message("Setting up run commands".yellow)
@@ -93,19 +93,6 @@ module Fastlane
93
93
  return port
94
94
  end
95
95
 
96
- def self.getSdkRoot(params)
97
- dirs = "#{params[:sdk_path]}".split(':')
98
- sdkRoot = ""
99
- dirs.each do |dir|
100
- if dir.include? "sdk"
101
- sdkEndPos = dir.index("sdk") + "sdk".length
102
- sdkRoot = dir.slice(0, sdkEndPos)
103
- break
104
- end
105
- end
106
- return sdkRoot
107
- end
108
-
109
96
  def self.waitFor_emulatorBoot(sdkRoot, port)
110
97
  UI.message("Waiting for emulator to finish booting.....".yellow)
111
98
  loop do
@@ -163,9 +150,9 @@ module Fastlane
163
150
  optional: true),
164
151
  FastlaneCore::ConfigItem.new(key: :sdk_path,
165
152
  env_name: "SDK_PATH",
166
- description: "The path to your android sdk directory (root)",
153
+ description: "The path to your android sdk directory (root). ANDROID_HOME by default",
167
154
  is_string: true,
168
- default_value: ENV['PATH'],
155
+ default_value: ENV['ANDROID_HOME'],
169
156
  optional: true),
170
157
  FastlaneCore::ConfigItem.new(key: :shell_command,
171
158
  env_name: "SHELL_COMMAND",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AutomatedTestEmulatorRun
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.3"
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.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Krzyk