package Ġcom . s ah u . co stats . di Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . room . Room Ċ import Ġcom . s ah u . app Util . App Database Ċ import Ġcom . s ah u . app Util . DB _ NAME Ċ 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 ĠDB Module Ġ{ ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġget DB (@ ApplicationContext Ġcontext : ĠContext ): ĠApp Database Ġ= ĠRoom . database Builder ( context , ĠApp Database :: class . java , ĠDB _ NAME ) ĊĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġget Country Dao ( app Database : ĠApp Database ) Ġ= Ġapp Database . country Dao () ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġget Province Dao ( app Database : ĠApp Database ) Ġ= Ġapp Database . province Do a () ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġget Historic Dao ( app Database : ĠApp Database ) Ġ= Ġapp Database . h istoric Dao () Ċ Ċ }