Upgrade to iOS 12

This commit is contained in:
Ali
2023-09-23 12:38:29 +04:00
parent e72ea579e8
commit b7fbcbf118
26 changed files with 117 additions and 70 deletions

View File

@@ -134,8 +134,8 @@ public final class WatchCommunicationManager {
if fileManager.fileExists(atPath: presetsFileUrl.path) {
try? fileManager.removeItem(atPath: presetsFileUrl.path)
}
let data = NSKeyedArchiver.archivedData(withRootObject: suggestions)
try? data.write(to: presetsFileUrl)
let data = try? NSKeyedArchiver.archivedData(withRootObject: suggestions, requiringSecureCoding: false)
try? data?.write(to: presetsFileUrl)
let _ = strongSelf.sendFile(url: presetsFileUrl, metadata: [TGBridgeIncomingFileIdentifierKey: "presets"]).start()
}))