Skip to content

Commit dd928a6

Browse files
fix: remove objc leftovers causing the crash (#186)
1 parent 29fd4f8 commit dd928a6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Sources/InstantSearchInsights/Logic/EventTracker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import AlgoliaSearchClient
1313
/// Provides convenient functions for tracking events which can be used for search personalization.
1414
///
1515

16-
class EventTracker: NSObject, EventTrackable {
16+
class EventTracker: EventTrackable {
1717

1818
var eventProcessor: EventProcessable
1919
var logger: PrefixedLogger

Sources/InstantSearchInsights/Logic/Insights.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import AppKit
3030
/// position: 1)
3131
/// ````
3232

33-
@objcMembers public class Insights: NSObject {
33+
public class Insights {
3434

3535
/// Specify the desired API endpoint region
3636
/// By default API endpoint is routed automatically

Tests/InstantSearchInsightsTests/Unit/InsightsTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class InsightsTests: XCTestCase {
3737
let insightsShared = Insights.shared(appId: appID)
3838
XCTAssertNotNil(insightsShared)
3939

40-
XCTAssertEqual(insightsRegister, insightsShared, "Getting the Insights instance from register and shared should be the same")
41-
40+
XCTAssertTrue(insightsRegister === insightsShared, "Getting the Insights instance from register and shared must be the same")
41+
4242
}
4343

4444
func testOptIntOptOut() {

0 commit comments

Comments
 (0)