package Ġcom . cha ity . android . easy . move . d agger . modules Ċ Ċ import Ġandroidx . room . Room Ċ import Ġcom . cha ity . android . easy . move . Build Config . DATABASE _ NAME Ċ import Ġcom . cha ity . android . easy . move . My App Ċ import Ġcom . cha ity . android . easy . move . db . Delivery Dao Ċ import Ġcom . cha ity . android . easy . move . db . Delivery Database Ċ import Ġcom . cha ity . android . easy . move . db . Delivery Local Cache Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġjava . util . concurrent . Executor Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Module Ċ class ĠDatabase Module { ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġinternal Ġfun Ġprovides Delivery Database ( m Application : ĠMy App ): ĠDelivery Database Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠRoom . database Builder ( m Application , ĠDelivery Database :: class . java , ĠDATABASE _ NAME ). build () ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġinternal Ġfun Ġprovides Delivery Dao ( delivery Database : ĠDelivery Database ): ĠDelivery Dao Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdelivery Database . delivery Dao () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġinternal Ġfun Ġprovide Delivery Local Cache ( delivery Dao : ĠDelivery Dao , Ġio Executor : ĠExecutor ): ĠDelivery Local Cache Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠDelivery Local Cache ( delivery Dao , Ġio Executor ) ĊĠĠĠ Ġ} Ċ }