Don't try to hack into AndroidManifest if Android is not requested

This commit is contained in:
Slava Kim
2014-10-22 20:03:41 -07:00
parent 501f08d0d8
commit 339af7c22e

View File

@@ -803,7 +803,8 @@ var buildCordova = function (localPath, platforms, options) {
}
// depending on the debug mode build the android part in different modes
if (_.contains(project.getPlatforms(), 'android')) {
if (_.contains(project.getPlatforms(), 'android') &&
_.contains(platforms, 'android')) {
var androidBuildPath = path.join(cordovaPath, 'platforms', 'android');
var manifestPath = path.join(androidBuildPath, 'AndroidManifest.xml');