Skip to content

Commit e61d7aa

Browse files
committed
Merge remote-tracking branch 'origin/new_big_merge_test' into new_big_merge_test
2 parents 45d518b + 2bbe084 commit e61d7aa

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

lib/controllers/platform-controller.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export class PlatformController implements IPlatformController {
6969
addPlatformData
7070
);
7171
const buildPath = projectData.platformsDir;
72-
console.log('buildPath', buildPath, projectData.getBuildRelativeDirectoryPath())
7372
this.$fs.ensureDirectoryExists(
7473
path.join(projectData.platformsDir, platform)
7574
);

lib/controllers/prepare-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export class PrepareController extends EventEmitter {
289289
data.platform.toLowerCase() === platformData.platformNameLowerCase
290290
) {
291291
if (this.isFileWatcherPaused()) return;
292-
this.emitPrepareEvent({ ...data, files: data.files || [], hasNativeChanges: false });
292+
this.emitPrepareEvent({ ...data, files: data.files ?? [], hasNativeChanges: false });
293293
}
294294
};
295295

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export class DeviceInstallAppService {
6969
})
7070
} else {
7171
//we did not find corresponding abi let's try universal
72-
const index = packages.findIndex(p => p.packageName.indexOf('universal') !== -1);
73-
if (index !== -1) {
74-
packageFile = packages[index].packageName;
72+
const universalPackage = packages.find(p => p.packageName.includes('universal'));
73+
if (universalPackage) {
74+
packageFile = universalPackage.packageName;
7575
}
7676
}
7777

0 commit comments

Comments
 (0)