/Paging3-Issue

A sample to showcase Kotlin, MVVM, Paging3, Hilt, Room, Coroutines and Retrofit.

Primary LanguageKotlin

Paging3-Sample

A sample to showcase Kotlin, MVVM, Paging3, Hilt, Room, Coroutines and Retrofit. This is a sample that showcases this issue : https://issuetracker.google.com/issues/238227615

Features

  • MVVM Architecture + Repository design Pattern.
  • Jetpack Libraries and Architecture Components.

Testing

Local unit testing is done for PagingSource layer.

Libraries

  • Android Jetpack
    • Paging is a library helps you load and display pages of data from a larger dataset from local storage or over network.
    • ViewModel is designed to store and manage UI-related data in a lifecycle conscious way. This allows data to survive configuration changes such as screen rotations.
    • ViewBinding is a feature that allows you to more easily write code that interacts with views.
    • Room is a library for data storage persistence which provides an abstraction layer over SQLite.
    • Hilt is a dependency injection library for Android that reduces the boilerplate of doing manual dependency injection in your project.
  • Kotlin coroutines Executing code asynchronously.
  • Retrofit is a Type-safe HTTP client for Android, Java and Kotlin by Square.
  • Moshi is a modern JSON library for Android and Java. It makes it easy to parse JSON format data.
  • Coil is an image loading library for Android backed by Kotlin Coroutines.
  • OkHttp interceptor Logs HTTP requests and responses.
  • Material Design Build beautiful, usable products using Material Components for Android.
  • Mockito which is the most popular Mocking framework for unit tests written in Java as well as Kotlin.

Licence

MIT License

Copyright (c) 2021 Mohammadali Rezaei

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.