Skip to content

Stay upto date with latest movie information! a sample application to demonstrate latest android development practices.

Notifications You must be signed in to change notification settings

devmanishpatole/LatestMovies

Repository files navigation

photo

LatestMovies Application CI

LatestMovies is a sample Android application, built to demonstrate use of Modern Android development tools.

About

Application loads Movies data from TMDB API and displays in a list format. The user can tap on the movie which opens the next screen where users can see total like percentage, release date and overview. The application supports the lazy loading of movies so users can have a seamless data loading experience. Users can also search a movie.

Features

The codebase focuses on following key things:

  • Single Activity Design
  • Clean and Simple Material UI 🎨
  • Jetpack Compose UI
  • Tests

Built With

  • Kotlin - First class and official programming language for Android development.
  • Coroutines - For asynchronous operation.
  • Flow - A cold asynchronous data stream that sequentially emits values and completes normally or with an exception.
  • Jetpack Compose UI Toolkit - Modern UI development toolkit.
  • Paging 3 - The Paging Library helps you load and display pages of data from a larger dataset from local storage or over the network.
  • Compose Navigation - Navigate between composable while taking advantage of the Navigation component’s infrastructure and features.
  • Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
    • ViewModel - Stores UI-related data that isn't destroyed on UI changes.
  • Dependency Injection
    • Hilt-Dagger - Standard library to incorporate Dagger dependency injection into an Android application.
    • Hilt-ViewModel - DI for injecting ViewModel.
  • Retrofit - A type-safe HTTP client for Android and Java.
  • Moshi - A modern JSON library for Kotlin and Java.
  • Moshi Converter - A Converter which uses Moshi for serialization to and from JSON.
  • Material Components for Android - Modular and customizable Material Design UI components for Android.
  • Coil - An image loading library for Android backed by Kotlin Coroutines.
  • JUnit5 - JUnit 5 is the next generation of JUnit and up-to-date foundation for developer-side testing on the JVM. Focusing on Java 8 and above, as well as enabling many different styles of testing.
  • MockK - Mocking library for Kotlin.

Architecture

This app uses MVVM (Model View View-Model) architecture.

The philosophy behind this architecture is to enable separation of concerns and ultimately a very modular application. This architecture was chosen because it provides the opportunity to separate concerns and implement "SOLID" principles which makes the application more robust and the code base scalable and maintainable.

This due separation of moving parts makes the app more testable with unit tests.

Quality

  • LeakCanary - LeakCanary is a memory leak detection library for Android.

Static code analysis

Used Sonar Lint static code analysis.

Contact

If you need any help, you can connect with me.

Visit:- devmanishpatole.com

License

MIT License

Copyright (c) 2020 Manish Patole

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.