Go to file
Norman Breau dbddbf253b
feat!: Bump min SDK to 24 (#1571)
Rationale:
API 22 & API 23 both account for an insignificant part of the market share.
While API 24 - API 26 has similar market share, we felt that bumping to API 26
from API 22 is too large of a jump.

Legacy devices may be completely out of support by Google and may not be able
to receive the latest webview version. As of writing, Chromium's latest
tag shows they are using a Min SDK version of 24. (Ref: https://chromium.googlesource.com/chromium/src/+/refs/tags/113.0.5653.1/build/config/android/config.gni#46)

Based on AOSP emulators, API 24 (Android 7.0) will ship with
Chrome 52 webview, which has good support for ECMAscript 2015 (ES6) (Ref: https://caniuse.com/?search=es6)

While in most cases, app users will likely have a modern webview vesion installed, this means
you can be confident that the app user will have a chrome webview version with good ES6 support,
even if they happen to be running on a factory versioned device.

See the mailing thread for the full discussion:
https://lists.apache.org/thread/zcgof080hdzzo2j96mjz0qpj0gotmn57
2023-03-16 19:45:01 -03:00
.github feat!: bump node engine requirement >=16.13.0 (#1540) 2023-03-09 18:40:16 +09:00
cordova-js-src feat!: android 12 splash screen (#1441) 2022-06-30 10:49:10 +09:00
framework feat!: Bump min SDK to 24 (#1571) 2023-03-16 19:45:01 -03:00
lib fix: Add android prefix to windowSplashScreenBrandingImage (#1487) 2022-09-16 09:34:20 +02:00
spec chore: Use gradle 7.4.2 distribution url (#1491) 2022-09-16 09:33:15 +02:00
templates feat!: android 12 splash screen (#1441) 2022-06-30 10:49:10 +09:00
test feat: support custom compileSdk setting (#1431) 2022-05-18 23:18:33 +09:00
types fix: import type definitions from obsolete cordova-plugin-splashscreen (#1489) 2022-09-13 10:03:53 -03:00
.asf.yaml chore(asf): Update GitHub repo metadata 2020-10-06 20:24:23 -07:00
.eslintignore refactor!: do not copy JS lib to platform project (#1269) 2021-07-13 11:01:50 +02:00
.eslintrc.yml cleanup yaml files (#994) 2020-06-16 19:34:10 -04:00
.gitattributes CB-9836 Add .gitattributes to prevent CRLF line endings in repos 2015-11-12 18:34:41 +03:00
.gitignore build: build cordova.js during npm prepare (#1271) 2021-07-14 10:25:34 +02:00
.npmignore build: build cordova.js during npm prepare (#1271) 2021-07-14 10:25:34 +02:00
.npmrc chore: npmrc (#1348) 2021-09-17 09:54:59 -03:00
.ratignore refactor!: do not copy JS lib to platform project (#1269) 2021-07-13 11:01:50 +02:00
.reviewboardrc chore: various cleanup (#957) 2020-04-15 12:40:59 +09:00
CONTRIBUTING.md remove trailing spaces from markdown files (#995) 2020-06-10 09:29:14 -04:00
LICENSE Remove unnecessary stuff (#1015) 2020-07-03 18:53:10 +02:00
NOTICE chore: various cleanup (#957) 2020-04-15 12:40:59 +09:00
package-lock.json dep(npm)!: bump acceptable modules w/ rebuilt package-lock (#1541) 2023-03-09 18:57:19 +09:00
package.json dep(npm)!: bump acceptable modules w/ rebuilt package-lock (#1541) 2023-03-09 18:57:19 +09:00
README.md doc: update README about development & testing (#1308) 2021-08-13 11:28:47 +09:00
RELEASENOTES.md release(android-v11.0.0): updated version and RELEASENOTES.md (2) 2022-07-04 22:37:49 +09:00

Cordova Android

NPM

Node CI codecov.io

Cordova Android is an Android application library that allows for Cordova-based projects to be built for the Android Platform. Cordova based applications are, at the core, applications written with web technology: HTML, CSS and JavaScript.

Apache Cordova is a project of The Apache Software Foundation (ASF).

Requirements

Create a Cordova project

Follow the instructions in the Create your first Cordova app section of Apache Cordova Docs

To use a shared framework, for example in development, link the appropriate cordova-android platform folder path:

cordova platform add --link /path/to/cordova-android

Updating a Cordova project

When you install a new version of the Cordova CLI that pins a new version of the Cordova-Android platform, you can follow these simple upgrade steps within your project:

cordova platform rm android
cordova platform add android

Debugging in Android Studio

Import project in Android Studio through File > Open and targeting /path/to/your-cdv-project/platforms/android/.

How to Test Repo Development

npm install
npm test

Further reading