Skip to content

Latest commit

 

History

History

android

README.md

OpenCode Mobile (Android)

Kotlin + Jetpack Compose app. Kotlin sources use 4-space indentation (see repo-root .editorconfig).

Code style

Formatting and style checks use ktlint via the Gradle plugin:

./gradlew ktlintFormat   # auto-fix style (including indentation)
./gradlew ktlintCheck    # fail on violations — run before opening a PR

Generated OpenCodeIcons.kt is excluded from ktlint; regenerate with npm run icons:sync from the repo root.

Android Checks runs ktlintCheck for ready-for-review pull requests. The check currently reports violations without blocking the unit-test gate.

Build

./gradlew :app:assembleDebug
./gradlew :app:testDebugUnitTest

Throwaway UI snapshot evidence uses Paparazzi on :screenshot (Java 21 Gradle JVM), not :app. The module is included only on Java 21, or when you request a :screenshot / Paparazzi task (-PincludeScreenshot=true forces it):

./gradlew :screenshot:recordPaparazziDebug