Files
Meshtastic-Android/.github/instructions/android-source-set.instructions.md
T
2026-08-28 13:24:00 +00:00

611 B

applyTo
applyTo
**/androidMain/**/*.kt

Android Source-Set Rules

  • This is androidMain — Android framework imports (android.*, java.*) are allowed here.
  • Do NOT put business logic here. Business logic belongs in commonMain.
  • If you find identical pure-Kotlin logic in both androidMain and jvmMain, extract it to commonMain.
  • Use expect/actual only for small platform primitives. Prefer interfaces + DI.
  • Keep expect declarations and their shared helpers in differently named files within a package (e.g. LogExporter.kt / LogFormatter.kt) to avoid JVM duplicate class errors.