refactor(Api)!: use version from package.json (#1270)

This commit is contained in:
Raphael von der Grün 2021-07-13 12:27:25 +02:00 committed by GitHub
parent 68a302e9d2
commit 53d60dd707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {