Skip to content

Remove private buyerChange event from Swift and Kotlin protocol#295

Merged
markmur merged 3 commits into
mainfrom
remove-buyerchange-swift-kotlin
Jun 18, 2026
Merged

Remove private buyerChange event from Swift and Kotlin protocol#295
markmur merged 3 commits into
mainfrom
remove-buyerchange-swift-kotlin

Conversation

@markmur

@markmur markmur commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

What changes are you making?

Removes the internal buyerChange notification descriptor (ec.buyer.change) from the native protocol layer — the Swift ShopifyCheckoutProtocol package and the Android SDK — plus its unit test in each.

Unlike web (which exposed checkout:buyerChange publicly), native never surfaced this event: internal val in Kotlin, default-internal static let in Swift. This drops the dead descriptor for parity with the web removal in #290.

Native-only: does not touch the OpenRPC wire schema (ec.buyer.change stays defined in embedded.openrpc.json) or the generated TypeScript. The native descriptors are hand-written, so they don't track the schema.

Related: #290 (web).

@markmur markmur requested a review from a team as a code owner June 18, 2026 09:54
@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown

React Native — Coverage Report

Lines Statements Branches Functions
Coverage: 92%
91.66% (319/348) 87.86% (181/206) 100% (82/82)

@markmur markmur enabled auto-merge (squash) June 18, 2026 09:55
@kiftio

kiftio commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

@markmur

markmur commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

@kiftio yeah this is a follow up to the web removal - it removes it from Swift + Kotlin

@kiftio

kiftio commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

I pushed an update to do the same.. But all good, let's merge and I'll resolve conflicts

@markmur

markmur commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

@kiftio ah sorry didn't realise. Happy to close this and ship it in one PR?

@kiftio

kiftio commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

no, let's merge 🚢

@markmur markmur merged commit 027b4d4 into main Jun 18, 2026
26 checks passed
@markmur markmur deleted the remove-buyerchange-swift-kotlin branch June 18, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants