mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Bump the RustSDK to v1.0.75
This commit is contained in:
committed by
Stefan Ceriu
parent
36980840ed
commit
ed4063a222
@@ -8248,71 +8248,6 @@ open class MediaSourceSDKMock: MatrixRustSDK.MediaSource {
|
||||
{
|
||||
}
|
||||
|
||||
//MARK: - toJson
|
||||
|
||||
var toJsonUnderlyingCallsCount = 0
|
||||
open var toJsonCallsCount: Int {
|
||||
get {
|
||||
if Thread.isMainThread {
|
||||
return toJsonUnderlyingCallsCount
|
||||
} else {
|
||||
var returnValue: Int? = nil
|
||||
DispatchQueue.main.sync {
|
||||
returnValue = toJsonUnderlyingCallsCount
|
||||
}
|
||||
|
||||
return returnValue!
|
||||
}
|
||||
}
|
||||
set {
|
||||
if Thread.isMainThread {
|
||||
toJsonUnderlyingCallsCount = newValue
|
||||
} else {
|
||||
DispatchQueue.main.sync {
|
||||
toJsonUnderlyingCallsCount = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
open var toJsonCalled: Bool {
|
||||
return toJsonCallsCount > 0
|
||||
}
|
||||
|
||||
var toJsonUnderlyingReturnValue: String!
|
||||
open var toJsonReturnValue: String! {
|
||||
get {
|
||||
if Thread.isMainThread {
|
||||
return toJsonUnderlyingReturnValue
|
||||
} else {
|
||||
var returnValue: String? = nil
|
||||
DispatchQueue.main.sync {
|
||||
returnValue = toJsonUnderlyingReturnValue
|
||||
}
|
||||
|
||||
return returnValue!
|
||||
}
|
||||
}
|
||||
set {
|
||||
if Thread.isMainThread {
|
||||
toJsonUnderlyingReturnValue = newValue
|
||||
} else {
|
||||
DispatchQueue.main.sync {
|
||||
toJsonUnderlyingReturnValue = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
open var toJsonClosure: (() -> String)?
|
||||
|
||||
open override func toJson() -> String {
|
||||
toJsonCallsCount += 1
|
||||
if let toJsonClosure = toJsonClosure {
|
||||
return toJsonClosure()
|
||||
} else {
|
||||
return toJsonReturnValue
|
||||
}
|
||||
}
|
||||
|
||||
//MARK: - url
|
||||
|
||||
var urlUnderlyingCallsCount = 0
|
||||
|
||||
Reference in New Issue
Block a user