Skip to content

Commit

Permalink
fix: add sdkwrapperconfig to rich push SDK config (customerio#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
levibostian committed Dec 5, 2022
1 parent e4d1b3f commit e43b4cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/Common/Store/SdkConfig.swift
Expand Up @@ -108,6 +108,12 @@ public struct NotificationServiceExtensionSdkConfig {
public var logLevel: CioLogLevel
/// See `SdkConfig.autoTrackDeviceAttributes`
public var autoTrackDeviceAttributes: Bool
// property is used internally so disable swiftlint rule
/**
Used internally at Customer.io to override some information in the SDK when the SDK is being used
as a wrapper/bridge such as with ReactNative.
*/
public var _sdkWrapperConfig: SdkWrapperConfig? // swiftlint:disable:this identifier_name

// Used to create new instance when the SDK is initialized.
// Then, each property can be modified by the user.
Expand All @@ -134,6 +140,7 @@ public struct NotificationServiceExtensionSdkConfig {
sdkConfig.autoTrackPushEvents = autoTrackPushEvents
sdkConfig.logLevel = logLevel
sdkConfig.autoTrackDeviceAttributes = autoTrackDeviceAttributes
sdkConfig._sdkWrapperConfig = _sdkWrapperConfig

// Default to running tasks added to the BQ immediately.
// Since a Notification Service Extension is only in memory for a small amount of time,
Expand Down

0 comments on commit e43b4cf

Please sign in to comment.