Skip to content

Removed trackDeepLinks from configuration #196

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

Merged
merged 1 commit into from
Feb 27, 2023
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
7 changes: 0 additions & 7 deletions Sources/Segment/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class Configuration {
var writeKey: String
var application: Any? = nil
var trackApplicationLifecycleEvents: Bool = true
var trackDeeplinks: Bool = true
var flushAt: Int = 20
var flushInterval: TimeInterval = 30
var defaultSettings: Settings? = nil
Expand Down Expand Up @@ -51,12 +50,6 @@ public extension Configuration {
return self
}

@discardableResult
func trackDeeplinks(_ enabled: Bool) -> Configuration {
values.trackDeeplinks = enabled
return self
}

@discardableResult
func flushAt(_ count: Int) -> Configuration {
values.flushAt = count
Expand Down
5 changes: 5 additions & 0 deletions Sources/Segment/ObjC/ObjCAnalytics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ extension ObjCAnalytics {
return result
}

@objc
public func openURL(_ url: URL, options: [String: Any] = [:]) {
analytics.openURL(url, options: options)
}

@objc
public func version() -> String {
return analytics.version()
Expand Down
10 changes: 0 additions & 10 deletions Sources/Segment/ObjC/ObjCConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ public class ObjCConfiguration: NSObject {
}
}

@objc
public var trackDeeplinks: Bool {
get {
return configuration.values.trackDeeplinks
}
set(value) {
configuration.trackDeeplinks(value)
}
}

@objc
public var flushAt: Int {
get {
Expand Down