Skip to content

Catappult/appcoins-diceroll-android-sample-sdk-integration

Repository files navigation

AppCoins Diceroll Android sample for SDK Integrations

💻 About

This sample app is used to implement Billing SDK integrations.

This sample app is still under development and some features might be imcomplete for now.

⚙️ Design/Features

  • Simple roll of the dice game with statistics for rolls to avoid having an oversimplified case and allow for some navigation and state managment
  • Number of rolls available are limited to 3 maximum, requiring a payment if it reaches 0. Resetting to max if payment was completed.
  • If the roll is guess is correct, it resets to the maximum just like a payment would.

🚀 How to run it

Dev and Prod variants are available which can be chosen via BuildVariants and run on Android Studio.

🛠 Tech Notes

This sample app attempts to use modern android development techniques as a validation gateway, with the following relevant takeways.

  • Uses Version Catalog for the libraries management, a simple TOML file
  • Proposes a Modularisation strategy
  • Uses Convention Plugins up all modules and simplfy boilerplate in module creation and dependency management.
  • Uses Jetpack Compose for the entire UI, with Single Activity
  • Uses various Jetpack libraries for navigation, splash, accompanist, etc
  • Uses Kotlin Courotines for the entire app
  • Uses Kotlin Result for improved and forced error handling
  • Uses Retrofit for network calls, with a custom adapter
  • Uses Hilt for dependency injection

Limitations

Since this app is still under development, some features may not be fully developed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages