Skip to content

Commit 2e81254

Browse files
committed
make sure we warn the user if there is no app folder instead of crash
1 parent 6180c8e commit 2e81254

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/services/android-project-service.ts

+5
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
313313
return (() => {
314314
let originalAndroidManifestFilePath = path.join(this.$projectData.appResourcesDirectoryPath, this.$devicePlatformsConstants.Android, this.platformData.configurationFileName);
315315

316+
let manifestExists = this.$fs.exists(originalAndroidManifestFilePath).wait();
317+
if(!manifestExists) {
318+
this.$logger.warn('No manifest found in ' + originalAndroidManifestFilePath);
319+
return;
320+
}
316321
// Overwrite the AndroidManifest from runtime.
317322
this.$fs.copyFile(originalAndroidManifestFilePath, this.platformData.configurationFilePath).wait();
318323
}).future<void>()();

0 commit comments

Comments
 (0)