romtsn
08/19/2020, 1:28 PMval dbConfig = DatabaseConfiguration(
name = "name.db",
version = MyDb.Schema.version,
create = { connection -> wrapConnection(connection) { MyDb.Schema.create(it) } },
upgrade = { connection, oldVersion, newVersion ->
wrapConnection(connection) {
MyDb.Schema.migrate(it, oldVersion, newVersion)
}
},
basePath = customDirPath,
key = key,
journalMode = JournalMode.DELETE
)
Thanks!Sam Hill
08/19/2020, 2:55 PMSam Hill
08/19/2020, 3:01 PM-framework "SQLCipher"
which should be inherited from the pod project and no -lsqlite3
romtsn
08/19/2020, 3:14 PMromtsn
08/19/2020, 3:16 PMromtsn
08/19/2020, 3:17 PMromtsn
08/19/2020, 3:20 PMSam Hill
08/19/2020, 4:21 PMgradlew podspec
it adds the cipher pod as a dependency in your podspec. This makes it available in xcode, so I think you should be able to remove the top level instance of SQLCipher. I don’t think it will cause any issues though unless you get versions mismatching. If you do still have sqlite3 in you linker flags though I would try removing that to make sure it links with SQLCipher insteadromtsn
08/19/2020, 4:28 PMSam Hill
08/19/2020, 4:31 PMromtsn
08/19/2020, 8:21 PMromtsn
08/20/2020, 10:11 AMUncaught Kotlin exception: kotlin.Exception: android/database/sqlite/SQLiteDatabaseCorruptException - file is not a database (code 26): , while compiling: PRAGMA journal_mode
Could it be related to your fix?Sam Hill
08/20/2020, 8:16 PM