Kotlin-Compose-News-App

所属分类:编程语言基础
开发工具:kotlin
文件大小:0KB
下载次数:0
上传日期:2023-10-26 19:31:14
上 传 者sh-1993
说明:  一个简单的新闻应用程序,使用来自newsapi.org的Restful API |遵循最佳实践|MVVM|依赖注入|Dagger Hilt|Corout...,
(A simple News app consuming Restful API from newsapi .org | Following Best Practices | MVVM | Dependency Injection | Dagger-Hilt | Coroutines | Retrofit | Central Dependency management |)

文件列表:
.idea/ (0, 2023-10-26)
.idea/.name (22, 2023-10-26)
.idea/compiler.xml (169, 2023-10-26)
.idea/gradle.xml (772, 2023-10-26)
.idea/kotlinc.xml (176, 2023-10-26)
.idea/misc.xml (448, 2023-10-26)
.idea/vcs.xml (180, 2023-10-26)
app/ (0, 2023-10-26)
app/build.gradle.kts (2746, 2023-10-26)
app/proguard-rules.pro (750, 2023-10-26)
app/src/ (0, 2023-10-26)
app/src/androidTest/ (0, 2023-10-26)
app/src/androidTest/java/ (0, 2023-10-26)
app/src/androidTest/java/com/ (0, 2023-10-26)
app/src/androidTest/java/com/example/ (0, 2023-10-26)
app/src/androidTest/java/com/example/kotlincomposenewapp/ (0, 2023-10-26)
app/src/androidTest/java/com/example/kotlincomposenewapp/ExampleInstrumentedTest.kt (689, 2023-10-26)
app/src/main/ (0, 2023-10-26)
app/src/main/AndroidManifest.xml (1245, 2023-10-26)
app/src/main/java/ (0, 2023-10-26)
app/src/main/java/com/ (0, 2023-10-26)
app/src/main/java/com/example/ (0, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/ (0, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/NewsApplication.kt (374, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/data/ (0, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/data/AppConstants.kt (222, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/data/api/ (0, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/data/api/ApiService.kt (636, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/data/datasource/ (0, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/data/datasource/NewsDataSource.kt (441, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/data/datasource/NewsDataSourceImplementation.kt (493, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/data/entity/ (0, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/data/entity/NewsResponse.kt (463, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/di/ (0, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/di/AppModule.kt (2073, 2023-10-26)
app/src/main/java/com/example/kotlincomposenewapp/ui/ (0, 2023-10-26)
... ...

https://github.com/LoviceSunuwar/Kotlin-Compose-News-App/assets/53461002/519a1aee-a298-4a07-b904-6ad7737c3063 ![Screenshot](https://github.com/LoviceSunuwar/Kotlin-Compose-News-App/assets/53461002/82899105-46a6-440d-a011-15591011a3f4) The "Kotlin-Compose-News-App" is a modern Android application that incorporates various technologies and architectural patterns to provide a robust and efficient user experience. Here's a summary of its key features: - **JetPack Compose:** The app utilizes JetPack Compose, which is a modern Android UI toolkit for building native user interfaces through a declarative and reactive approach. - **MVVM (Model-View-ViewModel):** The app follows the MVVM architectural pattern, separating the user interface (View) from the underlying data and business logic (Model and ViewModel). - **Dependency Injection (Dagger-Hilt):** Dagger-Hilt is used for dependency injection, making it easier to manage and provide dependencies to different parts of the application. - **Clean Code Structure:** The app maintains a clean and organized code structure, making it easier to develop, maintain, and scale the application. - **UI Layer:** The user interface is built using JetPack Compose, providing a modern and intuitive interface for the app's users. - **Data Layer:** The data layer is responsible for handling data retrieval, storage, and management. - **Retrofit:** Retrofit is used for making network requests, enabling efficient communication with remote servers. - **Coroutines:** Coroutines are used to manage asynchronous operations, making the app responsive and performant. - **Flow:** Flow is employed for reactive programming, allowing the app to handle data streams efficiently. - **Moshi:** Moshi is used for JSON parsing and serialization, ensuring data compatibility between the app and external services. - **OKHttp:** OKHttp is used as the HTTP client, enhancing network connectivity and data retrieval. - **Background Thread:** Background threads are utilized for performing tasks that should not block the main thread, ensuring a smooth user experience. In summary, the "Kotlin-Compose-News-App" is a well-structured and modern Android application that leverages the power of JetPack Compose, MVVM architecture, and various libraries and tools to provide a seamless and efficient news browsing experience. It demonstrates best practices in Android app development, including clean code organization, dependency injection, and efficient handling of network requests and data streams.

近期下载者

相关文件


收藏者