Skip to content

Commit

Permalink
feature: ConstructorBy
Browse files Browse the repository at this point in the history
  • Loading branch information
Raph committed Aug 12, 2024
1 parent 7b288ba commit 46525f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package io.dot.lorraine.db

//expect object LorraineConstructor : RoomDatabaseConstructor<LorraineDB>
import androidx.room.RoomDatabaseConstructor

expect object LorraineConstructor : RoomDatabaseConstructor<LorraineDB>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.dot.lorraine.db

import androidx.room.ConstructedBy
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
Expand All @@ -18,7 +19,7 @@ import io.dot.lorraine.db.entity.WorkerEntity
StringSetConverter::class,
DataConverter::class
)
//@ConstructedBy(LorraineConstructor::class)
@ConstructedBy(LorraineConstructor::class)
abstract class LorraineDB : RoomDatabase(), DB {

internal abstract fun workerDao(): WorkerDao
Expand Down

0 comments on commit 46525f7

Please sign in to comment.