Go to file
Raphael von der Grün 1b7874607e
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
2021-05-06 09:30:19 +02:00
.github ci: Add Node16 to CI matrix (#1218) 2021-04-26 12:47:22 -03:00
bin fix(prepare): delete splash screens if none are used (#1227) 2021-05-06 09:30:19 +02:00
cordova-js-src refactor (eslint): use cordova-eslint (#910) 2020-01-31 22:02:48 +09:00
framework feat: add backwards compatibility mode for WebViewAssetLoader (#1222) 2021-05-06 08:17:58 +02:00
spec test(AndroidManifest): update theme to Theme.AppCompat.NoActionBar (#1207) 2021-04-16 18:32:46 +09:00
test breaking: only support androidx (#1052) 2021-04-16 06:52:14 +09:00
.asf.yaml chore(asf): Update GitHub repo metadata 2020-10-06 20:24:23 -07:00
.eslintignore feat: add androidx support (#901) 2020-01-27 15:52:08 +09: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 breaking: implement WebViewAssetLoader (#1137) 2021-04-22 14:32:14 +02:00
.npmignore chore(npm): add ignore list (#958) 2020-04-15 12:41:24 +09:00
.ratignore chore: remove appveyor residual (#909) 2020-01-29 19:28:07 +09: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! (npm): update all dependencies (#1205) 2021-04-15 08:23:41 +09:00
package.json chore! (npm): update all dependencies (#1205) 2021-04-15 08:23:41 +09:00
README.md chore: various cleanup (#957) 2020-04-15 12:40:59 +09:00
RELEASENOTES.md android-v9.1.0 Updated version and RELEASENOTES.md for release 9.1.0 2021-04-10 00:25:19 +09:00
VERSION feat: bump version to 10.0.0-dev (#1181) 2021-04-13 15:34:00 +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).

Requires

Cordova Android Developer Tools

We recommend using the Cordova command-line tool to create projects and be able to easily install plugins.

However, the following scripts can be used instead:

./bin/create [path package activity] ... creates the ./example app or a cordova android project
./bin/check_reqs ....................... checks that your environment is set up for cordova-android development
./bin/update [path] .................... updates an existing cordova-android project to the version of the framework

These commands live in a generated Cordova Android project. Any interactions with the emulator require you to have an AVD defined.

./cordova/clean ........................ cleans the project
./cordova/build ........................ calls `clean` then compiles the project
./cordova/log   ........................ streams device or emulator logs to STDOUT
./cordova/run   ........................ calls `build` then deploys to a connected Android device. If no Android device is detected, will launch an emulator and deploy to it.
./cordova/version ...................... returns the cordova-android version of the current project

Using Android Studio

  1. Create a project
  2. Import it via "Non-Android Studio Project"

Running the Native Tests

The test/ directory in this project contains an Android test project that can be used to run different kinds of native tests. Check out the README contained therein for more details!