An android app built using Jetpack (ViewModel), Material Design and MVVM architecture. consumes BrainShop API for chatbot response.
For more info check out the -b compose branch.
Go to the Releases to download the latest APK.
- 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.
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