From 5a4f529e26549268fb8d359284c4a5c90f5145ec Mon Sep 17 00:00:00 2001 From: Muzahidul Islam Date: Fri, 22 Nov 2024 23:35:41 +0600 Subject: [PATCH] fix: vuid assigned to odpmanager --- Sources/Optimizely/OptimizelyClient.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/Optimizely/OptimizelyClient.swift b/Sources/Optimizely/OptimizelyClient.swift index e106a897..fbdf0d19 100644 --- a/Sources/Optimizely/OptimizelyClient.swift +++ b/Sources/Optimizely/OptimizelyClient.swift @@ -94,9 +94,7 @@ open class OptimizelyClient: NSObject { super.init() VuidManager.shared.configure(enable: self.sdkSettings.enableVuid) - if VuidManager.shared.enable { - self.vuid = VuidManager.shared.vuid - } + self.vuid = VuidManager.shared.vuid self.odpManager = odpManager ?? OdpManager(sdkKey: sdkKey, disable: sdkSettings.disableOdp, @@ -104,7 +102,7 @@ open class OptimizelyClient: NSObject { cacheTimeoutInSecs: sdkSettings.segmentsCacheTimeoutInSecs, timeoutForSegmentFetchInSecs: sdkSettings.timeoutForSegmentFetchInSecs, timeoutForEventDispatchInSecs: sdkSettings.timeoutForOdpEventInSecs) - + self.odpManager.vuid = self.vuid let userProfileService = userProfileService ?? DefaultUserProfileService() let logger = logger ?? DefaultLogger() type(of: logger).logLevel = defaultLogLevel ?? .info