Skip to content

Commit

Permalink
fix(cli): Avoid AndroidManifest.xml not found error on add (#2400)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored and nphyatt committed Mar 5, 2020
1 parent e9a9ebb commit 1996864
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/src/cordova.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,9 @@ ${applicationXMLEntries.join('\n')}
${rootXMLEntries.join('\n')}
</manifest>`;
content = content.replace(new RegExp(('$PACKAGE_NAME').replace('$', '\\$&'), 'g'), config.app.appId);
await writeFileAsync(manifestPath, content);
if (existsSync(manifestPath)) {
await writeFileAsync(manifestPath, content);
}
}

function getPathParts(path: string) {
Expand Down

0 comments on commit 1996864

Please sign in to comment.