package Ġcom . anime . top anime s repos . di Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . room . Room Ċ import Ġcom . anime . core . providers . Data Mapper Ċ import Ġcom . anime . core . providers . Data Pers ister Ċ import Ġcom . anime . top anime s repos . database .* Ċ import Ġcom . anime . top anime s repos . entity . An ime Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ Ċ @ Module Ċ object ĠDatabase Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġinternal Ġfun Ġprovides Database ( context : ĠApplication ): ĠRe positories Database Ġ= ĊĠĠĠĠĠĠĠ ĠRoom . database Builder ( context , ĠRe positories Database :: class . java , Ġ" anime s "). build () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġinternal Ġfun Ġprovides Repositories Dao ( database : ĠRe positories Database ): ĠRe positories Dao Ġ= ĊĠĠĠĠĠĠĠ Ġdatabase . repository Dao () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġinternal Ġfun Ġprovides Database Repositories Mapper (): ĊĠĠĠĠĠĠĠĠĠĠĠ ĠData Mapper < An ime , ĠDb Repository > Ġ= ĊĠĠĠĠĠĠĠ ĠDatabase Repositories Mapper () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġinternal Ġfun Ġprovides Database Pers ister ( ĊĠĠĠĠĠĠĠ Ġdao : ĠRe positories Dao , ĊĠĠĠĠĠĠĠ Ġmapper : ĠData Mapper < An ime , ĠDb Repository > ĊĠĠĠ Ġ): ĠData Pers ister < List < An ime >> Ġ= ĊĠĠĠĠĠĠĠ ĠDatabase Repositories Pers ister ( dao , Ġmapper ) Ċ }