mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
916 B
916 B
| applyTo |
|---|
| **/commonMain/**/*.kt |
KMP commonMain Rules
- NEVER import
java.*orandroid.*incommonMain. - Use
org.meshtastic.core.common.util.ioDispatcherinstead ofDispatchers.IO. - Use Okio (
BufferedSource/BufferedSink) instead ofjava.io.*. - Use
kotlinx.coroutines.sync.Mutexinstead ofjava.util.concurrent.locks.*. - Use
atomicfuor Mutex-guardedmutableMapOf()instead ofConcurrentHashMap. - Use
jetbrains-*catalog aliases for lifecycle/navigation dependencies. - Use
compose-multiplatform-*catalog aliases for CMP dependencies. - Never use plain
androidx.composedependencies incommonMain. - Strings: use
stringResource(Res.string.key)fromcore:resources. No hardcoded strings. - CMP
stringResourceonly supports%N$sand%N$d— pre-format floats withNumberFormatter.format(). - Check
gradle/libs.versions.tomlbefore adding dependencies.