Skip to content

Commit

Permalink
Merge pull request #11 from plaidev/android-flutter-bridge
Browse files Browse the repository at this point in the history
[ios] fix experiment.dispatch interface
  • Loading branch information
RyosukeCla authored Mar 19, 2024
2 parents 63f5a7a + 671ed9d commit 24a52d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Nativebrik.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Nativebrik'
s.version = '0.4.0'
s.version = '0.4.1'
s.summary = 'Nativebrik SDK'
s.description = <<-DESC
Nativebrik SDK for iOS.
Expand Down
4 changes: 2 additions & 2 deletions ios/Nativebrik/Nativebrik/sdk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import SwiftUI
import Combine

public let nativebrikSdkVersion = "0.4.0"
public let nativebrikSdkVersion = "0.4.1"
public let isNativebrikAvailable: Bool = {
if #available(iOS 15.0, *) {
return true
Expand Down Expand Up @@ -130,7 +130,7 @@ public class NativebrikExperiment {
self.overlayVC = overlay
}

public func dispatch(event: NativebrikEvent) {
public func dispatch(_ event: NativebrikEvent) {
self.overlayVC.triggerViewController.dispatch(event: event)
}

Expand Down
2 changes: 1 addition & 1 deletion ios/Nativebrik/NativebrikTests/sdk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class NativebrikClientTests: XCTestCase {

func testDispatchWithoutErrorThrows() throws {
let client = NativebrikClient(projectId: "Nothing")
client.experiment.dispatch(event: NativebrikEvent("Hello"))
client.experiment.dispatch(NativebrikEvent("Hello"))
}
}

Expand Down

0 comments on commit 24a52d3

Please sign in to comment.