fix: Init 'sqlcipher' before creating both downloads and vault databases #619

This commit is contained in:
Artem Chepurnyi 2024-10-03 22:32:19 +03:00
parent ce15cf9ea0
commit 979ca2ffe3
1 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,10 @@ class SqlManagerFile2(
private val context: Context,
private val onCreate: (Database) -> IO<Unit>,
) : SqlManager {
init {
System.loadLibrary("sqlcipher")
}
override fun create(
masterKey: MasterKey,
databaseFactory: (SqlDriver) -> Database,