Skip to content

Commit

Permalink
remove simulator inmemmory realm requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
radmakr committed May 26, 2023
1 parent 25b2d1d commit 227df8b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Sources/Persistence/Storage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ public struct Storage: Storing {

public static var realmConfiguration: Realm.Configuration {
guard let config = config else { fatalError("StorageConfig is nil") }
#if targetEnvironment(simulator)
return Realm.Configuration(inMemoryIdentifier: "\(config.nameSpace).persistence.inmemory")
#else
return Realm.Configuration(
fileURL: Storage.realmFileURL("\(config.nameSpace).realm"),
schemaVersion: config.realmSchemaVersion,
Expand All @@ -49,7 +46,6 @@ public struct Storage: Storing {
return (totalBytes > fiftyMB) && (usedBytes < totalBytes / 2)
}
)
#endif
}

public static func setup(config: StoringConfig) {
Expand Down

0 comments on commit 227df8b

Please sign in to comment.