Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Send purchase-updated instead of purchase-update. #2739

Merged
merged 3 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci-example-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
bundler-cache: true
ruby-version: '2.7'

- name: Install SwiftLint
run: brew install swiftlint

- name: SwiftLint
run: swiftlint lint --fix --format --path ios/*.swift --config .swiftlint.yml

Expand Down
2 changes: 1 addition & 1 deletion ios/RNIapIosSk2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ class RNIapIosSk2iOS15: Sk2Delegate {
func addTransaction(transaction: Transaction) {
purchasedItems.append( transaction)
if alsoPublishToEventListener {
self.sendEvent?("purchase-update", serialize(transaction))
self.sendEvent?("purchase-updated", serialize(transaction))
}
}
func addError( error: Error, errorDict: [String: String]) {
Expand Down
Loading