Skip to content

Commit a21f61d

Browse files
authored
Merge pull request #2114 from NativeScript/plamen5kov/fix_tests
make sure we warn the user if there is no app folder instead of crash
2 parents 62c2632 + b17dd37 commit a21f61d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/common

Submodule common updated 1 file

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)