Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 1 addition & 9 deletions lib/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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) {
Expand Down