Fix build for sdk master : pushRegistryDispatchQueue is no longer in the wrapper, we need to use the C function instead

This commit is contained in:
QuentinArguillere 2024-01-26 15:33:06 +01:00
parent ffb60daaea
commit d91aa94c9a

View file

@ -21,6 +21,7 @@
// swiftlint:disable line_length
import linphonesw
import linphone // needed for unwrapped function linphone_core_set_push_registry_dispatch_queue
import Combine
import UniformTypeIdentifiers
import Network
@ -95,11 +96,11 @@ final class CoreContext: ObservableObject {
self.mCore = try? Factory.Instance.createCoreWithConfig(config: config!, systemContext: nil)
}
self.mCore.pushRegistryDispatchQueue = Unmanaged.passUnretained(coreQueue).toOpaque()
linphone_core_set_push_registry_dispatch_queue(self.mCore.getCobject, Unmanaged.passUnretained(coreQueue).toOpaque())
self.mCore.autoIterateEnabled = false
self.mCore.callkitEnabled = true
self.mCore.pushNotificationEnabled = true
self.mCore.setUserAgent(name: "Linphone iOS 6.0 Beta (\(UIDevice.current.localizedModel)) - Linphone SDK : \(self.coreVersion)", version: "6.0")
self.mCore.videoCaptureEnabled = true