Use AndroidAppContext.get() in android implementation to make DB fully platform independent

This commit is contained in:
Olof Hedman
2025-09-29 11:58:18 +02:00
parent db00c93771
commit 9a1a2b6e14
4 changed files with 9 additions and 12 deletions

View File

@@ -6,6 +6,6 @@ import app.cash.sqldelight.db.SqlDriver
* Common deklaration: här säger vi bara att varje plattform
* (Android/iOS) måste implementera DatabaseFactory.
*/
expect class DatabaseFactory {
expect object DatabaseFactory {
fun createDriver(): SqlDriver
}