refactor(shared): move jvm room location
This commit is contained in:
parent
98e2610bf0
commit
eb5569e85b
2 changed files with 2 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ import java.io.File
|
|||
|
||||
class JvmDatabaseBuilder() : PlatformDatabaseBuilder {
|
||||
override fun getBuilder(): RoomDatabase.Builder<Database> {
|
||||
val dbFile = File(System.getProperty("java.io.tmpdir"), "my_room.db")
|
||||
val dbFile = File("./data/room.db")
|
||||
return Room.databaseBuilder<Database>(
|
||||
name = dbFile.absolutePath,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue