cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject cordova-lib git commit: CB-10459: cordova platform list should mark amazon-fireos and wp8 as deprecated
Date Wed, 03 Feb 2016 08:37:05 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 8be6c2593 -> ffb779bef


CB-10459: cordova platform list should mark amazon-fireos and wp8 as deprecated

Added depracted information to wp8 and amazon-fireos. This closes #368


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

Branch: refs/heads/master
Commit: ffb779befc9ce8e39bf28096d7a5ff3eefeb1a46
Parents: 8be6c25
Author: Sarangan Rajamanickam <sarajama@microsoft.com>
Authored: Thu Jan 28 16:17:52 2016 -0800
Committer: Vladimir Kotikov <v-vlkoti@microsoft.com>
Committed: Wed Feb 3 11:36:15 2016 +0300

----------------------------------------------------------------------
 cordova-lib/src/cordova/platform.js            | 16 ++++++++-
 cordova-lib/src/platforms/platformsConfig.json | 39 ++++++++++++++-------
 2 files changed, 41 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/ffb779be/cordova-lib/src/cordova/platform.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/platform.js b/cordova-lib/src/cordova/platform.js
index 7c24824..3776e30 100644
--- a/cordova-lib/src/cordova/platform.js
+++ b/cordova-lib/src/cordova/platform.js
@@ -511,13 +511,16 @@ function list(hooksRunner, projectRoot, opts) {
             });
         }));
     }).then(function(platformsText) {
+        platformsText = addDeprecatedInformationToPlatforms(platformsText);
         var results = 'Installed platforms: ' + platformsText.sort().join(', ') + '\n';
         var available = Object.keys(platforms).filter(hostSupports);
 
         available = available.filter(function(p) {
             return platforms_on_fs.indexOf(p) < 0; // Only those not already installed.
         });
-        results += 'Available platforms: ' + available.sort().join(', ');
+
+        available = addDeprecatedInformationToPlatforms(available);
+        results += 'Available platforms: ' + available.sort().join(', ');        
 
         events.emit('results', results);
     }).then(function() {
@@ -525,6 +528,17 @@ function list(hooksRunner, projectRoot, opts) {
     });
 }
 
+function addDeprecatedInformationToPlatforms(platformsList){
+    platformsList = platformsList.map(function(p){
+        var platformKey = p.split(' ')[0]; //Remove Version Information
+        if(platforms[platformKey].deprecated){
+            p = p.concat(' ', '(deprecated)');
+        }
+        return p;
+    });
+    return platformsList;
+}
+
 // Returns a promise.
 module.exports = platform;
 function platform(command, targets, opts) {

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/ffb779be/cordova-lib/src/platforms/platformsConfig.json
----------------------------------------------------------------------
diff --git a/cordova-lib/src/platforms/platformsConfig.json b/cordova-lib/src/platforms/platformsConfig.json
index 3427df3..9581541 100644
--- a/cordova-lib/src/platforms/platformsConfig.json
+++ b/cordova-lib/src/platforms/platformsConfig.json
@@ -4,33 +4,38 @@
         "parser_file": "../cordova/metadata/ios_parser",
         "handler_file": "../plugman/platforms/ios",
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git",
-        "version": "~4.0.1"
+        "version": "~4.0.1",
+        "deprecated": false
     },
     "osx": {
         "hostos": ["darwin"],
         "parser_file": "../cordova/metadata/osx_parser",
         "handler_file": "../plugman/platforms/ios",
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-osx.git",
-        "version": "~4.0.0"
+        "version": "~4.0.0",
+        "deprecated": false
     },
     "android": {
         "parser_file": "../cordova/metadata/android_parser",
         "handler_file": "../plugman/platforms/android",
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-android.git",
-        "version": "~5.1.0"
+        "version": "~5.1.0",
+        "deprecated": false
     },
     "ubuntu": {
         "hostos": ["linux"],
         "parser_file": "../cordova/metadata/ubuntu_parser",
         "handler_file": "../plugman/platforms/ubuntu",
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-ubuntu.git",
-        "version": "~4.3.2"
+        "version": "~4.3.2",
+        "deprecated": false
     },
     "amazon-fireos": {
         "parser_file": "../cordova/metadata/amazon_fireos_parser",
         "handler_file": "../plugman/platforms/amazon-fireos",
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-amazon-fireos.git",
-        "version": "~3.6.3"
+        "version": "~3.6.3",
+        "deprecated": true
     },
     "wp8": {
         "hostos": ["win32"],
@@ -38,50 +43,58 @@
         "handler_file": "../plugman/platforms/wp8",
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-wp8.git",
         "version": "~3.8.2",
-        "altplatform": "wp"
+        "altplatform": "wp",
+        "deprecated": true
     },
     "blackberry10": {
         "parser_file": "../cordova/metadata/blackberry10_parser",
         "handler_file": "../plugman/platforms/blackberry10",
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-blackberry.git",
-        "version": "~3.8.0"
+        "version": "~3.8.0",
+        "deprecated": false
     },
     "www": {
         "hostos": [],
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-app-hello-world.git",
         "source": "git",
-        "version": "~3.10.0"
+        "version": "~3.10.0",
+        "deprecated": false
     },
     "firefoxos": {
         "parser_file": "../cordova/metadata/firefoxos_parser",
         "handler_file": "../plugman/platforms/firefoxos",
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-firefoxos.git",
-        "version": "~3.6.3"
+        "version": "~3.6.3",
+        "deprecated": false
     },
     "windows8": {
         "hostos": ["win32"],
         "parser_file": "../cordova/metadata/windows_parser",
         "handler_file": "../plugman/platforms/windows",
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-windows.git",
-        "version": "~4.3.0"
+        "version": "~4.3.0",
+        "deprecated": false
     },
     "windows": {
         "hostos": ["win32"],
         "parser_file": "../cordova/metadata/windows_parser",
         "handler_file": "../plugman/platforms/windows",
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-windows.git",
-        "version": "~4.3.0"
+        "version": "~4.3.0",
+        "deprecated": false
     },
     "webos": {
         "parser_file": "../cordova/metadata/webos_parser",
         "handler_file": "../plugman/platforms/webos",
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-webos.git",
-        "version": "~3.7.0"
+        "version": "~3.7.0",
+        "deprecated": false
     },
     "browser": {
         "parser_file": "../cordova/metadata/browser_parser",
         "handler_file": "../plugman/platforms/browser",
         "url": "https://git-wip-us.apache.org/repos/asf?p=cordova-browser.git",
-        "version": "~4.0.0"
+        "version": "~4.0.0",
+        "deprecated": false
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message