diff --git a/GliaWidgets/Public/Glia/Glia.Deprecated.swift b/GliaWidgets/Public/Glia/Glia.Deprecated.swift index 96e8c7dd4..e189f635c 100644 --- a/GliaWidgets/Public/Glia/Glia.Deprecated.swift +++ b/GliaWidgets/Public/Glia/Glia.Deprecated.swift @@ -91,7 +91,7 @@ extension Glia { } /// Deprecated, use ``Glia.configure(with:uiConfig:assetsBuilder:completion)`` instead. - @available(*, deprecated, message: "Deprecated, use ``Glia.configure(with:uiConfig:assetsBuilder:completion`` instead.") + @available(*, deprecated, message: "Deprecated, use ``Glia.configure(with:uiConfig:assetsBuilder:completion:)`` instead.") public func configure( with configuration: Configuration, queueId: String, @@ -149,11 +149,11 @@ extension Glia { ) } - /// Deprecated, use ``Deprecated, use ``Glia.configure(with:uiConfig:assetsBuilder:completion`` and ``Glia.startEngagement(engagementKind:in:theme:features:sceneProvider:)`` instead.`` instead. + /// Deprecated, use ``Glia.configure(with:uiConfig:assetsBuilder:completion:)`` and ``Glia.startEngagement(engagementKind:in:theme:features:sceneProvider:)`` instead. @available(*, deprecated, message: """ - Deprecated, use ``Glia.configure(with:uiConfig:assetsBuilder:completion`` and \ + Deprecated, use ``Glia.configure(with:uiConfig:assetsBuilder:completion:)`` and \ ``Glia.startEngagement(engagementKind:in:theme:features:sceneProvider:)`` instead. """ ) @@ -184,6 +184,30 @@ extension Glia { try completion() } } + + /// Deprecated, use ``Glia.startEngagementWithConfig(engagement:in:uiConfig:assetsBuilder:features:sceneProvider:)`` instead. + @available(*, + deprecated, + message: """ + Deprecated, use ``Glia.startEngagementWithConfig(engagement:in:uiConfig:assetsBuilder:features:sceneProvider:)`` instead. + """ + ) + public func startEngagementWithConfig( + engagement: EngagementKind, + uiConfig: RemoteConfiguration, + assetsBuilder: RemoteConfiguration.AssetsBuilder = .standard, + features: Features = .all, + sceneProvider: SceneProvider? = nil + ) throws { + try startEngagementWithConfig( + engagement: engagement, + in: [], + uiConfig: uiConfig, + assetsBuilder: assetsBuilder, + features: features, + sceneProvider: sceneProvider + ) + } } extension Glia.Authentication { diff --git a/GliaWidgets/Public/Glia/Glia.RemoteConfiguration.swift b/GliaWidgets/Public/Glia/Glia.RemoteConfiguration.swift index 344555c0e..c63d85c4a 100644 --- a/GliaWidgets/Public/Glia/Glia.RemoteConfiguration.swift +++ b/GliaWidgets/Public/Glia/Glia.RemoteConfiguration.swift @@ -6,6 +6,7 @@ extension Glia { /// /// - Parameters: /// - engagementKind: Engagement media type. + /// - in: Queue identifiers /// - uiConfig: Remote UI configuration. /// - assetsBuilder: Provides assets for remote configuration. /// - features: Set of features to be enabled in the SDK. @@ -22,6 +23,7 @@ extension Glia { /// public func startEngagementWithConfig( engagement: EngagementKind, + in queueIds: [String], uiConfig: RemoteConfiguration, assetsBuilder: RemoteConfiguration.AssetsBuilder = .standard, features: Features = .all, @@ -46,6 +48,7 @@ extension Glia { try startEngagement( engagementKind: engagement, + in: queueIds, theme: theme, features: features, sceneProvider: sceneProvider diff --git a/TestingApp/ViewController/ViewController.swift b/TestingApp/ViewController/ViewController.swift index 31192450a..0b30eacc6 100644 --- a/TestingApp/ViewController/ViewController.swift +++ b/TestingApp/ViewController/ViewController.swift @@ -297,6 +297,7 @@ extension ViewController { try? Glia.sharedInstance.startEngagementWithConfig( engagement: kind, + in: [queueId], uiConfig: config ) }