adnan-SM / adnan-SM/droidconChennaiV2

Room Setup

Open
#6 1 comment 0 reactions 3 assignees Claimed by @Hariofspades View on GitHub
enhancement good first issue help wanted
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.