mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-23 00:44:26 +01:00
Fix swift URL init compatibility (#569)
This commit is contained in:
@@ -28,7 +28,13 @@ open class SDKNotificationService: UNNotificationServiceExtension {
|
||||
}
|
||||
|
||||
if connectRequest.config.cacheDir == nil {
|
||||
connectRequest.config.cacheDir = URL(filePath: connectRequest.config.workingDir).appendingPathComponent("pluginCache").path
|
||||
var workingDir: URL
|
||||
if #available(iOS 16, *) {
|
||||
workingDir = URL(filePath: connectRequest.config.workingDir)
|
||||
} else {
|
||||
workingDir = URL(fileURLWithPath: connectRequest.config.workingDir)
|
||||
}
|
||||
connectRequest.config.cacheDir = workingDir.appendingPathComponent("pluginCache").path
|
||||
}
|
||||
|
||||
if let currentTask = self.getTaskFromNotification() {
|
||||
|
||||
Reference in New Issue
Block a user