Skip to content

tfandkusu/admob_in_compose

Repository files navigation

codecov

AdMob in Jetpack Compose

Functionality

Technical feature

This app's LazyColumn has a View recycle mechanism for AndroidVew like RecyclerView.

Install

Current main branch.

Try it on your device via DeployGate

Architecture

The 3 layers described in Android recommended app architecture

Module structure

image

Multiple compose, presentation, and usecase modules will be created for each feature.

app

  • Activity
  • Compose navigation host

compose

It has minimum dependency to speed up compose preview.

  • Compose
  • Compose preview
  • ViewModel interface
  • ViewModel implementation for compose preview

presentation

  • ViewModel implementation for production

viewCommon

  • Common API error handling
  • Utility for ViewModel and LiveData

usecase

  • Domain layer

repository

  • Represents the data layer

localDataStore

  • Use room to save data locally.

remoteDataStore

  • Use Retrofit to access REST API.

Technology used

All libraries used are defined in lib.versions.toml

Ref: The version catalog TOML file format

View layer

Presentation layer

Data layer

DI

Unit test

Coverage

CI/CD

Other

References

About

AdMob in Jetpack Compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published