Skip to content

Commit fdee0ab

Browse files
committed
fix lint
1 parent 1b2f005 commit fdee0ab

File tree

2 files changed

+15
-37
lines changed

2 files changed

+15
-37
lines changed

src/emulator-manager.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ import * as fs from 'fs';
55
* Creates a new AVD instance with the specified configurations.
66
*/
77
export async function createAvd(
8-
systemImageApiLevel: string,
9-
target: string,
108
arch: string,
11-
profile: string,
9+
avdName: string,
1210
cores: string,
13-
ramSize: string,
14-
heapSize: string,
15-
sdcardPathOrSize: string,
1611
diskSize: string,
17-
avdName: string,
12+
enableHardwareKeyboard: boolean,
1813
forceAvdCreation: boolean,
19-
enableHardwareKeyboard: boolean
14+
heapSize: string,
15+
profile: string,
16+
ramSize: string,
17+
sdcardPathOrSize: string,
18+
systemImageApiLevel: string,
19+
target: string
2020
): Promise<void> {
2121
try {
2222
console.log(`::group::Create AVD`);
@@ -65,13 +65,13 @@ export async function createAvd(
6565
*/
6666
export async function launchEmulator(
6767
avdName: string,
68-
emulatorBootTimeout: number,
69-
port: number,
70-
emulatorOptions: string,
7168
disableAnimations: boolean,
72-
disableSpellChecker: boolean,
7369
disableLinuxHardwareAcceleration: boolean,
74-
enableHardwareKeyboard: boolean
70+
disableSpellChecker: boolean,
71+
emulatorBootTimeout: number,
72+
emulatorOptions: string,
73+
enableHardwareKeyboard: boolean,
74+
port: number
7575
): Promise<void> {
7676
try {
7777
console.log(`::group::Launch Emulator`);

src/main.ts

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -192,20 +192,7 @@ async function run() {
192192
await installAndroidSdk(apiLevel, systemImageApiLevel, target, arch, channelId, emulatorBuild, ndkVersion, cmakeVersion);
193193

194194
// create AVD
195-
await createAvd(
196-
systemImageApiLevel,
197-
target,
198-
arch,
199-
profile,
200-
cores,
201-
ramSize,
202-
heapSize,
203-
sdcardPathOrSize,
204-
diskSize,
205-
avdName,
206-
forceAvdCreation,
207-
enableHardwareKeyboard
208-
);
195+
await createAvd(arch, avdName, cores, diskSize, enableHardwareKeyboard, forceAvdCreation, heapSize, profile, ramSize, sdcardPathOrSize, systemImageApiLevel, target);
209196

210197
// execute pre emulator launch script if set
211198
if (preEmulatorLaunchScripts !== undefined) {
@@ -225,16 +212,7 @@ async function run() {
225212
}
226213

227214
// launch an emulator
228-
await launchEmulator(
229-
avdName,
230-
emulatorBootTimeout,
231-
port,
232-
emulatorOptions,
233-
disableAnimations,
234-
disableSpellchecker,
235-
disableLinuxHardwareAcceleration,
236-
enableHardwareKeyboard
237-
);
215+
await launchEmulator(avdName, disableAnimations, disableLinuxHardwareAcceleration, disableSpellchecker, emulatorBootTimeout, emulatorOptions, enableHardwareKeyboard, port);
238216

239217
// execute the custom script
240218
try {

0 commit comments

Comments
 (0)