You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by au...@apache.org on 2017/08/02 23:58:03 UTC

cordova-lib git commit: CB-13057 : added deprecation warning for cordova platform save

Repository: cordova-lib
Updated Branches:
  refs/heads/master 620d45c41 -> 5d9e33360


CB-13057 : added deprecation warning for cordova platform save


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

Branch: refs/heads/master
Commit: 5d9e3336071d00fc550cb1b042172466a0a86704
Parents: 620d45c
Author: Audrey So <au...@apache.org>
Authored: Tue Aug 1 13:46:59 2017 -0700
Committer: Audrey So <au...@apache.org>
Committed: Tue Aug 1 13:46:59 2017 -0700

----------------------------------------------------------------------
 src/cordova/platform/index.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/5d9e3336/src/cordova/platform/index.js
----------------------------------------------------------------------
diff --git a/src/cordova/platform/index.js b/src/cordova/platform/index.js
index 93c0aee..c6dfaae 100644
--- a/src/cordova/platform/index.js
+++ b/src/cordova/platform/index.js
@@ -21,6 +21,7 @@ var HooksRunner = require('../../hooks/HooksRunner');
 var CordovaError = require('cordova-common').CordovaError;
 var platforms = require('../../platforms/platforms');
 var addHelper = require('./addHelper');
+var events = require('cordova-common').events;
 
 module.exports = platform;
 
@@ -80,6 +81,7 @@ function platform (command, targets, opts) {
         case 'check':
             return module.exports.check(hooksRunner, projectRoot);
         case 'save':
+            events.emit('warn', 'This command has been deprecated and will be removed in the next major release of cordova.');
             return module.exports.save(hooksRunner, projectRoot, opts);
         default:
             return module.exports.list(hooksRunner, projectRoot, opts);


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