89a0a72da5
* feat!: Upgrade to Gradle and AGP 8 * java 17 * feat!: API 34 Support API 34: Upgrade AGP from 8.2.0-rc01 to 8.2.0-rc02 API 34: Upgrade AGP from 8.2.0-rc02 to 8.2.0-rc03 API 34: Upgrade AGP from 8.2.0-rc03 to 8.2.0 feat: add AndroidKotlinJVMTarget preference to set the kotlin JVM target This is in addition to the java source / target compatibility preferences. AndroidKotlinJVMTarget is only affective if Kotlin is enabled. chore: Upgrade Gradle from 8.4 to 8.5 AGP 8.2.0 -> 8.2.1 Gradle 8.5 -> 8.7 fix: Add --validate-url to gradle wrapper commands AGP 8.4.0 * fix(test): ProjectBuilder using Gradle 8.3, no longer supported version * API 34: Change Kotlin JVM Target default. The new default value is null. When null, it will by default to the Java Target compatibility. Updating AndroidJavaTargetCompatibility will also influence the Kotlin JVM target, unless if AndroidKotlinJVMTarget is also explicitly defined. * removed leftover debug prints * API 34: Gradle Wrapper * API 34: ratignore generated gradle wrapper files * fix gradle wrapper jar via git attributes * fix(test): normalise gradle paths * fix(windows): Gradle paths * fix(windows): Keep CRLF endings for bat files * chore: Updated license for Gradle Wrapper 8.7 pointer * API 34 Support Gradle Tools project * API 34: omit --validate-url on installing the wrapper * revert: LICENSE notice on bundling the gradle wrapper jar * Revert: AGP 8.4 -> 8.3 * test(ci): Added NodeJS 22 to the test matrix --------- Co-authored-by: jcesarmobile <jcesarmobile@gmail.com> |
||
---|---|---|
.. | ||
app | ||
build.gradle | ||
gradle.properties | ||
README.md | ||
settings.gradle |
Cordova Android Test Project
The project in this directory is an Android Test project that enables those
interested in further developing cordova-android
to validate their changes.
Requirements
The requirements in the top-level README still apply. In addition, ensure you have installed Gradle, and that it is (at the time of this writing) at least version 3.3 or newer.
Getting Started
You can run this test project from both the command line as well as from Android Studio:
Command Line
Ensure you have the gradle wrapper script, gradlew
, in this directory. If
you do not, you can run the following to generate it:
$ cd cordova-android/test
$ gradle :wrapper -b build.gradle
You can then see a list of all tasks available to run with gradlew tasks
.
The two different kinds of tests one typically wants to run are unit tests and end-to-end, or instrumented, tests. Unit tests do not require any particular environment to run in, but the instrumented tests, however, require a connected Android device or emulator to run in.
- To run the unit tests, run:
gradlew test
. - To run the instrumented tests, run:
gradlew connectedAndroidTest
.
To make sure all tests are run, add the --rerun-tasks
parameter.
Android Studio
Import this test/
directory into Android Studio, and hit the Play button.