This sample app is used to show the integration via AppCoins Billing SDK of the AppCoins Billing System.
This sample app is still under development and some features might be imcomplete for now.
- 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.
Dev and Prod variants are available which can be chosen via BuildVariants and run on Android Studio. To correctly test the Application, update the CATAPPULT_PUBLIC_KEY with the Sample key on SDK Documentation.
This sample app attempts to use modern android development techniques as a validation gateway, with the following relevant takeways.
- Uses
Version Catalogfor the libraries management, a simple TOML file - Proposes a Modularisation strategy
- Uses
Convention Pluginsup all modules and simplfy boilerplate in module creation and dependency management. - Uses
Jetpack Composefor the entire UI, with Single Activity - Uses various
Jetpacklibraries for navigation, splash, accompanist, etc - Uses
Kotlin Courotinesfor the entire app - Uses
Kotlin Resultfor improved and forced error handling - Uses
Retrofitfor network calls, with a custom adapter - Uses
Hiltfor dependency injection
Since this app is still under development, some features may not be fully developed.