adnan-SM / adnan-SM/droidconChennaiV2
Room Setup
- Dominant language
- Kotlin
- Stars
- 5
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
So, I was trying to setup Room in this project.
I created the `@Entity` and `@Dao` classes inside the `speakers` module, as they should be used only inside that module.
Next, I created the `AppDatabase` class in the `app` module since it requires access to **all `Entity` and `Dao` 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 to `AppDatabase` 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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.