RepositoryKotlinINẤn Độ
sidhuparas

sidhuparas/Coronavirus-Tracker

An Android Application written in Kotlin :iphone: with MVVM Architecture using latest Android Development tools like Dagger Hilt, Room, ViewModel, LiveData, Retrofit and Coroutines to display CoVID-19 Data

167sao
39fork
3issue
0lượt xem

📱 Ứng dụng tracker COVID-19 bằng Kotlin với MVVM và Dagger Hilt

Một app Android đơn giản nhưng áp dụng đầy đủ bộ công cụ hiện đại: Dagger Hilt, Room, Retrofit, Coroutines, LiveData.

Coronavirus-Tracker là ứng dụng Android viết bằng Kotlin, hiển thị dữ liệu xác nhận, hồi phục và tử vong do COVID-19 trên toàn cầu. Người dùng có thể tra cứu dữ liệu theo từng quốc gia và xem thông tin chi tiết theo bang của Ấn Độ. Dữ liệu được lấy từ API của RapidAPI (do astsiatsko cung cấp).

✨ Điểm nổi bật

  • Kiến trúc MVVM: sử dụng ViewModel, LiveData kết hợp Dagger Hilt để tiêm dependency, tuân thủ best practice của Android hiện đại.
  • Offline caching với Room: dữ liệu được lưu trữ cục bộ qua Room Persistence Library, tiêm qua Dagger Hilt để xem dữ liệu khi không có mạng.
  • Pin quốc gia: người dùng có thể ghim các quốc gia yêu thích, lưu trữ bằng Room.
  • Dữ liệu theo bang Ấn Độ: hiển thị statewise data với tùy chọn sắp xếp, cảm ơn dữ liệu từ covid19india.org.
  • Banner kết nối Firebase Remote Config: nội dung banner thay đổi định kỳ, hiển thị thông tin từ WHO.
  • KTX & Coroutines: tận dụng Kotlin Extensions và Coroutines để xử lý bất đồng bộ gọn gàng.
  • Cài đặt nhanh: chỉ cần thêm API key vào gradle.properties và kết nối Firebase là chạy ngay.

💡 Vì sao đáng chú ý

Dự án là ví dụ thực tế để học cách xây dựng ứng dụng Android hoàn chỉnh với bộ công cụ hiện đại nhất của Kotlin: Dagger Hilt cho dependency injection, Room cho local database, Retrofit cho network call, và Coroutines cho async handling — tất cả trong kiến trúc MVVM rõ ràng. Dù là tracker bệnh dịch, nhưng cách tổ chức mã nguồn và lựa chọn thư viện khiến nó trở thành tài liệu tham khảo tốt cho bất kỳ ai muốn xây dựng app Android chất lượng production.


#Android #Kotlin #MVVM #DaggerHilt #Room #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.

RepositoryJavaScript
ahmadawais/corona-cli

🦠 Track the Coronavirus disease (COVID-19) in the command line. Worldwide for all countries, for one country, and the US States. Fast response time (< 100ms). https://x.com/MrAhmadAwais

1.8k
Feb 14, 2026
RepositoryKotlin
zhanghai/MaterialFiles

Material Design file manager for Android

9.5k
Oct 15, 2026
RepositoryKotlin
Droid-ify/client

Clutterfree F-Droid client, [mirror] https://codeberg.org/droidify/client

7.8k
Sep 12, 2026
RepositoryKotlin
fumiama/copymanga

拷贝漫画的第三方APP,仅提供基础功能,更多丰富功能请移步官方版本

4.4k
Jul 15, 2026
RepositoryKotlin
enricocid/Music-Player-GO

🎶🎼 Very slim music player 👨‍🎤 100% made in Italy 🍕🌳🌞🍝🌄

1.9k
Jan 4, 2025
RepositorySwift
mhdhejazi/CoronaTracker

Coronavirus tracker app for iOS & macOS with maps & charts

1.5k
Mar 8, 2023
RepositoryHTML
Bustbyte/coronastatus

Anonymous crowd sourcing of COVID-19 symptoms all over the world (with public data sets)!

173
May 1, 2022
RepositoryDart
shubhamhackz/aarogya_seva

A beautiful 😍 covid-19 app with self - assessment and more.

125
Jul 21, 2020
RepositoryCSS
vinitshahdeo/COVID19

A web app to display the live graphical state-wise reported corona cases in India so far. It also shows the latest news for COVID-19. Stay Home, Stay Safe!

121
Nov 3, 2020