Skip to content

Commit

Permalink
vuid enable check added
Browse files Browse the repository at this point in the history
  • Loading branch information
muzahidul-opti committed Nov 21, 2024
1 parent 0e4d3c4 commit de1b40f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Sources/Optimizely/OptimizelyClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ open class OptimizelyClient: NSObject {
self.sdkKey = sdkKey
self.sdkSettings = settings ?? OptimizelySdkSettings()
self.defaultDecideOptions = defaultDecideOptions ?? []

super.init()
self.vuidManager = VuidManager.shared
self.vuidManager.configure(enable: self.sdkSettings.enableVuid)
Expand Down Expand Up @@ -118,15 +118,15 @@ open class OptimizelyClient: NSObject {
self.decisionService = HandlerRegistryService.shared.injectDecisionService(sdkKey: self.sdkKey)
self.notificationCenter = HandlerRegistryService.shared.injectNotificationCenter(sdkKey: self.sdkKey)


try? sendOdpEvent(type: Constants.ODP.eventType,
action: "client_initialized",
identifiers: [
Constants.ODP.keyForVuid: self.vuid
],
data: [:])


if self.enableVuid {
try? sendOdpEvent(type: Constants.ODP.eventType,
action: "client_initialized",
identifiers: [
Constants.ODP.keyForVuid: self.vuid
],
data: [:])
}

logger.d("SDK Version: \(version)")
}
Expand Down

0 comments on commit de1b40f

Please sign in to comment.