/faurecia-aptoide-challenge

This repository hosts an Android app fetching Aptoide's JSON app list, displaying details upon click, using Retrofit2, RxJava, Material Design, MVVM/MVI, and tests.

Primary LanguageKotlinMIT LicenseMIT

Faurecia-aptoide-challenge

Technical Description

This project was built with Android Studio Electric Eel | 2022.1.1. The project uses Clean Architecture and MVVM presentation pattern. RxJava is used for asynchronous calls and StateFlow and SharedFlow are used to ensure the screen state and emission of unique events.

The project is modularized into features such as Home and Details, and a Libraries module contains Arch, Design, and Navigation modules. Koin is used for dependency injection, and tests are included to ensure that all dependencies are provided at runtime.

The project includes unit tests for the domain and presentation layers, and integration tests for the data layer. The Design module contains the project's design system, while the Arch module contains helper classes to aid development. BuildSrc is used for dependency management, and shared gradles are stored in the Plugins folder.

Static analysis libraries such as Detekt and JaCoCO are included to ensure quality, and a workflow is set up to run automated tests on each pull request.

Bonus Task

When click on any item from the main list, a new screen with information about this item should be shown. I used the following endpoint to open details screen and download the APK file: http://ws2.aptoide.com/api/7/app/getMeta/package_name=cm.aptoide.pt

API Endpoint

The JSON information is obtained from the following URL: http://ws2.aptoide.com/api/6/bulkRequest/api_list/listApps

Minimum SDK Version

The minimum SDK version required is 28.

Encouraged Libraries

The use of the following libraries is encouraged:

  • Retrofit2
  • RxJava
  • Material Design
  • MVVM or MVP

APK File

This file can be installed on an Android device for testing purposes by clicking here.

This project involves the use of:

Unit tests, integration tests and instrumentation tests with

Quality

Task management

Module dependencies

Screens

Credits

This challenge was created by Faurecia-Aptoide.