Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.86 KB

File metadata and controls

43 lines (31 loc) · 1.86 KB

ChatBot

An android app built using Jetpack (ViewModel), Material Design and MVVM architecture. consumes BrainShop API for chatbot response.

Jetpack compose support

For more info check out the -b compose branch.

Download

Go to the Releases to download the latest APK.

Tech stack & Open-source libraries

  • Minimum SDK level 24
  • Kotlin based, Coroutines + LiveData for asynchronous.
  • Jetpack
  • Lifecycle: Observe Android lifecycles and handle UI states upon the lifecycle changes.
  • ViewModel: Manages UI-related data holder and lifecycle aware. Allows data to survive configuration changes such as screen rotations.
  • ViewBinding: Binds UI components in your layouts.
  • MVVM Architecture (View - ViewModel - Model)
  • Repository Pattern
  • Retrofit2 & OkHttp3: Construct the REST APIs and paging network data.

Setup Requirements

First, obtain your API key from BrainShop and add it in a file named gradle.properties within the root directory:

BRAIN_ID="****"
API_KEY="****"

Then, replace it in the build.gradle(:app) :

...
buildConfigField("String", "BRAIN_ID", BRAIN_ID)
buildConfigField("String", "API_KEY", API_KEY)

Finally, rebuild the project for changes to take effect

Done <3 Happy Coding