Skip to content

A simple Unsplash Image Gallery app based on MVVM architecture, with Unsplash API and Paging3/Glide libraries to paginate and display photos. (Kotlin, Retrofit, GSON, Paging3, Glide, Dagger Hilt, Architecture Components, MVVM, ViewBinding, Material Components)

License

Notifications You must be signed in to change notification settings

boy12hoody/SimpleMVVMUnsplashApp

Repository files navigation

Simple MVVM Unsplash App

A simple Unsplash Image Gallery app based on MVVM architecture.
Re-upload of the old project for demonstration purpose. It was a part of my process of learning Modern Android Development. This project has reached its end of life.

API GitHub Workflow Status License Telegram

Screenshots

Download

Go to the Releases to download the latest APK (Demo Api Key included).

Build And Run

  1. Get a free API Key at Unsplash.com
  2. Clone the repo
    git clone https://github.com/boy12hoody/SimpleMVVMUnsplashApp.git
  3. From Android Studio, select Import Project, then select the root folder of the cloned repository.
  4. Click Make Project to build the app and download all the required dependencies.
  5. Replace your API key in api/UnsplashApi
    const val CLIENT_ID = "Paste_Your_Key_Here"
  6. Click Run app to install the app on your device or emulator.

🛠 Tech stack & Open-source libraries

  • Kotlin - First class and official programming language for Android development.
  • Retrofit 2 - A type-safe HTTP client for Android and the JVM.
  • Glide - An image loading and caching library for Android focused on smooth scrolling.
  • Unsplash API - JSON API to work with the largest open collection of high-quality photos.
  • Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
    • Jetpack -
      • Paging3 - the library helps us load and display pages of data from a larger dataset from local storage or over network.
      • Navigation - Navigation component designed for apps that have one main activity with multiple fragment destinations.
      • LiveData - Data objects that notify views when the underlying database changes.
      • ViewModel - Stores UI-related data that isn't destroyed on UI changes.
      • ViewBinding - Generates a binding class for each XML layout file present in that module and allows you to more easily write code that interacts with views.
  • Dependency Injection -
    • Hilt-Dagger - Standard library to incorporate Dagger dependency injection into an Android application.
    • Hilt-ViewModel - DI for injecting ViewModel.
  • Material Components for Android - Modular and customizable Material Design UI components for Android.

Architecture

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

Contact

If you have questions or need any help, contact me on Telegram

License

MIT License

    Copyright (c) 2021 Ismatov Xurshid

    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.

About

A simple Unsplash Image Gallery app based on MVVM architecture, with Unsplash API and Paging3/Glide libraries to paginate and display photos. (Kotlin, Retrofit, GSON, Paging3, Glide, Dagger Hilt, Architecture Components, MVVM, ViewBinding, Material Components)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages