Skip to content

A simple project which implements Modern Android Developer style

Notifications You must be signed in to change notification settings

TimurHaryo/MiniStockbit

Repository files navigation

Mini Stockbit

This project is a mini-copy of Stockbit Android Application. Main features of this application are Login view and Top Tier page which shows high Crypto coin value.

Mini-Stockbit

kotlin gradle gradle-plugin android-studio material-design navigation-component okhttp3 retrofit2 coroutines koin timber mockk kotest

Features

  • Support Dark/Night Mode
  • Lifecycle Aware
  • Login Page
  • Top Tier(Watchlist) Page :
    • Pagination + load on scroll
    • Pull to refresh
    • Loading state
    • Error state
    • Continue next page after error
    • Clickable data item
  • Search Page (Coming Soon)

Tech Stack

  • Single Activity Architecture (Jetpack Navigation Component)
  • Modularization of Android Application
  • MVVM and Clean Architecture
  • Either class for handling state
  • View Binding
  • Material Design
  • Koin
  • Coroutine and Live Data
  • MockK and Kotest for Unit Testing
  • Kotlin DSL for Gradle

Unit Testing

By default, Android Studio runs its unit testing using Android JUnit, to be able to run unit testing using Kotest you need to install the Kotest plugin first in Android Studio.

TAKE A NOTE

If Kotest error during building testing, change Run/Debug Configurations with following steps:

  • Open the Run/Debug Configuration menu and choose "Edit Configurations..."

  • Choose your configuration from the left side(make sure it is inside Kotest Configuration) and change the "Shorten command line" (right-below side) into "JAR Manifest"

  • Click "OK" to save your configuration then run again using green-play-button

  • If these step still not working, try to change the "Shorten command line" into another else
  • Lastly, if still still still not working...let me know. I'd be happy to discuss together