[Android] Add support for ec_auth and ec_color_scheme#326
Merged
Conversation
This was referenced Jun 24, 2026
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
76288b0 to
53488b2
Compare
f1504be to
e5b20cc
Compare
53488b2 to
9ae6451
Compare
e5b20cc to
5369aaf
Compare
9ae6451 to
bdd4542
Compare
5369aaf to
40c8694
Compare
13 tasks
Package Size
Measured from the PR base SHA and PR head SHA. This comment reports package artifact sizes only; it is not a final app binary-size report. |
bdd4542 to
afb8ce9
Compare
40c8694 to
77aa730
Compare
afb8ce9 to
d98a9b4
Compare
77aa730 to
220cff9
Compare
d98a9b4 to
f4914e7
Compare
b121d47 to
912db75
Compare
markmur
approved these changes
Jun 25, 2026
f4914e7 to
7bc20e2
Compare
912db75 to
87e76c6
Compare
13 tasks
tiagocandido
approved these changes
Jun 25, 2026
7bc20e2 to
210cf54
Compare
87e76c6 to
4c18156
Compare
4c18156 to
57e1c0e
Compare
13 tasks
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
The
EmbeddedCheckoutProtocol.url()function previously accepted a flatList<String>for delegations. This PR introduces a typedOptionsclass and a typedDelegationclass to the Kotlin ECP library, replacing the raw string list with a structured, extensible API.Key changes:
EmbeddedCheckoutProtocol.Optionsto groupdelegations,auth, andcolorSchemeinto a single parameter passed tourl().EmbeddedCheckoutProtocol.Delegationas a string-backed value type with a companion catalog of known delegations (windowOpen,paymentCredential,paymentInstrumentsChange,fulfillmentAddressChange). Unknown delegation values round-trip intact for forward compatibility.url()now appendsec_authandec_color_schemequery parameters in addition toec_versionandec_delegate, and strips stale values of all four protocol params before re-applying them.appendEcpParams()in the Android SDK now reads any existingec_authvalue from the caller-supplied URL and forwards it throughOptions.auth, preserving caller-supplied auth tokens.generate_kotlin_catalog.mjs) is updated to readx-delegationsfrom the OpenRPC spec and emit theDelegationcompanion catalog automatically.How to test
?ec_auth=tokenpassed throughappendEcpParams()retainsec_auth=tokenin the output.EmbeddedCheckoutProtocol.url()withOptions(auth = "token", colorScheme = "dark")appendsec_auth=tokenandec_color_scheme=dark.url()twice with the sameOptionson an already-decorated URL produces a single set of protocol params with no duplicates.Before you merge
Important
platforms/swift/README.mdand/orplatforms/android/README.md)Releasing a new Swift version?
ShopifyCheckoutKit.podspecplatforms/swift/Sources/ShopifyCheckoutKit/ShopifyCheckoutKit.swiftplatforms/swift/CHANGELOG.mdplatforms/swift/README.md(major version only)Releasing a new Android version?
checkoutKitAndroidinplatforms/android/gradle/libs.versions.tomlplatforms/android/CHANGELOG.mdplatforms/android/README.mdTip
See the Contributing documentation for the full release process per platform.