CB-5447 Removed android:debuggable=“true” from project template.

This commit is contained in:
Andrew Grieve
2013-12-30 11:20:13 -05:00
parent 8e260d5c40
commit 942c77816d
2 changed files with 8 additions and 2 deletions
+7
View File
@@ -187,6 +187,12 @@ exports.createProject = function(project_path, package_name, project_name, proje
});
}
// Attribute removed in Cordova 4.4 (CB-5447).
function removeDebuggableFromManifest(projectPath) {
var manifestPath = path.join(projectPath, 'AndroidManifest.xml');
shell.sed('-i', /\s*android:debuggable="true"/, '', manifestPath);
}
// Returns a promise.
exports.updateProject = function(projectPath) {
var version = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim();
@@ -196,6 +202,7 @@ exports.updateProject = function(projectPath) {
var target_api = check_reqs.get_target();
copyJsAndLibrary(projectPath, false, null);
copyScripts(projectPath);
removeDebuggableFromManifest(projectPath);
return runAndroidUpdate(projectPath, target_api, false)
.then(function() {
console.log('Android project is now at version ' + version);