Does Ward work with Kotlin and Android projects?
Updated
Yes. Ward supports Kotlin projects built with Gradle, and Kotlin or Java Android projects built with Gradle and the Android Gradle Plugin. Kotlin gets the same gates as Java.
What does Ward check in an Android project?
Ward recognizes an Android project from the Android Gradle Plugin (com.android.application or com.android.library). It adds three Android gates:
| Gate | Runs | Minimum |
|---|---|---|
android-lint |
lintDebug |
none |
android-unit-test |
testDebugUnitTest |
none |
android-coverage |
createDebugUnitTestCoverageReport |
80% |
Ward keeps your Gradle setup. It works with app and library modules.
What does Ward check in a Kotlin project?
The same as in a Java project: compiler, tests, coverage, Ward’s own lint, format and architecture rules, and the security scanners. Ktor is labeled when Ward detects it.
How do I set it up?
cd your-project
ward init
ward check
Run ward doctor if something fails. It warns when ANDROID_HOME or ANDROID_SDK_ROOT does not point to an existing folder, and when the Android Gradle Plugin needs a newer JDK or Gradle. Ward is in alpha, so the CLI and the configuration may change before 1.0.
Where do I go next?
Ready to try it? Install Ward and run ward init in your project.