Home

Awesome

<p align="center"> <img src="Preview/stars.jpg" width="100%" height="350"/> </p>

Popular People πŸ‘“

GitHub license Android Weekly ktlint Github Followers GitHub forks GitHub watchers Twitter Follow

Popular People is a sample Android application πŸ“± showing stars of the world πŸ‘“ built to demonstrate use of Modern Android development tools. Dedicated to all Android Developers with ❀️.

You can Install and test latest Popular People app from below πŸ‘‡

Popular People App

About

It simply loads Popular People data from API.Peoples will be always loaded from Remote data (from API).

Dummy API is used in this app. JSON response is statically hosted here.

ScreenShots

<p align="center"> <img src="/Preview/main_screen.gif" width="32%"/> <img src="/Preview/details_screen.gif" width="32%"/> <img src="/Preview/open_photo.gif" width="32%"/> </p>

Built With πŸ› 

Unit Testing Frameworks

Unit Tests verify the interactions of viewmodels between repositories and dao & REST api requests.

<p align="center"> <img src="Preview/tests.PNG" width="100%" height="350"/> </p>

Contributed By: Khaled Sherif

Package Structure

com.meslmawy.ibtkarchallenge  # Root Package
.
β”œβ”€β”€ data                # For data handling.
β”‚   β”œβ”€β”€ remote          # Remote Data Handlers     
|   β”‚   β”œβ”€β”€ api         # Retrofit API for remote end point.
β”‚   └── repository      # Single source of data.
|
β”œβ”€β”€ model               # Model classes
    β”œβ”€β”€ dto             # Data Models         
β”œβ”€β”€ di                  # Dependency Injection             
β”‚   β”œβ”€β”€ builder         # Activity Builder
β”‚   β”œβ”€β”€ component       # DI Components       
β”‚   └── module          # DI Modules
|
β”œβ”€β”€ ui                  # Activity/View layer
β”‚   β”œβ”€β”€ base            # Base View
β”‚   β”œβ”€β”€ main            # Main Screen Activity & ViewModel
|   β”‚   β”œβ”€β”€Fragment     # Fragment
|   β”‚   └── viewmodel   # ViewModel for Main Fragmnet
β”‚   └── details         # Detail Screen Fragment and ViewModel
|   β”‚   β”œβ”€ Fragment     # Fragment
|   β”‚   └─ viewmodel    # ViewModel for Details Fragmnet 
β”‚   └── photo           # Photo Screen Fragment and ViewModel
|   β”‚   β”œβ”€ Fragment     # Fragment
|   β”‚   └─ viewmodel    # ViewModel for Details Fragmnet 
β”‚   β”œβ”€β”€ adapter         # Base Adapters Package
|   β”‚   β”œ  MainPopular  # Main adapter with ViewHolder for Popular People Items
|   β”‚   β”œ  Movies       # adapter with ViewHolder for Actor Movies
|   β”‚   └─ Images       # adapter with ViewHodler for Actor Images
└── utils               # Utility Classes / Kotlin extensions

Architecture

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

Soon 🎈πŸ’ͺ

Find this repository useful? :heart:

Support it by joining stargazers for this repository. :star: <br> And follow me for my next creations! 🀩

License


Copyright (c) 2020 Khaled  Sherif
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 NON INFRINGEMENT. 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