You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2021/08/31 16:16:58 UTC
[cordova-electron] branch master updated: feat!(Api): remove unused
locations data (#205)
This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-electron.git
The following commit(s) were added to refs/heads/master by this push:
new 3827699 feat!(Api): remove unused locations data (#205)
3827699 is described below
commit 38276994cb2f5928db475d10f2cad3976c799647
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Wed Sep 1 01:14:06 2021 +0900
feat!(Api): remove unused locations data (#205)
---
lib/Api.js | 5 +----
tests/spec/unit/lib/Api.spec.js | 4 +---
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/lib/Api.js b/lib/Api.js
index 95e4cfa..c45be8a 100644
--- a/lib/Api.js
+++ b/lib/Api.js
@@ -73,10 +73,7 @@ class Api {
defaultConfigXml: path.join(this.root, 'cordova/defaults.xml'),
build: path.join(this.root, 'build'),
buildRes: path.join(this.root, 'build-res'),
- cache: path.join(this.root, 'cache'),
- // NOTE: Due to platformApi spec we need to return relative paths here
- cordovaJs: 'bin/templates/project/assets/www/cordova.js',
- cordovaJsSrc: 'cordova-js-src'
+ cache: path.join(this.root, 'cache')
};
this._platformJson = PlatformJson.load(this.root, this.platform);
diff --git a/tests/spec/unit/lib/Api.spec.js b/tests/spec/unit/lib/Api.spec.js
index 6d5b438..9e569ff 100644
--- a/tests/spec/unit/lib/Api.spec.js
+++ b/tests/spec/unit/lib/Api.spec.js
@@ -54,9 +54,7 @@ const mockExpectedLocations = {
defaultConfigXml: path.join(testProjectDir, 'cordova/defaults.xml'),
build: path.join(testProjectDir, 'build'),
buildRes: path.join(testProjectDir, 'build-res'),
- cache: path.join(testProjectDir, 'cache'),
- cordovaJs: 'bin/templates/project/assets/www/cordova.js',
- cordovaJsSrc: 'cordova-js-src'
+ cache: path.join(testProjectDir, 'cache')
};
describe('Api class', () => {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org