dbddbf253b
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 |
||
---|---|---|
.github | ||
cordova-js-src | ||
framework | ||
lib | ||
spec | ||
templates | ||
test | ||
types | ||
.asf.yaml | ||
.eslintignore | ||
.eslintrc.yml | ||
.gitattributes | ||
.gitignore | ||
.npmignore | ||
.npmrc | ||
.ratignore | ||
.reviewboardrc | ||
CONTRIBUTING.md | ||
LICENSE | ||
NOTICE | ||
package-lock.json | ||
package.json | ||
README.md | ||
RELEASENOTES.md |
Cordova Android
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
- Java Development Kit (JDK) 11
- Android SDK
- Node.js
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