We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e61d7aa commit c1b8326Copy full SHA for c1b8326
lib/services/device/device-install-app-service.ts
@@ -59,13 +59,11 @@ export class DeviceInstallAppService {
59
// will always be the case on iOS
60
packageFile = packages[0].packageName;
61
} 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;
+ packages.find(({ packageName })=> {
+ if(device.deviceInfo.abis.some(abi => packageName.includes(abi))) {
+ packageFile = packageName;
+ return true;
67
}
68
- return true;
69
})
70
} else {
71
//we did not find corresponding abi let's try universal
0 commit comments