Skip to content

Commit c1b8326

Browse files
committed
chore: adress comments
1 parent e61d7aa commit c1b8326

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/services/device/device-install-app-service.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,11 @@ export class DeviceInstallAppService {
5959
// will always be the case on iOS
6060
packageFile = packages[0].packageName;
6161
} else if (device.deviceInfo.abis) {
62-
device.deviceInfo.abis.every(abi=>{
63-
const index = packages.findIndex(p => p.packageName.indexOf(abi) !== -1);
64-
if (index !== -1) {
65-
packageFile = packages[index].packageName;
66-
return false;
62+
packages.find(({ packageName })=> {
63+
if(device.deviceInfo.abis.some(abi => packageName.includes(abi))) {
64+
packageFile = packageName;
65+
return true;
6766
}
68-
return true;
6967
})
7068
} else {
7169
//we did not find corresponding abi let's try universal

0 commit comments

Comments
 (0)