package Ġdes . c 5 in co . poke dex er . di Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . room . Room Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . android . qual ifiers . ApplicationContext Ċ import Ġdagger . h ilt . components . Singleton Component Ċ import Ġdes . c 5 in co . poke dex er . data . pokemon . Pokemon Dao Ċ import Ġdes . c 5 in co . poke dex er . data . pokemon . Pokemon Database Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Install In ( Singleton Component :: class ) Ċ @ Module Ċ object ĠPokemon Database Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Pokemon Dao ( database : ĠPokemon Database ): ĠPokemon Dao Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdatabase . pokemon Dao () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Database (@ ApplicationContext Ġapp Context : ĠContext ): ĠPokemon Database Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠRoom . database Builder ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġapp Context , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠPokemon Database :: class . java , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" pokemon . db " ĊĠĠĠĠĠĠĠ Ġ). build () ĊĠĠĠ Ġ} Ċ }