mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-07 14:53:00 +08:00
refactor(Api)!: use version from package.json (#1270)
This commit is contained in:
parent
68a302e9d2
commit
53d60dd707
10
lib/Api.js
10
lib/Api.js
@ -17,15 +17,6 @@
|
|||||||
under the License.
|
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 path = require('path');
|
||||||
|
|
||||||
var AndroidProject = require('./AndroidProject');
|
var AndroidProject = require('./AndroidProject');
|
||||||
@ -37,6 +28,7 @@ var ConfigParser = require('cordova-common').ConfigParser;
|
|||||||
const prepare = require('./prepare').prepare;
|
const prepare = require('./prepare').prepare;
|
||||||
|
|
||||||
var PLATFORM = 'android';
|
var PLATFORM = 'android';
|
||||||
|
const VERSION = require('../package').version;
|
||||||
|
|
||||||
function setupEvents (externalEventEmitter) {
|
function setupEvents (externalEventEmitter) {
|
||||||
if (externalEventEmitter) {
|
if (externalEventEmitter) {
|
||||||
|
Loading…
Reference in New Issue
Block a user