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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd800fde08b368bd6ac149bfb36eafc575ed7cab4b885db16e80b01243b9478b
|
4
|
+
data.tar.gz: fbebfa4b71bb6ea51bc37203c94bc26c3c4d62919ddfe3a7eb241d00d8b253bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
}
|