• Stars
    star
    142
  • Rank 258,495 (Top 6 %)
  • Language
    Kotlin
  • Created about 6 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A sample to showcase Kotlin, MVVM, Paging, Dagger, RxJava, Coroutines, Jetpack Compose, Retrofit, DataBinding, MotionLayout, Espresso, Unit test and Github Actions..

TMDb-Paging

A sample to showcase Kotlin, MVVM, Paging, Dagger, RxJava, Coroutines, Jetpack Compose, Retrofit, DataBinding, MotionLayout, Espresso and Unit test. Known issue

Get it on Google Play

Screenshots

Features

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

Prerequisites

Add your TMDB API key in the local.properties file:

tmdb_api_key=YOUR_API_KEY

Testing

Local unit testing is done for Repository and ViewModel layers. UI testing is done for screens with pagination using Espresso.

Libraries

  • Android Jetpack
    • Paging Library helps you load and display small chunks of data at a time. Loading partial data on demand reduces usage of network bandwidth and system resources.
    • Compose Android’s modern toolkit for building native UI.
    • ViewModel 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.
    • DataBinding is a Library in the support library that allows you to bind UI components in your layouts to data sources in your app using a declarative format rather than programmatically.
    • LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components updating app component observers that are in an active lifecycle state.
  • Glide is an image loading and caching library for Android.
  • Dagger is a fully static, compile-time dependency injection framework for Java, Kotlin, and Android.
  • RxJava is a library for composing asynchronous code using observable sequences.
  • RxAndroid is a module that adds the minimum classes to RxJava to make writing reactive components in Android.
  • Kotlin coroutines Executing code asynchronously.
  • StateFlow is a state-holder observable flow that emits the current and new state updates to its collectors.
  • Coil-compose An image loading library for Android backed by Kotlin Coroutines.
  • Retrofit is a Type-safe HTTP client for Android, Java and Kotlin by Square.
  • Gson is a serialization/deserialization library to convert objects into JSON and back.
  • OkHttp interceptor Logs HTTP requests and responses.
  • Material Design Build beautiful, usable products using Material Components for Android.
  • MotionLayout helps to manage motion and widget animation.
  • Mockito which is the most popular Mocking framework for unit tests written in Java as well as Kotlin.
  • MockK mocking library for Kotlin
  • Espresso Automated testing UI test

Licence

MIT License

Copyright (c) 2018 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.

More Repositories

1

TVMaze-Cache

A sample to showcase Kotlin, MVVM, Koin, Coroutines, StateFlow, Room, WorkManager, Retrofit, DataBinding and Unit test.
Kotlin
28
star
2

SavingGoals-Cache

A sample to showcase Kotlin, MVVM, Navigation, Dagger, RxJava, Room, Retrofit, DataBinding, Espresso and Unit test.
Kotlin
13
star
3

Hilt-MultiModule-Cache

Modular Android architecture which showcase Kotlin, MVVM, Navigation, Hilt, RxJava, Retrofit, DataBinding, Espresso, Unit test and Kotlin Gradle DSL.
Kotlin
12
star
4

Dialpad-CustomView

Custom ViewGroup that lays out child views with equal distance.
Java
11
star
5

ExoPlayer-Service

A sample to showcase ExoPlayer inside a Service.
Java
10
star
6

TMDb-Compose-Playground

Modular Android architecture which showcase Kotlin, Jetpack Compose, Navigation Compose, MVVM, Hilt, Room, Coroutines, StateFlow, Retrofit, Coil-compose and Github Actions.
Kotlin
10
star
7

News-Cache

A sample to showcase Kotlin, MVVM, Navigation, Coroutines, Room, WorkManager, Retrofit and DataBinding.
Kotlin
10
star
8

Navigation-Compose

A sample to showcase Kotlin, MVVM, Hilt, Coroutines, StateFlow, Jetpack compose, Navigation compose, Room, Retrofit and Unit test.
Kotlin
8
star
9

Compose-CollapsingToolbar-Issue

Modular Android architecture which showcase Kotlin, MVVM, Navigation, Hilt, Coroutines, Jetpack Compose, Retrofit, Unit test and Kotlin Gradle DSL.
Kotlin
8
star
10

Rebtel-Contacts-Clone

A sample to showcase contact list divided into sections with group header using Butterknife, Dagger, RxJava and DataBinding.
Java
5
star
11

StarWarsSearch-RxPaging

Modular Android architecture to showcase Kotlin, MVVM, Clean architecture, Dynamic feature module, Navigation, Paging, Dagger, RxJava, Retrofit, DataBinding, Espresso, Unit test and Kotlin Gradle DSL.
Kotlin
4
star
12

Dynamic-Feature-MultiModule

Modular Android architecture which showcase Kotlin, MVVM, Dynamic feature module, Navigation, Dagger, RxJava, Retrofit, DataBinding, Espresso, Unit test and Kotlin Gradle DSL.
Kotlin
3
star
13

GoogleMap-Direction

A sample to draw a route between origin and destination in Google map using Direction API.
Kotlin
1
star
14

Movies-Cache

A sample to showcase Kotlin, MVVM, Hilt, Navigation, Coroutines, StateFlow, Retrofit, DataBinding and Unit test.
Kotlin
1
star
15

DFM-MultiModule-Cache

Modular Android architecture which showcase Kotlin, MVVM, Dynamic feature module, Navigation, Dagger, RxJava, Retrofit, DataBinding, Espresso, Unit test and Kotlin Gradle DSL.
Kotlin
1
star
16

Paging3-Issue

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

DFM-Dagger-MultiModule-Cache

Modular Android architecture which showcase Kotlin, MVVM, Dynamic feature module, Navigation, Dagger, RxJava, Retrofit, DataBinding and Kotlin Gradle DSL.
Kotlin
1
star