Skip to content

[Android] Load data from realm and implement tests on almost all data layer

Notifications You must be signed in to change notification settings

yc0015139/NewsApi-android

Repository files navigation

NewsApi-android

Environment

AndroidStudio = Android Studio Giraffe | 2022.3.1 Patch 2 
kotlin = 1.8.10
compileSdk = 34
minSdk = 29
targetSdk = 34
jvmTarget = 17

Test coverage

  • Yep, 97% lines covered on data layer

  • Repository
  • DataSources
    • PagingSource
  • ViewModel

TechStack

  • Kotlin
    • Coroutines
      • Flow
        • StateFlow
    • Kotlin DSL in build.gradle.kts
  • Testing
    • Testing first!
      • Almost all classes in the data layer have been covered with tests
      • PagingSource, PagingData, Realm and more
    • Libs
      • Kotlin test
      • Kotlin coroutines test
      • Mockk
      • MockWebServer
        • Mock the server response from json
      • Paging test
  • Dependency Injection
    • Hilt
  • Database
    • Realm
      • Test with Realm
  • Network
    • Retrofit
    • Kotlin Serialization
  • MVVM architecture
  • Single Activity Architecture
  • XML
    • Fragment
    • View binding
    • RecyclerView
      • Paging
    • SwipeRefreshLayout
  • Image
    • Glide
  • Jetpack Compose
    • (WIP)
    • Compose navigation
      • Can navigate to Compose or XML View

Previews

Xml

Compose

  • (WIP)

About

[Android] Load data from realm and implement tests on almost all data layer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages