compose-skill

分类: 开发与编程 | 上传者: Meet-MiyaniMeet-Miyani | 下载: 0 | 版本: v1.0(最新)

使用 MVI 架构,通过 Jetpack Compose 和 Compose Multiplatform (KMP/CMP) 构建、重构和审查应用程序。涵盖协程、StateFlow、SharedFlow、Channel、ViewModels、状态建模、重组、Navigation 3/2、Koin/Hilt DI、Ktor 网络、Paging 3、Room、DataStore、动画、Coil、可访问性、多平台资源、iOS/Swift 互操作、Gradle/AGP 配置、CI/CD 和桌面分发。在处理 @Composable、ViewModel、StateFlow、Flow、KMP、Ktor、Koin、Hilt、DataStore、Room、PagingData、重组、Xcode/iOS 互操作、Gradle 构建配置、性能、测试、跨平台或代码审查时使用。 --- # Jetpack Compose 和 Compose Multiplatform 这项技能涵盖了完整的 Compose 应用程序开发生命周期 - 从架构和状态管理到 UI、网络、持久性、性能、可访问性、跨平台共享、构建配置和分发。 Jetpack Compose 和 Compose Multiplatform 共享相同的核心 API 和心智模型。 **并非所有 Jetpack 库都可以在 `commonMain` 中工作** — 许多库仍仅适用于 Android。 AndroidX 库的一个子集现在发布多平台工件(例如“lifecycle-viewmodel”、“lifecycle-runtime-compose”、“datastore-preferences”),但可用性和 API 界面因版本而异。 **在将任何 Jetpack/AndroidX 依赖项添加到“commonMain”之前,请通过检查 Maven Central 或库的官方文档来验证是否为所有必需的目标发布了工件。** CMP 使用“expect/actual”或平台特定代码的接口。 MVI(模型-视图-意图)是推荐的架构,但该技能适应现有的项目约定。 ## 现有项目政策 **不要强制迁移。** 如果项目已经遵循 MVI 并具有自己的约定(不同的基类、不同的命名、不同的文件布局),请尊重这一点。适应项目现有的模式。架构模式——具有事件、状态和效果的单向数据流——才是重要的,而不是具体的

更新日志: Source: GitHub https://github.com/Meet-Miyani/compose-skill

目录结构

当前层级: 根目录

  • 📁 .cursor/
    • 📁 rules/
      • 📄 reference-file-standards.mdc 4.4 KB
  • 📁 .github/
    • 📁 workflows/
      • 📄 release.yml 2.9 KB
      • 📄 validate.yml 270 B
  • 📁 agents/
    • 📄 openai.yaml 428 B
  • 📁 assets/
    • 📄 compose-multiplatform-icon.svg 1015 B
  • 📁 references/
    • 📄 accessibility.md 6.8 KB
    • 📄 animations-advanced.md 7.5 KB
    • 📄 animations.md 7.7 KB
    • 📄 anti-patterns.md 7.9 KB
    • 📄 architecture.md 8.7 KB
    • 📄 ci-cd-distribution.md 7.4 KB
    • 📄 clean-code.md 8.2 KB
    • 📄 compose-essentials.md 8.0 KB
    • 📄 coroutines-flow-advanced.md 4.4 KB
    • 📄 coroutines-flow.md 7.5 KB
    • 📄 cross-platform.md 8.7 KB
    • 📄 datastore.md 7.8 KB
    • 📄 dependency-injection.md 4.0 KB
    • 📄 gradle-build.md 8.2 KB
    • 📄 hilt.md 8.8 KB
    • 📄 image-loading.md 8.1 KB
    • 📄 ios-swift-interop.md 8.0 KB
    • 📄 koin.md 9.2 KB
    • 📄 lists-grids.md 4.6 KB
    • 📄 material-design.md 8.7 KB
    • 📄 mvi.md 9.2 KB
    • 📄 mvvm.md 7.9 KB
    • 📄 navigation-2-di.md 4.6 KB
    • 📄 navigation-2.md 8.3 KB
    • 📄 navigation-3-di.md 5.1 KB
    • 📄 navigation-3.md 8.3 KB
    • 📄 navigation-migration.md 4.9 KB
    • 📄 navigation.md 5.0 KB
    • 📄 networking-ktor-architecture.md 9.2 KB
    • 📄 networking-ktor-auth.md 7.0 KB
    • 📄 networking-ktor-testing.md 5.6 KB
    • 📄 networking-ktor.md 8.9 KB
    • 📄 paging-mvi-testing.md 5.6 KB
    • 📄 paging-offline.md 4.8 KB
    • 📄 paging.md 9.1 KB
    • 📄 performance.md 7.5 KB
    • 📄 resources.md 9.1 KB
    • 📄 room-database.md 10.0 KB
    • 📄 testing.md 7.3 KB
    • 📄 ui-ux.md 5.0 KB
  • 📁 scripts/
    • 📄 validate.sh 84.8 KB
  • 📄 LICENSE 1.0 KB
  • 📄 README.md 24.1 KB
  • 📄 SKILL.md 17.4 KB

SKILL.md

登录后下载/点赞/收藏 ❤ 113 | ★ 0
评论 0

请先登录后评论。

评论加载中...