mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-29 05:41:50 +02:00
fix compile error on tvOS and watchOS
This commit is contained in:
@@ -153,8 +153,8 @@ public final class SQLiteStore: LocalStorage {
|
|||||||
public let storeOptions: [AnyHashable: Any]? = autoreleasepool {
|
public let storeOptions: [AnyHashable: Any]? = autoreleasepool {
|
||||||
|
|
||||||
var storeOptions: [AnyHashable: Any] = [NSSQLitePragmasOption: ["journal_mode": "WAL"]]
|
var storeOptions: [AnyHashable: Any] = [NSSQLitePragmasOption: ["journal_mode": "WAL"]]
|
||||||
if #available(iOS 11, OSX 10.13, *) {
|
if #available(iOS 11.0, OSX 10.13, tvOSApplicationExtension 11.0, watchOSApplicationExtension 4.0, *) {
|
||||||
|
|
||||||
storeOptions[NSBinaryStoreInsecureDecodingCompatibilityOption] = true
|
storeOptions[NSBinaryStoreInsecureDecodingCompatibilityOption] = true
|
||||||
}
|
}
|
||||||
return storeOptions
|
return storeOptions
|
||||||
|
|||||||
Reference in New Issue
Block a user