Skip to content

Commit 65d99f7

Browse files
committed
fix:abi filter fix when multiple emulators open and using --device filter
1 parent 61d4b77 commit 65d99f7

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

lib/common/mobile/android/android-device.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class AndroidDevice implements Mobile.IAndroidDevice {
102102
abis: [
103103
...details["cpu.abilist64"].split(","),
104104
...details["cpu.abilist32"].split(","),
105-
],
105+
].filter(s=>s.length > 0),
106106
version,
107107
vendor: details.brand,
108108
platform: this.$devicePlatformsConstants.Android,

lib/services/android/gradle-build-service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ export class GradleBuildService
3434
let devices = this.$devicesService.getDevicesForPlatform(
3535
buildData.platform
3636
);
37-
if (buildData.emulator) {
37+
if (buildData.device) {
38+
devices = devices.filter((d) => d.deviceInfo.identifier === buildData.device);
39+
}
40+
else if (buildData.emulator) {
3841
devices = devices.filter((d) => d.isEmulator);
3942
}
4043
const abis = devices

0 commit comments

Comments
 (0)