Skip to content

Commit f32642e

Browse files
committed
fix: launching android 11 and 12 emulators
1 parent 4f8d644 commit f32642e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

lib/commands/migrate.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IProjectData } from "../definitions/project";
2-
import { IMigrateController } from "../definitions/migrate";
2+
import { IMigrateController, IMigrationData } from "../definitions/migrate";
33
import { ICommand, ICommandParameter } from "../common/definitions/commands";
44
import { injector } from "../common/yok";
55

@@ -17,7 +17,7 @@ export class MigrateCommand implements ICommand {
1717
}
1818

1919
public async execute(args: string[]): Promise<void> {
20-
const migrationData = {
20+
const migrationData: IMigrationData = {
2121
projectDir: this.$projectData.projectDir,
2222
platforms: [
2323
this.$devicePlatformsConstants.Android,

lib/common/mobile/emulator-helper.ts

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { injector } from "../yok";
55
export class EmulatorHelper implements Mobile.IEmulatorHelper {
66
// https://developer.android.com/guide/topics/manifest/uses-sdk-element
77
public mapAndroidApiLevelToVersion = {
8+
"android-31": "12.0.0",
9+
"android-30": "11.0.0",
810
"android-29": "10.0.0",
911
"android-28": "9.0.0",
1012
"android-27": "8.1.0",

lib/controllers/migrate-controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export class MigrateController
331331
shouldMigrate = await this._shouldMigrate({
332332
projectDir,
333333
platforms: remainingPlatforms,
334-
loose: loose,
334+
loose,
335335
});
336336
this.$logger.trace(
337337
`Executed shouldMigrate for platforms: ${remainingPlatforms}. Result is: ${shouldMigrate}`

0 commit comments

Comments
 (0)