From 06660383e143d9c36db826f6a93b5aecd6067e6b Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Fri, 24 Jan 2014 10:40:09 -0500 Subject: [PATCH] CB-5889 Make update script find project name instead of using "null" for CordovaLib --- bin/lib/create.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/bin/lib/create.js b/bin/lib/create.js index b2321bdb..8025a0b6 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -202,18 +202,29 @@ 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'); + var manifestPath = path.join(projectPath, 'AndroidManifest.xml'); shell.sed('-i', /\s*android:debuggable="true"/, '', manifestPath); } +function extractProjectNameFromManifest(projectPath) { + var manifestPath = path.join(projectPath, 'AndroidManifest.xml'); + var manifestData = fs.readFileSync(manifestPath, 'utf8'); + var m = /