Skip to content

Commit

Permalink
fixup! Update dependencies declared in Podfile and Package.swift
Browse files Browse the repository at this point in the history
Aling Interactor with new interface
  • Loading branch information
Egor Egorov committed Dec 13, 2024
1 parent 833d071 commit 8072d65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ extension CoreSdkClient {
typealias LoggingError = GliaCoreSDK.LoggingError
typealias LogLevel = GliaCoreSDK.LogLevel
typealias Request = GliaCoreSDK.Request
typealias EngagementChangedBlock = GliaCoreSDK.EngagementChangedBlock
}

extension CoreSdkClient {
Expand Down
6 changes: 6 additions & 0 deletions GliaWidgets/Sources/Interactor/Interactor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8072d65

Please sign in to comment.