cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bra...@apache.org
Subject [1/4] git commit: Rename parse method and add a write method to result + parseIOSProjectFiles --> parseProjectFile + write method save both pbx and xcode + allow a more common experience
Date Thu, 17 Oct 2013 14:26:35 GMT
Updated Branches:
  refs/heads/master ccc529d24 -> ab8571835


Rename parse method and add a write method to result
+ parseIOSProjectFiles --> parseProjectFile
+ write method save both pbx and xcode
+ allow a more common experience


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/718de942
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/718de942
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/718de942

Branch: refs/heads/master
Commit: 718de942a03bf0c57d9b421d2c663bbc67a80b3f
Parents: ccc529d
Author: SomaticIT <contact@somatic.fr>
Authored: Thu Oct 17 08:02:08 2013 +0200
Committer: SomaticIT <contact@somatic.fr>
Committed: Thu Oct 17 08:02:08 2013 +0200

----------------------------------------------------------------------
 src/platforms/ios.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/718de942/src/platforms/ios.js
----------------------------------------------------------------------
diff --git a/src/platforms/ios.js b/src/platforms/ios.js
index bb5c597..065c4a7 100644
--- a/src/platforms/ios.js
+++ b/src/platforms/ios.js
@@ -115,7 +115,7 @@ module.exports = {
             shell.rm('-rf', destFile);
         }
     },
-    parseIOSProjectFiles:function(project_dir) {
+    parseProjectFile:function(project_dir) {
         // grab and parse pbxproj
         // we don't want CordovaLib's xcode project
         var project_files = glob.sync(path.join(project_dir, '*.xcodeproj', 'project.pbxproj'));
@@ -152,7 +152,10 @@ module.exports = {
             resources_dir:resourcesDir,
             xcode:xcodeproj,
             xcode_path:xcode_dir,
-            pbx:pbxPath
+            pbx: pbxPath,
+            write: function () {
+                fs.writeFileSync(pbxPath, xcodeproj.writeSync());
+            }
         };
     }
 };


Mime
View raw message