You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2021/07/13 10:27:35 UTC

[cordova-android] branch master updated: refactor(Api)!: use version from package.json (#1270)

This is an automated email from the ASF dual-hosted git repository.

raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-android.git


The following commit(s) were added to refs/heads/master by this push:
     new 53d60dd  refactor(Api)!: use version from package.json (#1270)
53d60dd is described below

commit 53d60dd70719220a655b1bedb09b20280d92b0d3
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Tue Jul 13 12:27:25 2021 +0200

    refactor(Api)!: use version from package.json (#1270)
---
 lib/Api.js | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/lib/Api.js b/lib/Api.js
index 24519c4..b9b5192 100644
--- a/lib/Api.js
+++ b/lib/Api.js
@@ -17,15 +17,6 @@
     under the License.
 */
 
-/**
- * @todo update coho to update this line.
- * @todo use `package.json` instead but first
- *  figure out how this fit in with the platform-centered workflow structure.
- *  This workflow would not have the `package.json` file.
- */
-// Coho updates this line
-const VERSION = '10.0.0-dev';
-
 var path = require('path');
 
 var AndroidProject = require('./AndroidProject');
@@ -37,6 +28,7 @@ var ConfigParser = require('cordova-common').ConfigParser;
 const prepare = require('./prepare').prepare;
 
 var PLATFORM = 'android';
+const VERSION = require('../package').version;
 
 function setupEvents (externalEventEmitter) {
     if (externalEventEmitter) {

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