Skip to content

[Swift] Remove ec_color_scheme query param - #96

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

[Swift] Remove ec_color_scheme query param#96
Juanita-Dash merged 1 commit into
mainfrom
swift/remove-ec-color-scheme

Conversation

@Juanita-Dash

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

Copy link
Copy Markdown
Contributor

Part of https://github.com/shop/issues-checkout-kit/issues/906.

Changes:

  • CheckoutProtocol.url(for:): drop the colorScheme parameter and the ec_color_scheme query item
  • CheckoutViewController.init and ShopifyCheckoutKit.preload/present: drop the colorScheme argument at call sites
  • Add CheckoutProtocolURLTests.swift

@Juanita-Dash
Juanita-Dash requested a review from a team as a code owner May 13, 2026 18:29
@Juanita-Dash Juanita-Dash self-assigned this May 13, 2026

@toneymathews toneymathews left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

leaving one question, lgtm otherwise

@Juanita-Dash
Juanita-Dash force-pushed the swift/remove-ec-color-scheme branch from bf9bf8a to 782815b Compare May 13, 2026 19:06
@Juanita-Dash
Juanita-Dash requested review from a team, kiftio and markmur May 13, 2026 19:20
Comment thread platforms/swift/Tests/ShopifyCheckoutProtocolTests/CheckoutProtocolURLTests.swift Outdated
@Juanita-Dash
Juanita-Dash force-pushed the swift/remove-ec-color-scheme branch from 782815b to 4778478 Compare May 14, 2026 13:48
@Juanita-Dash
Juanita-Dash requested review from a team and markmur May 14, 2026 13:51
@Juanita-Dash Juanita-Dash added the #gsd:50662 Rebase Checkout Kit on UCP label May 14, 2026
@Juanita-Dash Juanita-Dash changed the title [Swift] Stop emitting ec_color_scheme query param [Swift] Remove ec_color_scheme query param May 15, 2026

@westeezy westeezy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Part of https://github.com/shop/issues-checkout-kit/issues/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 force-pushed the swift/remove-ec-color-scheme branch from 4778478 to 3c95eeb Compare May 15, 2026 13:33
@Juanita-Dash
Juanita-Dash merged commit 4709a93 into main May 15, 2026
21 checks passed
@Juanita-Dash
Juanita-Dash deleted the swift/remove-ec-color-scheme branch May 15, 2026 13:40
kieran-osgood-shopify added a commit that referenced this pull request May 21, 2026
### What changes are you making?

Android currently has an API dump and API check command that helps us snapshot and determine any public API drift. 

this change brings the same dump and check snapshotting ability to React Native and Swift. and wires them in as blocking CI steps when we detect a public change in order to get the CIO passing, you'll need to regenerate the snapshot so that there's no drift detected on CI. 

<img width="1325" height="1333" alt="image" src="https://github.com/user-attachments/assets/9570c62d-c5d7-448e-a684-92db16c77a9f" />


### How to test

Example failing CI run for a branch that hadn't rebased to include mains changes of [removing ec_color_scheme](#96)

https://github.com/Shopify/checkout-kit/actions/runs/25923211711/job/76197466792?pr=130


---

### Before you merge

> [!IMPORTANT]
>
> - [ ] I've added tests to support my implementation
> - [ ] I have read and agree with the [Contribution Guidelines](./CONTRIBUTING.md)
> - [ ] I have read and agree with the [Code of Conduct](./CODE_OF_CONDUCT.md)
> - [ ] I've updated the relevant platform README (`platforms/swift/README.md` and/or `platforms/android/README.md`)

---

<details>
<summary>Releasing a new Swift version?</summary>

- [ ] I have bumped the version in `ShopifyCheckoutKit.podspec`
- [ ] I have bumped the version in `platforms/swift/Sources/ShopifyCheckoutKit/ShopifyCheckoutKit.swift`
- [ ] I have updated `platforms/swift/CHANGELOG.md`
- [ ] I have updated the SwiftPM/CocoaPods version snippets in `platforms/swift/README.md` (major version only)

</details>

<details>
<summary>Releasing a new Android version?</summary>

- [ ] I have bumped the `versionName` in `platforms/android/lib/build.gradle`
- [ ] I have updated `platforms/android/CHANGELOG.md`
- [ ] I have updated the Gradle/Maven version snippets in `platforms/android/README.md`

</details>

> [!TIP]
> See the [Contributing documentation](./CONTRIBUTING.md) for the full release process per platform.
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.

6 participants