adnan-SM / adnan-SM/droidconChennaiV2

Room Setup

Abierto
#6 1 comentario 0 reacciones 3 asignados Reclamado por @Hariofspades Ver en GitHub
enhancement good first issue help wanted
Lenguaje dominante
Kotlin
Estrellas
5
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.