Jetpack compose wrapper #315
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes are you making?
Adds a new module/package checkout-sheet-kit-compose.
A wrapper around the core checkout sheet kit lib, including the compose dependencies and a component. A bit like https://github.com/google-pay/compose-pay-button
Leaves existing users unaffected (no additional dependencies/depdendency conflicts, etc), and allows opting into the compose version.
There's some reworking of the build to avoid lots of duplication.
Notes
CheckoutView, to make it less specific to sheets, and work for inline use-cases in the futureonPixelEvent,onFail,onCanceletc)How to test
The Mobile Buy sample is now using the compose package, Simple uses the core lib
Before you merge
Important
Checklist for releasing a new version
build.gradlefileTip
See the Contributing documentation for instructions on how to publish a new version of the library.