Skip to content

[Android] Stop emitting ec_color_scheme query param#95

Merged
Juanita-Dash merged 1 commit into
mainfrom
android/remove-ec-color-scheme
May 14, 2026
Merged

[Android] Stop emitting ec_color_scheme query param#95
Juanita-Dash merged 1 commit into
mainfrom
android/remove-ec-color-scheme

Conversation

@Juanita-Dash
Copy link
Copy Markdown
Contributor

@Juanita-Dash Juanita-Dash commented May 13, 2026

Part of https://github.com/shop/issues-checkout-kit/issues/906.
This recent PR appended ec_color_scheme to the checkout URL but a decision has been made to no longer have this query param. This PR strips ec_color_scheme emission from the Android kit:

  • UriExtensions.appendEcpParams: drop the colorScheme parameter and the
    ec_color_scheme block; ec_version and ec_delegate still emitted
  • CheckoutWebView.loadCheckout: drop the colorScheme argument at the call site
  • Tests: remove the 4 pure ec_color_scheme cases in UriExtensionsTest and the
    5 in CheckoutWebViewTest; trim ColorScheme filler from the 3 surviving
    UriExtensions tests

appendEcpParams is internal, so lib/api/lib.api is unchanged.
Swift equivalent will land in a separate PR.

🤖 Generated with Claude Code

@Juanita-Dash Juanita-Dash requested a review from a team as a code owner May 13, 2026 17:41
@Juanita-Dash Juanita-Dash self-assigned this May 13, 2026
Part of shop/issues-checkout-kit#906.
The Checkout Kits will no longer thread color scheme through ECP. This PR strips ec_color_scheme emission from the Android kit:

- UriExtensions.appendEcpParams: drop the colorScheme parameter and the
  ec_color_scheme block; ec_version and ec_delegate still emitted
- CheckoutWebView.loadCheckout: drop the colorScheme argument at the call site
- Tests: remove the 4 pure ec_color_scheme cases in UriExtensionsTest and the
  5 in CheckoutWebViewTest; trim ColorScheme filler from the 3 surviving
  UriExtensions tests; drop the now-vestigial colorScheme tearDown reset

appendEcpParams is internal, so lib/api/lib.api is unchanged.
Swift equivalent will land in a separate PR.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@toneymathews toneymathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks straight forward to me

Juanita-Dash added a commit that referenced this pull request May 13, 2026
Part of shop/issues-checkout-kit#906.
The Checkout Kits will no longer thread color scheme through ECP. This PR strips ec_color_scheme emission from the Swift kit:

- CheckoutProtocol.url(for:): drop the colorScheme parameter and the
  ec_color_scheme queryItem; ec_version still emitted
- CheckoutViewController.init and ShopifyCheckoutKit.preload/present:
  drop the colorScheme argument at the 4 call sites

CheckoutProtocol.url(for:colorScheme:) is public but PR #65 has not yet
been released (no 3.8.0 tag), so removing the parameter outright is safe.
Android equivalent landed in #95.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Juanita-Dash Juanita-Dash requested review from a team and markmur May 13, 2026 19:21
Juanita-Dash added a commit that referenced this pull request May 14, 2026
Part of shop/issues-checkout-kit#906.
The Checkout Kits will no longer thread color scheme through ECP. This PR strips ec_color_scheme emission from the Swift kit:

- CheckoutProtocol.url(for:): drop the colorScheme parameter and the
  ec_color_scheme queryItem; ec_version still emitted
- CheckoutViewController.init and ShopifyCheckoutKit.preload/present:
  drop the colorScheme argument at the 4 call sites

CheckoutProtocol.url(for:colorScheme:) is public but PR #65 has not yet
been released (no 3.8.0 tag), so removing the parameter outright is safe.
Android equivalent landed in #95.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Juanita-Dash Juanita-Dash added the #gsd:50662 Rebase Checkout Kit on UCP label May 14, 2026
@Juanita-Dash Juanita-Dash merged commit feef6ac into main May 14, 2026
17 checks passed
@Juanita-Dash Juanita-Dash deleted the android/remove-ec-color-scheme branch May 14, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:50662 Rebase Checkout Kit on UCP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants