fastlane-plugin-automated_test_emulator_run 0.3.3 → 0.3.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: 595e0b784b325b928118e7f0eeb81dcae3dd3db2
4
- data.tar.gz: a15002c8c4c9d2a2ddcc8e1e63ba57def87d54db
3
+ metadata.gz: c48b096665c5815e9bf95730930a2521a86a54c6
4
+ data.tar.gz: 1063ceb105bf66fe0935474d6f8eddd20bff812b
5
5
  SHA512:
6
- metadata.gz: cb1bb3d24b2fe0f8b9c497dd44103b5b86172b9e35b1909a704bfc5470e87060e2caeae16249d4166362743a2cd3986015ea90aaacf97f7d03f0d01e4fac22f7
7
- data.tar.gz: e730700fd702514f7105e8b1763a15995d52dcba6b3c96c4529388ead7a2702dbad5cf2f2004eb24651f01108235224aa5c811fe932043130abb37d83d951faa
6
+ metadata.gz: 765541ca742534f76f9156622f876d44beb428b063aa424ff9b0115377e29f4b3c7c1356e6d4b98ed251bb3f601fbe443267e3761b7d2790331e54462024d476
7
+ data.tar.gz: fcde22eb7dbf1aa149bfbec5d248b85803e9e1ca5164cea0aa6c585079f2d8573da892baf40f4049579a7b06572f14193627c12ff57a8a25cf03876a4e23586c
@@ -18,7 +18,13 @@ module Fastlane
18
18
 
19
19
  # Find unused port
20
20
  port = getUnusedTcpPort
21
- UI.message(["Open port found", port].join(" ").yellow)
21
+ if params[:avd_port].nil?
22
+ port = getUnusedTcpPort
23
+ UI.message(["Open port found", port].join(" ").yellow)
24
+ else
25
+ port = "#{params[:avd_port]}"
26
+ UI.message(["Port set by user to:", port].join(" ").yellow)
27
+ end
22
28
 
23
29
  # Set up params
24
30
  UI.message("Preparing parameters...".yellow)
@@ -184,13 +190,18 @@ module Fastlane
184
190
  optional: true,
185
191
  conflicting_options: [:shell_command],
186
192
  is_string: true),
187
-
193
+
188
194
  FastlaneCore::ConfigItem.new(key: :emulator_binary,
189
195
  env_name: "EMULATOR_BINARY",
190
196
  description: "Emulator binary file you would like to use in order to start emulator",
191
197
  is_string: true,
192
198
  default_value: "emulator",
193
199
  optional: true),
200
+ FastlaneCore::ConfigItem.new(key: :avd_port,
201
+ env_name: "AVD_PORT",
202
+ description: "Possible to specify port on which emulator should run",
203
+ is_string: true,
204
+ optional: true),
194
205
  FastlaneCore::ConfigItem.new(key: :avd_start_options,
195
206
  env_name: "AVD_START_OPTIONS",
196
207
  description: "Additonal run parameters e.g. gpu, audio, boot animation",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AutomatedTestEmulatorRun
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.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.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Krzyk