cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [1/9] git commit: CB-7219: initial work for cordova.js platformVersion
Date Wed, 24 Sep 2014 22:52:38 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 3ead61c5e -> 8abfaf18c


CB-7219: initial work for cordova.js platformVersion


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

Branch: refs/heads/master
Commit: c90997f9d2f19f7e2041eaafd85bb15faedebbc3
Parents: c4ab88d
Author: Steven Gill <stevengill97@gmail.com>
Authored: Mon Aug 11 15:00:45 2014 -0700
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Mon Aug 11 15:00:45 2014 -0700

----------------------------------------------------------------------
 cordova-lib/src/plugman/prepare-browserify.js | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/c90997f9/cordova-lib/src/plugman/prepare-browserify.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/prepare-browserify.js b/cordova-lib/src/plugman/prepare-browserify.js
index ed2bdf9..6a776fb 100644
--- a/cordova-lib/src/plugman/prepare-browserify.js
+++ b/cordova-lib/src/plugman/prepare-browserify.js
@@ -62,10 +62,13 @@ function uninstallQueuedPlugins(platform_json, wwwDir) {
 function generateFinalBundle(platform, libraryRelease, outReleaseFile) {
 
     var outReleaseFileStream = fs.createWriteStream(outReleaseFile);
+    //TODO: Need to generate commitID
     var commitId = 'N/A';
     var time = new Date().valueOf();
+    //TODO: Need to generate platform version
+    var platformVersion = '3.6.0';
 
-    writeLicenseHeader(outReleaseFileStream, platform, commitId);
+    writeLicenseHeader(outReleaseFileStream, platform, commitId, platformVersion);
 
     var releaseBundle = libraryRelease.bundle();
 
@@ -110,7 +113,9 @@ module.exports = function handlePrepare(project_dir, platform, plugins_dir,
www_
     if(!is_top_level) return;
 
     requireTr.platform = platform;
-    var libraryRelease = bundle(platform, false, 'N/A');
+    var platformVersion = '3.6.0';
+    var commitId = '10';
+    var libraryRelease = bundle(platform, false, commitId, platformVersion);
 
     platform_json = config_changes.get_platform_json(plugins_dir, platform);
     var plugins = Object.keys(platform_json.installed_plugins).concat(Object.keys(platform_json.dependent_plugins));


Mime
View raw message