RepositoryKotlinGRHy Lạp
AK

akoufa/CoolWeather

Weather App that uses Android best practices. Android Jetpack, clean architecture. Written in Kotlin

198sao
20fork
3issue
1lượ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ủ đề: databinding

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: android-architecture

#1 Repository Của Tháng

2
TINIX TRENDING·Chủ đề: architecture-components

#2 Repository Của Tháng

🌤️ CoolWeather - Ứng dụng thời tiết tham khảo Clean Architecture trên Android

Một dự án mẫu Android thực sự chuẩn best practices: Clean Architecture, MVVM, Hilt, Coroutines và Architecture Components, tất cả bằng Kotlin.

CoolWeather là một ứng dụng thời tiết Android được viết bằng Kotlin, áp dụng Clean Architecture và các thành phần Jetpack. Dự án sử dụng OpenWeatherMap API để lấy dữ liệu thời tiết hiện tại và dự báo. Đây là tài nguyên tham khảo tuyệt vời cho bất kỳ ai muốn học cách xây dựng ứng dụng Android theo kiến trúc sạch, có tách biệt rõ ràng giữa các tầng.

✨ Điểm nổi bật

  • MVVM với LiveData: ViewModels phơi bày LiveData duy nhất, Views chỉ quan sát mà không ảnh hưởng. Mỗi trạng thái màn hình được biểu diễn bằng sealed class Result.
  • Clean Architecture 3 tầng: Presentation, Domain và Data được tách biệt rõ rệt, mỗi tầng chịu trách nhiệm riêng.
  • UseCase tùy biệt: Mỗi UseCase thực hiện một nhiệm vụ kinh doanh cụ thể, trả về Result bằng suspend operator fun invoke.
  • Repository interface trong Domain: Tầng Domain định nghĩa giao diện Repository, tầng Data triển khai chi tiết.
  • Hilt Dependency Injection: Quản lý dependency một cách tự động và tiêu chuẩn.
  • Caching linh hoạt: Hỗ trợ cache tùy chỉnh và SQLite mà không ảnh hưởng tới các tầng khác.
  • Single source of truth: Tầng Data đảm bảo nguồn dữ liệu duy nhất, giấu kín nguồn gốc.
  • Kotlin Coroutines: Xử lý bất đồng bộ một cách an toàn và hiệu quả.

💡 Vì sao đáng chú ý

Khác với nhiều dự án mẫu chỉ tập trung vào giao diện, CoolWeather xây dựng toàn bộ hệ thống theo Clean Architecture – một chuẩn kiến trúc được nhiều công ty áp dụng nhưng hiếm có ví dụ thực tế rõ rệt như thế này. Việc tách rõ Domain layer không phụ thuộc vào bất kỳ framework nào giúp dự án dễ bảo trì, mở rộng và test hơn.

Phù hợp với các nhà phát triển muốn học kiến trúc Android chuẩn, hoặc dùng làm nền tảng cho dự án thực tế cần tuân thủ quy trình phần mềm nghiêm ngặt.


#Android #Kotlin #CleanArchitecture #MVVM #Hilt #Coroutines #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.

RepositoryJava
yuliskov/SmartTube

Browse media content with your own rules on Android TV

35.5k
Oct 25, 2026
RepositoryKotlin
lysine-dev/okhttp

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

47.1k
Oct 22, 2026
RepositoryKotlin
square/leakcanary

A memory leak detection library for Android.

30.0k
Oct 21, 2026
RepositoryKotlin
bufferapp/android-clean-architecture-boilerplate

An android boilerplate project using clean architecture

3.7k
May 19, 2023
RepositoryKotlin
AkshayChordiya/News

A sample News 🗞 app built using Modern Android Development [Architecture Components, Coroutines, Retrofit, Room, Kotlin, Dagger]

844
Nov 3, 2020
RepositoryJava
goldze/MVVMHabit

👕基于谷歌最新AAC架构,MVVM设计模式的一套快速开发库,整合Okhttp+RxJava+Retrofit+Glide等主流模块,满足日常开发需求。使用该框架可以快速开发一个高质量、易维护的Android应用。

7.7k
Aug 11, 2022
Repository
CyC2018/CS-Notes

:books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计

186.3k
Aug 21, 2024
RepositoryDart
flutter/flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond

180.4k
Oct 26, 2026
RepositoryKotlin
android/architecture-samples

A collection of samples to discuss and showcase different architectural tools and patterns for Android apps.

45.9k
Oct 20, 2026