package Ġcom . al vare ng ade v . market plac elist . di Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . room . Room Ċ import Ġcom . al vare ng ade v . market plac elist . data . database . Market place Database Ċ import Ġcom . al vare ng ade v . market plac elist . utils . Constants Ċ 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 Ġjavax . inject . Singleton Ċ Ċ @ Module Ċ @ Install In ( Singleton Component :: class ) Ċ object ĠDatabase Module Ġ{ ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Database (@ ApplicationContext Ġapp : ĠContext ) Ġ= ĠRoom . database Builder ( ĊĠĠĠĠĠĠĠ Ġapp , ĊĠĠĠĠĠĠĠ ĠMarketplace Database :: class . java , ĊĠĠĠĠĠĠĠ ĠConstants . DATABASE _ NAME ĊĠĠĠ Ġ). build () ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Dao Item ( database : ĠMarketplace Database ) Ġ= Ġdatabase . item Dao () Ċ }