Skip to content

Commit f67ee72

Browse files
author
Christian
committed
use shorter Store initializer in sample code
1 parent 3bfaa19 commit f67ee72

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Example/NotesExample-iOS/AppDelegate.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ extension Store {
1111
in: FileManager.SearchPathDomainMask.userDomainMask,
1212
appropriateFor: nil,
1313
create: true)
14-
return try Store(
15-
directoryPath: directory.path,
16-
maxDbSizeInKByte: 500,
17-
fileMode: 0o755,
18-
maxReaders: 10)
14+
return try Store(directoryPath: directory.path)
1915
}
2016
}
2117

Example/NotesExample-macOS/StoreHelper.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ extension Store {
66
/// Creates a new ObjectBox.Store in a temporary directory.
77
static func createStoreInTemporaryDirectory() throws -> Store {
88
let directory = try newTemporaryDirectory().path
9-
return try Store(
10-
directoryPath: directory,
11-
maxDbSizeInKByte: 500,
12-
fileMode: 0o755,
13-
maxReaders: 10)
9+
return try Store(directoryPath: directory)
1410
}
1511
}
1612

0 commit comments

Comments
 (0)