/UrbanDictionary

Basic Dictionary Search from Urban Dictionary API

Primary LanguageKotlin

UrbanDictionary

Android Application built using MVVM architecture for making a basic dictionary search. The app displays a list of definitions for the word typed in the SearchView with number of thumbs up and thumbs down votes.

It allows the users to sort the definitions by either thumbs up or thumbs down using Android switch. The API used for getting result for the word searched is : https://market.mashape.com/community/urban-dictionary

Assumptions:

• Shows a progress indicator every time a search is being performed.

• Searching any word, lists out all the definitions retrieved from the API without any sorting.

• When the switch is checked it sorts the definitions based on the descending order of thumbsUp and vice versa.

• Displays a SnackBar on receiving error response or due to network issues.

Languages and Libraries used:

Kotlin

Java

Android Architecture Components : ViewModel and LiveData

RxJava2 - Concurrency/Asynchronous Tasks

Dagger 2 - Dependency Injection

Retrofit - Network Calls

Gson - Serialization/Deserialization

Mockito - Unit Testing