cordova-android.git
22 hours agochore: bump version 11.0.1-dev master
Erisu [Thu, 30 Jun 2022 12:53:33 +0000 (21:53 +0900)] 
chore: bump version 11.0.1-dev

23 hours agorelease(android-v11.0.0): updated version and RELEASENOTES.md 11.0.x 11.0.0
Erisu [Thu, 30 Jun 2022 12:43:31 +0000 (21:43 +0900)] 
release(android-v11.0.0): updated version and RELEASENOTES.md

23 hours agofix: support installing platfrom from local git checkout (#1453)
エリス [Thu, 30 Jun 2022 12:35:27 +0000 (21:35 +0900)] 
fix: support installing platfrom from local git checkout (#1453)

24 hours agodep: bump jasmine@4.2.1 w/ package-lock rebuild (#1452)
エリス [Thu, 30 Jun 2022 11:25:06 +0000 (20:25 +0900)] 
dep: bump jasmine@4.2.1 w/ package-lock rebuild (#1452)

24 hours agochore: display warning on deprecated <splash> tag usage (#1451)
エリス [Thu, 30 Jun 2022 11:00:25 +0000 (20:00 +0900)] 
chore: display warning on deprecated <splash> tag usage (#1451)

* chore: display warning on deprecated <splash> tag usage
* test: create spy on warnForDeprecatedSplashScreen

33 hours agofeat!: android 12 splash screen (#1441)
エリス [Thu, 30 Jun 2022 01:49:10 +0000 (10:49 +0900)] 
feat!: android 12 splash screen (#1441)

* chore!: remove old splashscreen logic
* feat(splashscreen): add backwards compatibility
* chore: remove unused method
* chore: prefix splashscreen_background with cdv_
* feat: support android 12 splashscreen api configs
* feat: improve & refactor the logic for android splashscreen api 12
* feat: splashscreen copy image resources
* feat: splashscreen branding image & xml cleanup
* fix: splashscreen cleanup & branding conditions
* fix: splashscreen @color usage
* feat: update default Apache Cordova splash screen
* chore: add missing asf header
* fix: splashscreen image size
* chore: use Theme.SplashScreen.IconBackground as default parent to support windowSplashScreenIconBackgroundColor
* fix: center default test image by correct pivot
* fix: fs-extra copySync
* feat: re-add AutoHideSplashScreen and SplashScreenDelay preference support
* chore: move splashscreen into CordovaActivity
* feat: support splashscreen.hide & centralize to SplashScreenPlugin
* chore: cleanup SplashScreenPlugin
* feat: support fade, default auto hide on onPageFinished, support delays, refactor
* refactor: cleanup splash screen
* refactor: cleanup remove unused import
* chore: add show method as unsupported
* test: create a spy on updateProjectSplashScreen
* style: add ending new line
* chore: improve logging to warn when image path is missing
* chore: split windowSplashScreenAnimatedIcon and windowSplashScreenBrandingImage case and added branding warning
* chore: improve when to display warning
* fix: add splashscreen dependency to app as well
* chore: move the core-splashscreen dep lower

Co-authored-by: Niklas Merz <niklasmerz@linux.com>
2 days agofix: accept file cookies only if AndroidInsecureFileModeEnabled (#1449)
jcesarmobile [Wed, 29 Jun 2022 02:36:55 +0000 (04:36 +0200)] 
fix: accept file cookies only if AndroidInsecureFileModeEnabled (#1449)

2 days agofeat: Update androidx.appcompat version (#1448)
jcesarmobile [Wed, 29 Jun 2022 02:34:08 +0000 (04:34 +0200)] 
feat: Update androidx.appcompat version (#1448)

3 days agofeat: Update gradle plugin version (#1446)
jcesarmobile [Tue, 28 Jun 2022 03:23:42 +0000 (05:23 +0200)] 
feat: Update gradle plugin version (#1446)

3 days agofeat: Update google services pluging (#1447)
jcesarmobile [Tue, 28 Jun 2022 03:23:10 +0000 (05:23 +0200)] 
feat: Update google services pluging (#1447)

3 days agofix!: set & use ANDROID_HOME as default (#1444)
エリス [Mon, 27 Jun 2022 13:07:32 +0000 (22:07 +0900)] 
fix!: set & use ANDROID_HOME as default (#1444)

* fix: remove ANDROID_HOME's DEPRECATED text
* fix: check_gradle to check ANDROID_HOME first ANDROID_SDK_ROOT last
* fix: set ANDROID_HOME
* chore: deprecate flag on ANDROID_SDK_ROOT

10 days agofix: force hostname to lowercase (#1443)
エリス [Mon, 20 Jun 2022 14:25:57 +0000 (23:25 +0900)] 
fix: force hostname to lowercase (#1443)

4 weeks agoci: update github action workflow (#1439)
エリス [Fri, 3 Jun 2022 06:05:38 +0000 (15:05 +0900)] 
ci: update github action workflow (#1439)

* ci: bump actions/checkout dependency
* ci: bump actions/setup-node dependency
* ci: bump codecov/codecov-action dependency
* ci: migrate from adopt to temurin

4 weeks agochore: Remove unneeded deprecated annotation (#1430)
jcesarmobile [Wed, 1 Jun 2022 23:13:25 +0000 (01:13 +0200)] 
chore: Remove unneeded deprecated annotation (#1430)

6 weeks agofix: restore checkReqs in prepare.js (#1434)
エリス [Wed, 18 May 2022 15:49:52 +0000 (00:49 +0900)] 
fix: restore checkReqs in prepare.js (#1434)

6 weeks agofeat: support custom compileSdk setting (#1431)
エリス [Wed, 18 May 2022 14:18:33 +0000 (23:18 +0900)] 
feat: support custom compileSdk setting (#1431)

* feat: support custom compileSdk setting
* chore: apply suggestions from code review
* chore: apply cdv-gradle-config-defaults.json suggestion
* fix: set compile sdk when null
* fix: move compileSdk null check to gradle
* fix: compile sdk requirement warning & display in gradle per subproject

Co-authored-by: Norman Breau <norman@nbsolutions.ca>
6 weeks agofix(android): move MainActivity.java to folder that tracks the app package name ...
wedgberto [Wed, 18 May 2022 14:11:31 +0000 (15:11 +0100)] 
fix(android): move MainActivity.java to folder that tracks the app package name (widget id) (#1154)

* move mainactivity.java

* unit test for moving mainactivity.java

* fix new unit test

* eslint fixes

* add explicit elementtree npm dependency

Co-authored-by: David Wedgbury <david.wedgbury@telent.com>
6 weeks ago[Android] Added support for BoM imports (#1311)
ebhsgit [Wed, 18 May 2022 04:10:15 +0000 (14:10 +1000)] 
[Android] Added support for BoM imports (#1311)

* Added support for BoM imports

https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import

Changes

* propertiesObj.systemLibs regex - exclude the value contains (
* added propertiesObj.bomPlatforms - any value which matches platform("...")

* Fix eslint style issues

Co-authored-by: 8bhsolutions <48874658+8bhsolutions@users.noreply.github.com>
8 weeks agofeat: API 32 support (#1427)
Norman Breau [Tue, 3 May 2022 23:13:17 +0000 (20:13 -0300)] 
feat: API 32 support (#1427)

2 months agoci: Added Node 18 to test matrix (#1424)
Norman Breau [Fri, 22 Apr 2022 14:58:44 +0000 (11:58 -0300)] 
ci: Added Node 18 to test matrix (#1424)

2 months agochore(npm): bump @cordova/eslint-config@^4.0.0 (#1421)
エリス [Mon, 18 Apr 2022 01:39:54 +0000 (10:39 +0900)] 
chore(npm): bump @cordova/eslint-config@^4.0.0 (#1421)

* chore(npm): bump @cordova/eslint-config@^4.0.0
* style(lint): apply auto corrections
* style(lint): convert hasAndroidHome var to let and hoisted

2 months agochore(npm): bump dependencies (#1420)
エリス [Sun, 17 Apr 2022 13:02:40 +0000 (22:02 +0900)] 
chore(npm): bump dependencies (#1420)

* chore(npm): bump dev dependencies
* chore(npm): bump release dependencies

2 months agofeat!: API 31 support (#1410)
Norman Breau [Sun, 17 Apr 2022 10:43:45 +0000 (07:43 -0300)] 
feat!: API 31 support (#1410)

* feat(breaking): API 31 support
* ci: bump actions/setup-java@3 w/ java 11
* ci: set setup-java distribution to adopt

Co-authored-by: Erisu <erisu@apache.org>
2 months agochore(breaking): Drop Node 12 support (#1411)
Norman Breau [Sun, 17 Apr 2022 10:43:11 +0000 (07:43 -0300)] 
chore(breaking): Drop Node 12 support (#1411)

2 months agochore: bump for next major 11.0.0-dev (#1419)
エリス [Sun, 17 Apr 2022 10:06:51 +0000 (19:06 +0900)] 
chore: bump for next major 11.0.0-dev (#1419)

2 months agochore: bump version 10.1.3-dev
Erisu [Mon, 11 Apr 2022 13:10:31 +0000 (22:10 +0900)] 
chore: bump version 10.1.3-dev

2 months agoandroid-v10.1.2 Updated version and RELEASENOTES.md for release 10.1.2 10.1.x 10.1.2 rel/10.1.2
Erisu [Mon, 11 Apr 2022 13:01:02 +0000 (22:01 +0900)] 
android-v10.1.2 Updated version and RELEASENOTES.md for release 10.1.2

2 months agochore: update package-lock to satisfy npm audit (#1413)
Norman Breau [Wed, 6 Apr 2022 14:59:21 +0000 (11:59 -0300)] 
chore: update package-lock to satisfy npm audit (#1413)

3 months agofix: detect JAVA_HOME with Java 11 (#1406)
Lars Mikkelsen [Thu, 17 Mar 2022 23:38:04 +0000 (19:38 -0400)] 
fix: detect JAVA_HOME with Java 11 (#1406)

4 months agofix(GH-1391): Reword minimum build tools version to make it more clear what is actual...
Norman Breau [Tue, 22 Feb 2022 14:14:22 +0000 (10:14 -0400)] 
fix(GH-1391): Reword minimum build tools version to make it more clear what is actually required. (#1401)

4 months agofix: escape strings.xml app name (#1384)
Tiago Pereira [Tue, 8 Feb 2022 02:29:36 +0000 (02:29 +0000)] 
fix: escape strings.xml app name (#1384)

8 months agofeat(AndroidManifest): explicitly define the activity attribute android:exported...
エリス [Thu, 28 Oct 2021 08:29:55 +0000 (17:29 +0900)] 
feat(AndroidManifest): explicitly define the activity attribute android:exported (#1372)

9 months agochore: npmrc (#1348)
Norman Breau [Fri, 17 Sep 2021 12:54:59 +0000 (09:54 -0300)] 
chore: npmrc (#1348)

9 months agochore: bump version 10.1.2-dev
Erisu [Mon, 13 Sep 2021 11:17:31 +0000 (20:17 +0900)] 
chore: bump version 10.1.2-dev

9 months agoandroid-v10.1.1 Updated version and RELEASENOTES.md for release 10.1.1 10.1.1 rel/10.1.1
Erisu [Mon, 13 Sep 2021 06:56:27 +0000 (15:56 +0900)] 
android-v10.1.1 Updated version and RELEASENOTES.md for release 10.1.1

9 months agofix(PluginManager): AllowNavigation default policy to handle scheme & hostname (...
エリス [Mon, 13 Sep 2021 06:48:02 +0000 (15:48 +0900)] 
fix(PluginManager): AllowNavigation default policy to handle scheme & hostname (#1349)

9 months agofix(AllowListPlugin): Safely handle default allow navigation policy in allow request...
Joel Skrepnek [Thu, 9 Sep 2021 05:58:58 +0000 (22:58 -0700)] 
fix(AllowListPlugin): Safely handle default allow navigation policy in allow request (#1342)

9 months agofix(PluginManager): AllowBridgeAccess default policy to handle scheme & hostname...
エリス [Tue, 7 Sep 2021 10:52:23 +0000 (19:52 +0900)] 
fix(PluginManager): AllowBridgeAccess default policy to handle scheme & hostname (#1332)

10 months agochore: bump version 10.1.1-dev
Erisu [Fri, 13 Aug 2021 04:42:59 +0000 (13:42 +0900)] 
chore: bump version 10.1.1-dev

10 months agoandroid-v10.1.0 Updated version and RELEASENOTES.md for release 10.1.0 10.1.0 rel/10.1.0
Erisu [Fri, 13 Aug 2021 04:26:31 +0000 (13:26 +0900)] 
android-v10.1.0 Updated version and RELEASENOTES.md for release 10.1.0

10 months agofeat: unify `create` default values & stop project name transform (#1213)
Alexis THOMAS [Fri, 13 Aug 2021 03:52:30 +0000 (05:52 +0200)] 
feat: unify `create` default values & stop project name transform (#1213)

10 months agofix: display project name in Android Studio (#1214)
Alexis THOMAS [Fri, 13 Aug 2021 03:08:18 +0000 (05:08 +0200)] 
fix: display project name in Android Studio (#1214)

10 months agodoc: update README about development & testing (#1308)
Alexis THOMAS [Fri, 13 Aug 2021 02:28:47 +0000 (04:28 +0200)] 
doc: update README about development & testing (#1308)

Co-authored-by: エリス <erisu@users.noreply.github.com>
10 months agofeat: bump ANDROIDX_APP_COMPAT@1.3.1 (#1306)
Mosab A [Mon, 2 Aug 2021 07:34:06 +0000 (10:34 +0300)] 
feat: bump ANDROIDX_APP_COMPAT@1.3.1 (#1306)

10 months agofeat: bump Google Services Gradle Plugin@4.3.8 (#1303)
Mosab A [Mon, 2 Aug 2021 05:21:11 +0000 (08:21 +0300)] 
feat: bump Google Services Gradle Plugin@4.3.8 (#1303)

10 months agofeat: bump kotlin@1.5.21 (#1302)
Mosab A [Mon, 2 Aug 2021 05:21:02 +0000 (08:21 +0300)] 
feat: bump kotlin@1.5.21 (#1302)

10 months agofix: fall back to project root repositories.gradle (#1300)
エリス [Mon, 2 Aug 2021 05:19:40 +0000 (14:19 +0900)] 
fix: fall back to project root repositories.gradle (#1300)

11 months agofeat: support http w/ content src fix (#1298)
エリス [Fri, 30 Jul 2021 08:08:23 +0000 (17:08 +0900)] 
feat: support http w/ content src fix (#1298)

11 months agochore: bump version 10.1.0-dev (#1301)
エリス [Fri, 30 Jul 2021 08:08:04 +0000 (17:08 +0900)] 
chore: bump version 10.1.0-dev (#1301)

11 months agochore: bump version 10.0.2-dev
Erisu [Tue, 27 Jul 2021 14:23:36 +0000 (23:23 +0900)] 
chore: bump version 10.0.2-dev

11 months agoandroid-v10.0.1 Updated version and RELEASENOTES.md for release 10.0.1 10.0.x 10.0.1 rel/10.0.1
Erisu [Tue, 27 Jul 2021 13:50:34 +0000 (22:50 +0900)] 
android-v10.0.1 Updated version and RELEASENOTES.md for release 10.0.1

11 months agofix: maven-publish setup (#1295)
エリス [Tue, 27 Jul 2021 12:03:14 +0000 (21:03 +0900)] 
fix: maven-publish setup (#1295)

11 months agofix: gradle build tools config (#1293)
Norman Breau [Mon, 26 Jul 2021 16:26:42 +0000 (13:26 -0300)] 
fix: gradle build tools config (#1293)

11 months agofix: automatic latest build tools finding (#1294)
Norman Breau [Mon, 26 Jul 2021 16:17:25 +0000 (13:17 -0300)] 
fix: automatic latest build tools finding (#1294)

11 months agofix: add missing release notes (#1291)
エリス [Sat, 24 Jul 2021 12:44:17 +0000 (21:44 +0900)] 
fix: add missing release notes (#1291)

* CB-14203 Update RELEASENOTES & version for 7.1.1
* Update RELEASENOTES & version for v7.1.2
* Update VERSION & RELEASENOTES for 7.1.3
* Update VERSION & RELEASENOTES for 7.1.4

Co-authored-by: Christopher J. Brody <chris.brody@gmail.com>
Co-authored-by: Darryl Pogue <darryl@dpogue.ca>
11 months agofix: Google Services Gradle Plugin version check failure (#1287)
エリス [Tue, 20 Jul 2021 08:49:21 +0000 (17:49 +0900)] 
fix: Google Services Gradle Plugin version check failure (#1287)

11 months agochore: update readme requirements (#1286)
エリス [Tue, 20 Jul 2021 08:49:13 +0000 (17:49 +0900)] 
chore: update readme requirements (#1286)

11 months agochore: set version for patch release (#1285)
エリス [Tue, 20 Jul 2021 08:49:04 +0000 (17:49 +0900)] 
chore: set version for patch release (#1285)

11 months agoSet VERSION to 10.1.0-dev (via coho)
Erisu [Sat, 17 Jul 2021 05:04:44 +0000 (14:04 +0900)] 
Set VERSION to 10.1.0-dev (via coho)

11 months agoandroid-v10.0.0 Updated version and RELEASENOTES.md for release 10.0.0 10.0.0 rel/10.0.0
Erisu [Sat, 17 Jul 2021 04:56:20 +0000 (13:56 +0900)] 
android-v10.0.0 Updated version and RELEASENOTES.md for release 10.0.0

11 months agofix: add missing apache-license header to getASPath.bat (#1283)
エリス [Fri, 16 Jul 2021 08:59:30 +0000 (17:59 +0900)] 
fix: add missing apache-license header to getASPath.bat (#1283)

11 months agochore!: bump all dependencies (#1279)
エリス [Thu, 15 Jul 2021 12:02:32 +0000 (21:02 +0900)] 
chore!: bump all dependencies (#1279)

* chore: bump jasmine@^3.8.0
* chore!: bump release dependencies

- android-versions@^1.7.0
- execa@^5.1.1
- fast-glob@^3.2.7
- fs-extra@^10.0.0

* chore: rebuilt package-lock.json

11 months agochore!: drop node 10 support (#1278)
エリス [Thu, 15 Jul 2021 03:32:56 +0000 (12:32 +0900)] 
chore!: drop node 10 support (#1278)

11 months agofix: add WebViewAssetloader to default allow list (#1275)
Niklas Merz [Wed, 14 Jul 2021 13:29:15 +0000 (15:29 +0200)] 
fix: add WebViewAssetloader to default allow list (#1275)

11 months agobuild: build cordova.js during npm prepare (#1271)
Raphael von der Grün [Wed, 14 Jul 2021 08:25:34 +0000 (10:25 +0200)] 
build: build cordova.js during npm prepare (#1271)

11 months agoRemove gradle.daemon from default forced settings (#1276)
エリス [Wed, 14 Jul 2021 08:22:11 +0000 (17:22 +0900)] 
Remove gradle.daemon from default forced settings (#1276)

Co-authored-by: Fernando Serboncini <fserb@fserb.com.br>
11 months agocleanup!: remove deprecated settings & add todo comments (#1274)
エリス [Wed, 14 Jul 2021 06:37:12 +0000 (15:37 +0900)] 
cleanup!: remove deprecated settings & add todo comments (#1274)

* chore: add todo task for setSaveFormData
* cleanup!: remove deprecated setSavePassword
* cleanup!: remove deprecated setDatabasePath
* chore: add todo task for setGeolocationDatabasePath

11 months agochore: remove old VERSION file (#1273)
エリス [Wed, 14 Jul 2021 06:34:27 +0000 (15:34 +0900)] 
chore: remove old VERSION file (#1273)

11 months agofix: request focus after custom view hided (#1216)
Dominik Hendrix [Wed, 14 Jul 2021 02:42:19 +0000 (04:42 +0200)] 
fix: request focus after custom view hided (#1216)

Co-authored-by: Dominik Hendrix <hendrix@schaffrath-digital.de>
11 months agocleanup: delete old ANT & Eclipse files (#1272)
エリス [Wed, 14 Jul 2021 02:38:40 +0000 (11:38 +0900)] 
cleanup: delete old ANT & Eclipse files (#1272)

11 months agorefactor(Api)!: use version from package.json (#1270)
Raphael von der Grün [Tue, 13 Jul 2021 10:27:25 +0000 (12:27 +0200)] 
refactor(Api)!: use version from package.json (#1270)

11 months agofix(build): support tilde expansion on windows (#563)
hiepxanh [Tue, 13 Jul 2021 10:02:09 +0000 (17:02 +0700)] 
fix(build): support tilde expansion on windows (#563)

Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
11 months agorefactor!: do not copy JS lib to platform project (#1269)
Raphael von der Grün [Tue, 13 Jul 2021 09:01:50 +0000 (11:01 +0200)] 
refactor!: do not copy JS lib to platform project (#1269)

11 months agofeat!: release build defaults to aab package type (#1268)
エリス [Tue, 13 Jul 2021 07:34:38 +0000 (16:34 +0900)] 
feat!: release build defaults to aab package type (#1268)

11 months agorefactor: do not infer project root from script location (#1265)
Raphael von der Grün [Tue, 13 Jul 2021 06:51:20 +0000 (08:51 +0200)] 
refactor: do not infer project root from script location (#1265)

* fix(Api): do not infer project root from script location

* fix(builders): do not infer project root from script location

* fix(target): do not infer project root from script location

* test(e2e): cleanup and extend E2E tests

- Renames the file with the only existing E2E test
- Makes existing test use the API instance returned by
  `Api.createPlatform`
- Adds another test that ensures we can still require the API from
  `platformProjectPath/cordova/Api.js`

* fix(check_reqs): do not infer project root from script location

11 months agorefactor: use target SDK of built APK to determine best emulator (#1267)
Raphael von der Grün [Mon, 12 Jul 2021 07:48:36 +0000 (09:48 +0200)] 
refactor: use target SDK of built APK to determine best emulator (#1267)

* refactor(emulator): require emulatorId in emulator.run

* refactor: use effective targetSdk to find best emulator

11 months agorefactor(run)!: cleanup run method (#1266)
Raphael von der Grün [Sun, 11 Jul 2021 13:47:07 +0000 (15:47 +0200)] 
refactor(run)!: cleanup run method (#1266)

* refactor(run)!: get rid of emit-and-throw & throw-literal antipatterns

* refactor(run)!: convert run method to async/await

* refactor(run): require build module in advance

* refactor(run): minor cleanup

* refactor(run): drop always-undefined option arch

`parseBuildOptions` only sets `arch` if something truthy is passed for
parameter `resolvedTarget` to which we pass `null`.

* refactor(run): destructure buildOptions

11 months agofeat: remove java 1.8 version check (#1241)
jcesarmobile [Wed, 7 Jul 2021 11:19:09 +0000 (13:19 +0200)] 
feat: remove java 1.8 version check (#1241)

11 months agofix: missing super.onRequestPermissionsResult error (MissingSuperCall) (#1264)
エリス [Wed, 7 Jul 2021 10:57:33 +0000 (19:57 +0900)] 
fix: missing super.onRequestPermissionsResult error (MissingSuperCall) (#1264)

11 months agofeat: bump appcompat@1.3.0 (#1262)
エリス [Wed, 7 Jul 2021 02:17:05 +0000 (11:17 +0900)] 
feat: bump appcompat@1.3.0 (#1262)

11 months agofeat: bump gradle@7.1.1 (#1257)
エリス [Wed, 7 Jul 2021 02:11:24 +0000 (11:11 +0900)] 
feat: bump gradle@7.1.1 (#1257)

11 months agofeat: bump android-gradle-plugin@4.2.2 (#1255)
エリス [Wed, 7 Jul 2021 02:08:03 +0000 (11:08 +0900)] 
feat: bump android-gradle-plugin@4.2.2 (#1255)

11 months agofeat: bump kotlin@1.5.20 (#1256)
エリス [Wed, 7 Jul 2021 01:55:47 +0000 (10:55 +0900)] 
feat: bump kotlin@1.5.20 (#1256)

* feat: bump kotlin@1.5.10
* fix: kotlin@1.5.20 (applied suggestion)

Co-authored-by: jcesarmobile <jcesarmobile@gmail.com>
11 months agofeat: bump android.webkit@1.4.0 (#1258)
エリス [Wed, 7 Jul 2021 01:55:17 +0000 (10:55 +0900)] 
feat: bump android.webkit@1.4.0 (#1258)

11 months agotest(check_reqs): do not hardcode DEFAULT_TARGET_API (#1263)
Raphael von der Grün [Tue, 6 Jul 2021 16:12:00 +0000 (18:12 +0200)] 
test(check_reqs): do not hardcode DEFAULT_TARGET_API (#1263)

Should have been part of #1212

11 months agofeat: support webkit version override (#1254)
エリス [Tue, 6 Jul 2021 14:39:12 +0000 (23:39 +0900)] 
feat: support webkit version override (#1254)

11 months agorefactor: gradle cleanup (#1253)
エリス [Tue, 6 Jul 2021 13:38:16 +0000 (22:38 +0900)] 
refactor: gradle cleanup (#1253)

* refactor: move androidx.webkit version to cdv-gradle-config-defaults
* chore: remove unnecessary cordova.gradle apply
* refactor: maven publish to use version info from package.json
* refactor: separate framwork publishing outside of app dev scope

11 months agorefactor!: remove most platform binaries (#1100)
Raphael von der Grün [Tue, 6 Jul 2021 13:37:46 +0000 (15:37 +0200)] 
refactor!: remove most platform binaries (#1100)

* Remove binaries cordova/lib/*

* Remove binary bin/android_sdk_version

* Remove binary bin/update script

* Remove binary bin/check_reqs

* Remove binary bin/create script

* Remove binary cordova/build

* Remove binary cordova/run

* Remove binary cordova/clean

* Remove binary cordova/log

* Remove unused module cordova/loggingHelper

* Update README

* Restore target-listing binaries used by CLI

Usage: cordova-lib/src/cordova/targets.js

* Restore binary bin/android_sdk_version for CLI compatibility

This is used in CLI to implement an Android SDK version check for plugins.
See https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#engines-and-engine

* Remove version.bat

11 months agorefactor(check_reqs): drop originalError param from check_android_target (#1260)
Raphael von der Grün [Tue, 6 Jul 2021 11:33:26 +0000 (13:33 +0200)] 
refactor(check_reqs): drop originalError param from check_android_target (#1260)

11 months agotests(prepare): factor out common vars (#1259)
Raphael von der Grün [Tue, 6 Jul 2021 11:01:37 +0000 (13:01 +0200)] 
tests(prepare): factor out common vars (#1259)

11 months agofeat!: drop abandoned com.github.dcendents:android-maven-gradle-plugin (#1252)
エリス [Tue, 6 Jul 2021 06:57:40 +0000 (15:57 +0900)] 
feat!: drop abandoned com.github.dcendents:android-maven-gradle-plugin (#1252)

* feat: use maven-publish plugin (mavenCentral)
* fix: Apache License url
* fix: framework build failure without useAndroidX
* fix: add aar build artifact

11 months agofeat!: unify & fix gradle library/tooling overrides (#1212)
Norman Breau [Tue, 6 Jul 2021 06:38:28 +0000 (03:38 -0300)] 
feat!: unify & fix gradle library/tooling overrides (#1212)

* enhancement: Control SDK versions and other default projects in one place
* fix: target/compile sdk usage
* refactor: cleanup gradle process
* chore: cleanup and remove unused changes
* chore: remove more unneeded FILE_PATH
* chore: fix lint error
* revert change intended to be part of a different PR
* chore: apply changes to revert to fit new changes
* fix: Ensure proper types
* breaking: Removed TempateFile class
  * Replaced the one and only usage of it with the properties-parser editor.
  * Breaking change because we are converting a method into an asynchronous method.
* refactor: Use the sync version of properties editor
* Gh 1178 fix sdk use gradlearg fix (#2)
* fix: readd gradleArg support
* fix: variable name
* refactor: remove unused mock variables
* Update bin/templates/cordova/lib/builders/ProjectBuilder.js
* Update bin/lib/create.js
* fix: const naming (review suggestion)
* fix: use defaults for framework building
* chore: apply review suggestion
* chore: rename config.json & defaults.json (review suggestions)
* refactor: updateUserProjectGradleConfig method
* refactor: minor changes in updateUserProjectGradleConfig
* refactor: major changes in updateUserProjectGradleConfig
* fix: wrong handling of missing preferences
* fix: usage of undefined this
* fix(create.spec): mocking of getPreference
* test(check_reqs): reduce diff size
* refactor: add wrapper to load gradle config defaults
* fix(check_reqs): get_target
  * Reads default SDK from default gradle config now
* fix(check_reqs.spec): return correct types from mocks
* revert to using get_target in create
* fix: e2e test

Co-authored-by: Erisu <ellis.bryan@gmail.com>
Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
11 months agobreaking: drop jcenter & update dependencies (#1251)
エリス [Sat, 3 Jul 2021 04:04:13 +0000 (13:04 +0900)] 
breaking: drop jcenter & update dependencies (#1251)

11 months agofeat(allow-list)!: integrate and refactor core plugin (#1138)
エリス [Fri, 2 Jul 2021 02:52:05 +0000 (11:52 +0900)] 
feat(allow-list)!: integrate and refactor core plugin (#1138)

* refactor!: naming to allow list
* feat(allow-list): integrate core plugin
* refactor(allow-list): cleanup
* refactor: drop deprecated launch-external case for CustomConfigParser::handleStartTag
* fix: apply review comments

12 months agofeat!: upgrade android gradle plugin to 4.2.1 (#1232)
jcesarmobile [Thu, 1 Jul 2021 07:50:39 +0000 (09:50 +0200)] 
feat!: upgrade android gradle plugin to 4.2.1 (#1232)

12 months agorefactor(env/java): improve tests and implementation (#1246)
Raphael von der Grün [Wed, 23 Jun 2021 16:22:04 +0000 (18:22 +0200)] 
refactor(env/java): improve tests and implementation (#1246)

This basically fixes up the changes from #1220.

* test(env/java): replace test that duplicates implementation
* test(env/java): stub _ensure to focus on unit under test
* test(env/java): add test for invalid output
* refactor(env/java): keep try block small
* refactor(env/java): shorten excessive comment

13 months agoBugfix/java checks (#1228)
Norman Breau [Sun, 9 May 2021 20:52:35 +0000 (17:52 -0300)] 
Bugfix/java checks (#1228)

* fix: Java version parsing if java executable prints out additional information with --version

* fix: Ensure JAVA_HOME path comes first in the PATH environment

* refactor: Removed redundent code in favour of keeping a change introduced from another PR

13 months agofeat: CORDOVA_JAVA_HOME env variable (#1229)
Norman Breau [Sun, 9 May 2021 20:02:25 +0000 (17:02 -0300)] 
feat: CORDOVA_JAVA_HOME env variable (#1229)

* feat: CORDOVA_JAVA_HOME env variable

* refactor: Improve CORDOVA_JAVA_HOME env test

* fix(test) path separator issue

13 months agofix(requirements check): use regex to get java version from javac output (#1220)
David [Sun, 9 May 2021 12:33:08 +0000 (14:33 +0200)] 
fix(requirements check): use regex to get java version from javac output (#1220)

* fix(requirements check): use regex to get java version from javac output

* fix(lint): format code

* fix(node 10): remove optional chaining from version check

13 months agofix(prepare): delete splash screens if none are used (#1227)
Raphael von der Grün [Thu, 6 May 2021 07:30:19 +0000 (09:30 +0200)] 
fix(prepare): delete splash screens if none are used (#1227)

Currently, we copy default splash screens to the platform folder during platform creation, but then we do not delete them when the user uses no splash screens at all. This causes #1226 and what is described in #689.

The new implementation does not return early when updating splashes and none are defined. Instead, we let the cleanup map we create initially take care of deleting all unused splash screens. This also deletes the default splashes during the first prepare after platform creation.

Fixes #1226