diff --git a/Telegram-iOS/AppDelegate.swift b/Telegram-iOS/AppDelegate.swift index d28f404f8e..4cdbf59b49 100644 --- a/Telegram-iOS/AppDelegate.swift +++ b/Telegram-iOS/AppDelegate.swift @@ -205,6 +205,23 @@ final class SharedApplicationContext { precondition(!testIsLaunched) testIsLaunched = true + do { + let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] + let valueBox = SqliteValueBox(basePath: "\(documentsPath)/test_db", queue: Queue.mainQueue(), encryptionParameters: nil, upgradeProgress:{ _ in }) + let table = ValueBoxTable(id: 1, keyType: .int64, compactValuesOnCreation: false) + let key = ValueBoxKey(length: 8) + key.setInt64(0, value: 1234567) + valueBox.begin() + if valueBox.get(table, key: key) != nil { + print("test_db: found") + } else { + print("test_db: not found") + } + valueBox.set(table, key: key, value: MemoryBuffer()) + valueBox.commit() + valueBox.begin() + } + let launchStartTime = CFAbsoluteTimeGetCurrent() let statusBarHost = ApplicationStatusBarHost() diff --git a/submodules/Display b/submodules/Display index d2592223e0..a1aecb45d3 160000 --- a/submodules/Display +++ b/submodules/Display @@ -1 +1 @@ -Subproject commit d2592223e0e82ddb4de5b94a2b40bbb6e91e0c7d +Subproject commit a1aecb45d3320ecedf70d6a6f160a402fd4ee437 diff --git a/submodules/Postbox b/submodules/Postbox index 7d2a5bb3fb..5393f3bb97 160000 --- a/submodules/Postbox +++ b/submodules/Postbox @@ -1 +1 @@ -Subproject commit 7d2a5bb3fbf6353850833c178c09060798900b8e +Subproject commit 5393f3bb9779a41e3fb7048203549de3167937a9 diff --git a/submodules/libtgvoip b/submodules/libtgvoip index 9b78887eaf..78decc81bf 160000 --- a/submodules/libtgvoip +++ b/submodules/libtgvoip @@ -1 +1 @@ -Subproject commit 9b78887eafa3afbcfd405027da02d95d95fd1c8d +Subproject commit 78decc81bf25cf36ad1b4a9398aa11cb195db9c5