Shopify / checkout-sheet-kit-android

Shopify’s Checkout Sheet Kit makes it simple to perform a checkout inside your Android app.
MIT License
10 stars 1 forks source link

Code improvements, remove redundant files, update compose-ui in sample apps #88

Closed kiftio closed 5 months ago

kiftio commented 5 months ago

What are you trying to accomplish?

Updates, many of which were IDE/linter recommended:

Entries vs Values - https://kotlinlang.org/docs/enum-classes.html#working-with-enum-constants

Prior to the introduction of entries in Kotlin 1.9.0, the values() function was used to retrieve an array of enum constants.

Data Objects - https://kotlinlang.org/docs/object-declarations.html#data-objects

Data object declarations are particularly useful for sealed hierarchies like [sealed classes or sealed interfaces](https://kotlinlang.org/docs/sealed-classes.html), since they allow you to maintain symmetry with any data classes you may have defined alongside the object.

Before you deploy