Go to file
Darryl Pogue 80f232aa79
fix: correctly flag API dependency on AppCompat for Maven (#1505)
* Correctly flag API dependency on AppCompat for Maven

Currently when cordova-android is published to Maven, it lists no
dependencies. However, `CordovaActivity` extends `AppCompatActivity`
which requires that the AndroidX AppCompat library be available.

Marking this as an API dependency (rather than an implementation/compile
dependency) should cause the AndroidX AppCompat library to be installed
when the cordova-android framework is added to the build.gradle of an
existing Android application.

* Publish to Maven with proper metadata

This allows the Maven publish to pick up information from the android
library component and include things like dependencies in the pom.xml
file.
2022-10-15 13:39:47 +09:00
.github ci: update github action workflow (#1439) 2022-06-03 15:05:38 +09:00
cordova-js-src feat!: android 12 splash screen (#1441) 2022-06-30 10:49:10 +09:00
framework fix: correctly flag API dependency on AppCompat for Maven (#1505) 2022-10-15 13:39:47 +09: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 chore: bump version 11.0.1-dev (2) 2022-07-04 23:12:43 +09:00
package.json fix: import type definitions from obsolete cordova-plugin-splashscreen (#1489) 2022-09-13 10:03:53 -03: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