mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-09-14 14:21:32 -04:00
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
611 B
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
androidMainandjvmMain, extract it tocommonMain. - Use
expect/actualonly for small platform primitives. Prefer interfaces + DI. - Keep
expectdeclarations and their shared helpers in differently named files within a package (e.g.LogExporter.kt/LogFormatter.kt) to avoid JVM duplicate class errors.