mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-09-25 05:05:14 -04:00
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
12 lines
611 B
Markdown
12 lines
611 B
Markdown
---
|
|
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.
|