package Ġorg . me lon . me lon messenger . 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 Ġorg . me lon . me lon messenger . data . App Database Ċ import Ġjavax . inject . Singleton ĊĊ Ċ @ Module Ċ @ Install In ( Singleton Component :: class ) Ċ class ĠApp Database Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovides Chat Content Dao ( app Database : ĠApp Database ) Ġ= ĊĠĠĠĠĠĠĠ Ġapp Database . chat Content Dao () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovides Ch ats List Dao ( app Database : ĠApp Database ) Ġ= ĊĠĠĠĠĠĠĠ Ġapp Database . ch ats List Dao () ĊĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovides Chat Content Database ( ĊĠĠĠĠĠĠĠ Ġ@ ApplicationContext Ġcontext : ĠContext ĊĠĠĠ Ġ): ĠApp Database Ġ= ĠRoom . database Builder ( ĊĠĠĠĠĠĠĠ Ġcontext , ĊĠĠĠĠĠĠĠ ĠApp Database :: class . java , ĊĠĠĠĠĠĠĠ ĠApp Database . NAME ĊĠĠĠ Ġ). build () Ċ }