From 8072d65a8c2de1df2d8c1ff2cc0ac05c396d9699 Mon Sep 17 00:00:00 2001 From: Egor Egorov Date: Fri, 13 Dec 2024 16:52:00 +0200 Subject: [PATCH] fixup! Update dependencies declared in `Podfile` and `Package.swift` Aling Interactor with new interface --- .../Sources/CoreSDKClient/CoreSDKClient.Interface.swift | 1 + GliaWidgets/Sources/Interactor/Interactor.swift | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/GliaWidgets/Sources/CoreSDKClient/CoreSDKClient.Interface.swift b/GliaWidgets/Sources/CoreSDKClient/CoreSDKClient.Interface.swift index be943deb8..f711e2c94 100644 --- a/GliaWidgets/Sources/CoreSDKClient/CoreSDKClient.Interface.swift +++ b/GliaWidgets/Sources/CoreSDKClient/CoreSDKClient.Interface.swift @@ -331,6 +331,7 @@ extension CoreSdkClient { typealias LoggingError = GliaCoreSDK.LoggingError typealias LogLevel = GliaCoreSDK.LogLevel typealias Request = GliaCoreSDK.Request + typealias EngagementChangedBlock = GliaCoreSDK.EngagementChangedBlock } extension CoreSdkClient { diff --git a/GliaWidgets/Sources/Interactor/Interactor.swift b/GliaWidgets/Sources/Interactor/Interactor.swift index 5cbf1c7fa..b4837d502 100644 --- a/GliaWidgets/Sources/Interactor/Interactor.swift +++ b/GliaWidgets/Sources/Interactor/Interactor.swift @@ -234,6 +234,12 @@ extension Interactor { } extension Interactor: CoreSdkClient.Interactable { + var onEngagementChanged: CoreSdkClient.EngagementChangedBlock { + return { [weak self] engagement in + self?.currentEngagement = engagement + } + } + var onScreenSharingOffer: CoreSdkClient.ScreenshareOfferBlock { return { [weak self] answer in self?.notify(.screenShareOffer(answer: answer))