refactor: remove activity dependency from LinphoneBridge

This commit is contained in:
Andrew 2026-01-22 17:11:24 +07:00
parent 0375fe4d1a
commit 9a86c4881c
2 changed files with 1 additions and 22 deletions

View file

@ -7,7 +7,6 @@ class LinphoneBridge {
private var core: Core!
private var isRegistered = false
private var currentCall: Call?
private let activity: UIViewController
private let remoteViewAcquisitor: () -> UIView?
private let localViewAcquisitor: () -> UIView?
private let onRegistrationStateChanged: (Int) -> Void
@ -30,13 +29,11 @@ class LinphoneBridge {
private static let TAG = "LinphoneBridge"
init(
activity: UIViewController,
remoteViewAcquisitor: @escaping () -> UIView?,
localViewAcquisitor: @escaping () -> UIView?,
onRegistrationStateChanged: @escaping (Int) -> Void,
onCallStateChanged: @escaping (Int) -> Void
) {
self.activity = activity
self.remoteViewAcquisitor = remoteViewAcquisitor
self.localViewAcquisitor = localViewAcquisitor
self.onRegistrationStateChanged = onRegistrationStateChanged