fastlane-plugin-android_emulator-kami 1.0.0 → 1.0.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
  SHA256:
3
- metadata.gz: 69249b3c41ad5e1e68f6fef16397921cc4cd9d037932642e677e4d9d829f0bf0
4
- data.tar.gz: 1c1bf009f41eef6ad92f2d49e4f0aca5b95666c00755d263d7ccd88bd68a73af
3
+ metadata.gz: fd800fde08b368bd6ac149bfb36eafc575ed7cab4b885db16e80b01243b9478b
4
+ data.tar.gz: fbebfa4b71bb6ea51bc37203c94bc26c3c4d62919ddfe3a7eb241d00d8b253bd
5
5
  SHA512:
6
- metadata.gz: 62e46dfba31328f8987f17ed52679b1660596e7c0c23b2dfa82a0fad10cbb6637868ccfb6c7d94dc7b54c60c3ab99aa79a74e8d18a4fbd806f3f65d627ab7f15
7
- data.tar.gz: 222661e32ebf4a7a881db4d7260e9571c056b1d0a4f66ab924bfd278105f3dc287693979177065c81842ccfb909ead77b1b6f0fdd3b164da296e1f1438d76810
6
+ metadata.gz: 0d33ce09b769738dbf8dfa60b0a5acc478ef01ceaaf2224fe0980b35af067214e52f70c9b44ab9696552bcdb03e30de3edc78dd1d0f70e61a3bf0b9e432bcbfa
7
+ data.tar.gz: ab11d9405c188098b40df1a520c6342d3aa11421b47ca92a93a2923800a2d303d1615b711ee3371550eed47818f5599cd7a1a2789b5bebe834b039dbfec1b1c8
@@ -8,6 +8,10 @@ module Fastlane
8
8
  sdk_dir = params[:sdk_dir]
9
9
  port = params[:port]
10
10
  adb = "#{sdk_dir}/platform-tools/adb"
11
+
12
+ resolution_width = params[:resolution_width] || 1080
13
+ resolution_height = params[:resolution_height] || 1920
14
+
11
15
 
12
16
  UI.message("Stopping emulator")
13
17
  system("#{adb} emu kill > /dev/null 2>&1 &")
@@ -24,6 +28,8 @@ module Fastlane
24
28
  open("#{Dir.home}/.android/avd/#{params[:name]}.avd/config.ini", 'a') { |f|
25
29
  f << "hw.gpu.mode=auto\n"
26
30
  f << "hw.gpu.enabled=yes\n"
31
+ f << "hw.lcd.height=#{resolution_width}\n"
32
+ f << "hw.lcd.width=#{resolution_height}\n"
27
33
  f << "skin.dynamic=yes\n"
28
34
  f << "skin.name=1080x1920\n"
29
35
  }
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidEmulator
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-android_emulator-kami
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Ruhl