context-kmp

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Kotlin 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:
DocumentPurpose
Clean ArchitectureLayer separation principles
Testing StrategyTest patterns and coverage
Kotlin ConventionsNaming, structure, idioms
Library PatternsKoin, SQLDelight, Ktor usage
Feature PatternsFeature module structure
KMP ArchitectureMultiplatform patterns
请阅读并遵循以下文档中的模式:
文档用途
Clean Architecture分层架构原则
Testing Strategy测试模式与覆盖率
Kotlin Conventions命名规范、结构与编程范式
Library PatternsKoin、SQLDelight、Ktor使用方法
Feature Patterns功能模块结构
KMP Architecture多平台架构模式

External References

外部参考资源