context-kmp
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseKotlin Multiplatform Context Rule
Kotlin Multiplatform场景规则
Auto-applied context when working on KMP development tasks.
在处理KMP开发任务时自动应用的场景规则。
When to Apply
适用场景
Apply this context when:
- Creating shared modules in KMP
- Using expect/actual declarations
- Setting up Koin, SQLDelight, or Ktor
- Implementing Compose Multiplatform UI
在以下场景中应用本规则:
- 开发KMP中的共享模块
- 使用expect/actual声明
- 配置Koin、SQLDelight或Ktor
- 实现Compose Multiplatform UI
Reference Documents
参考文档
Read and apply patterns from:
| Document | Purpose |
|---|---|
| Clean Architecture | Layer separation principles |
| Testing Strategy | Test patterns and coverage |
| Kotlin Conventions | Naming, structure, idioms |
| Library Patterns | Koin, SQLDelight, Ktor usage |
| Feature Patterns | Feature module structure |
| KMP Architecture | Multiplatform patterns |
请阅读并遵循以下文档中的模式:
| 文档 | 用途 |
|---|---|
| Clean Architecture | 分层架构原则 |
| Testing Strategy | 测试模式与覆盖率 |
| Kotlin Conventions | 命名规范、结构与编程范式 |
| Library Patterns | Koin、SQLDelight、Ktor使用方法 |
| Feature Patterns | 功能模块结构 |
| KMP Architecture | 多平台架构模式 |
External References
外部参考资源
| Resource | URL |
|---|---|
| Kotlin Multiplatform | https://kotlinlang.org/docs/multiplatform.html |
| Compose Multiplatform | https://www.jetbrains.com/lp/compose-multiplatform/ |
| Kotlin Coroutines | https://kotlinlang.org/docs/coroutines-overview.html |
| 资源 | 链接 |
|---|---|
| Kotlin Multiplatform | https://kotlinlang.org/docs/multiplatform.html |
| Compose Multiplatform | https://www.jetbrains.com/lp/compose-multiplatform/ |
| Kotlin Coroutines | https://kotlinlang.org/docs/coroutines-overview.html |