anilshatharashi / Kotlin-mvvm-koin-rxJava2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem Name: Usage of Kotlin-mvvm-koin-rxJava2-retrofit

As per my understanding the requirement is - make three different requests and print the result after applying the business logic.

  1. 10thCharacterRequest: Grabs the content from https://developer.android.com/guide/platform and finds the 10th character and displays.
  2. Every10thCharacterRequest: Grabs the content from https://developer.android.com/guide/platform and finds every 10th character (i.e. 10th, 20th, 30th, etc.) In this case I have not removed the white characters as I see it is emphasised in case 3 but not here. Thus, I assumed that we need to display the white spaces as well
  3. WordCounterRequest: It Grabs the content from https://developer.android.com/guide/platform and displays the count of each word after splits into words by removing whitespace characters.

Implementation

It is developed using MVVM clean architecture. It uses repository pattern to fetch the data from server. As the app is being developed from the scratch, I decided to modularize it.

Test Coverage

View are being tested by Instrumentation Tests For testing UseCases, Repository and ViewModels UNIT tests are written

Technologies used:

  • Kotlin
  • Retrofit
  • RxJava
  • Koin
  • JUnit
  • Espresso
  • Mockito
  • Jsoup
  • Jetpack library
  • Material design

About


Languages

Language:Kotlin 100.0%