package Ġcom . hak any il ma zz . rick and mort y . di . core Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . room . Room Ċ import Ġcom . hak any il ma zz . rick and mort y . data . db . R ick And M ort y Database Ċ import Ġcom . hak any il ma zz . rick and mort y . data . db . dao . Car to on Character Dao Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Module Ċ class ĠDatabase Module Ġ{ ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Car to on Character Database ( context : ĠContext ): ĠR ick And M ort y Database Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠRoom . database Builder ( context , ĠR ick And M ort y Database :: class . java , ĠR ick And M ort y Database . DATABASE _ NAME ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Car to on Character Dao ( rick And M ort y Database : ĠR ick And M ort y Database ): ĠCar to on Character Dao Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġr ick And M ort y Database . car to on Character Dao () ĊĠĠĠ Ġ} Ċ }