Skip to content

Commit

Permalink
added autoTrackDeviceAttributes as config in ios
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-aman committed Sep 16, 2024
1 parent 1b29f29 commit efbd423
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/wrappers/utils/CioConfigUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ struct RCTCioConfig: Decodable {
let siteId: String?
let region: Region?
let trackApplicationLifecycleEvents: Bool?
let autoTrackDeviceAttributes: Bool?
let enableInApp: Bool?
let qa: QASettings?

Expand Down Expand Up @@ -43,6 +44,7 @@ func cioInitializeConfig(from config: RCTCioConfig, logLevel: String?) -> CioCon
let cioLogLevel = CioLogLevel(rawValue: logLevel ?? "no log level")
ifNotNil(config.siteId, thenPassItTo: cdpConfigBuilder.migrationSiteId)
ifNotNil(config.region, thenPassItTo: cdpConfigBuilder.region)
ifNotNil(config.autoTrackDeviceAttributes, thenPassItTo: cdpConfigBuilder.autoTrackDeviceAttributes)
ifNotNil(config.trackApplicationLifecycleEvents, thenPassItTo: cdpConfigBuilder.trackApplicationLifecycleEvents)
ifNotNil(cioLogLevel, thenPassItTo: cdpConfigBuilder.logLevel)
ifNotNil(config.qa?.cdnHost, thenPassItTo: cdpConfigBuilder.cdnHost)
Expand Down Expand Up @@ -114,4 +116,4 @@ struct AnyCodable: Codable {
))
}
}
}
}

0 comments on commit efbd423

Please sign in to comment.