RepositoryKotlinGBVương quốc Anh
AR

arkivanov/Decompose

Kotlin Multiplatform lifecycle-aware business logic components (aka BLoCs) with routing (navigation) and pluggable UI (Jetpack Compose, SwiftUI, JS React, etc.)

2.9ksao
112fork
3issue
3lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: kotlin-multiplatform

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: multiplatform

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: navigation

#1 Repository của tháng

🧱 Decompose: Thư viện Kotlin Multiplatform xây dựng ứng dụng modular, lifecycle-aware

Chia tách code thành cây thành phần nhỏ, lifecycle-aware, với điều hướng và UI có thể thay thế.

Decompose là một thư viện Kotlin Multiplatform giúp bạn chia tách code thành các thành phần logic độc lập (BLoC), tổ chức theo cấu trúc cây, mỗi thành phần cha chỉ biết đến con trực tiếp. Thư viện cung cấp điều hướng (routing) và hỗ trợ giao diện người dùng có thể thay thế (Compose, SwiftUI, React, vv).

✨ Điểm nổi bật

  • Thành phần lifecycle-aware: Mỗi thành phần có vòng đời riêng, hỗ trợ StateKeeper và InstanceKeeper.
  • Điều hướng trạng thái: Trạng thái điều hướng được phơi bày hoàn toàn, có thể kết nối bất kỳ UI nào.
  • Chuyển đổi trạng thái là hàm thuần: Điều hướng từ trạng thái cũ sang mới bằng một hàm thuần.
  • Quản lý phụ thuộc: Hỗ trợ DI và IoC qua constructor, kể cả đối số an toàn kiểu.
  • Giữ trạng thái và phiên bản: Tự động lưu trạng thái trên Android, hỗ trợ thủ công trên các nền tảng khác.
  • Hỗ trợ đa nền tảng: android, jvm, ios, watchos, tvos, macos, wasmJs, js.
  • Thành phần trong back stack vẫn chạy: Không bị hủy khi chuyển trang, tiếp tục hoạt động ngầm.

💡 Vì sao đáng chú ý

Decompose khác biệt ở sự tách biệt rõ rệt giữa logic và giao diện người dùng, giúp bạn dễ dàng kiểm thử logic bằng unit test đa nền tảng và linh hoạt kết nối bất kỳ UI nào. Đặc biệt hữu ích trong phát triển ứng dụng đa nền tảng và kiến trúc modular.


#Kotlin #KotlinMultiplatform #Android #Navigation #Architecture #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryKotlin
gkd-kit/gkd

基于无障碍,高级选择器,订阅规则的自定义屏幕点击安卓应用 | An Android APP with custom screen tapping based on Accessibility, Advanced Selectors, and Subscription Rules

45.7k
Nov 13, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryKotlin
lysine-dev/okhttp

A meticulous HTTP client for the JVM, Android, and GraalVM.

47.1k
Nov 27, 2026
RepositoryKotlin
JunkFood02/Seal

🦭 Video/Audio Downloader for Android, based on yt-dlp

31.2k
Nov 25, 2026
RepositoryKotlin
komi-store/komi-store

🩵 A free, open-source app store for developers' releases on GitHub, Codeberg & Forgejo — browse, discover, and install apps with one click. Formerly GitHub Store.

23.2k
Dec 1, 2026
RepositoryKotlin
JetBrains/compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.

19.5k
Nov 30, 2026
RepositoryKotlin
MetrolistGroup/Metrolist

Material Design YouTube Music client for Android, iOS and desktop

15.5k
Dec 1, 2026
RepositoryKotlin
InsertKoinIO/koin

Koin - pragmatic dependency injection for Kotlin & Kotlin Multiplatform. Koin DSL or Koin Annotations (JSR-330), compile safe with the Koin Compiler Plugin.

10.0k
Nov 6, 2026
RepositoryKotlin
kotest/kotest

Powerful, elegant and flexible test framework for Kotlin with assertions, property testing and data driven tests.

4.8k
Nov 24, 2026