Room Setup #6
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Milestone
So, I was trying to setup Room in this project.
I created the
@Entity
and@Dao
classes inside thespeakers
module, as they should be used only inside that module.Next, I created the
AppDatabase
class in theapp
module since it requires access to allEntity
andDao
classes in all modules (for example@Database(entities = [SpeakerModel::class, SessionModel::class], version = 1)
)The issue is, I couldn't figure out how to access
AppDatabase
from different modules. Access toAppDatabase
is not really required, but if anyone can figure out a way to access instances of@Dao
in respective modules, that'll be of much help.Here's what I've done so far: https://github.com/adnan-SM/droidconChennaiV2/tree/roomsetup
The text was updated successfully, but these errors were encountered: