From 53d60dd70719220a655b1bedb09b20280d92b0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20von=20der=20Gr=C3=BCn?= Date: Tue, 13 Jul 2021 12:27:25 +0200 Subject: [PATCH] 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 24519c42..b9b51921 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) {