package Ġcom . f ur k ans ub asi ay . the movie . di Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . room . Room Ċ import Ġcom . f ur k ans ub asi ay . the movie . db . The Movie Database Ċ import Ġcom . f ur k ans ub asi ay . the movie . db . dao . Movie Dao Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . android . components . Application Component Ċ import Ġdagger . h ilt . android . qual ifiers . ApplicationContext Ċ import Ġjavax . inject . Singleton Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠF UR KAN ĠSUB A Å ŀ I AY Ġon Ġ 1 3 . 0 3 . 2 0 2 1 . Ċ Ġ*/ Ċ @ Install In ( Application Component :: class ) Ċ @ Module Ċ object ĠRoom Module Ġ{ ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide The Movie Db (@ ApplicationContext Ġcontext : ĠContext ): ĠThe Movie Database Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠRoom . database Builder ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcontext , ĠThe Movie Database :: class . java , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠThe Movie Database . DATABASE _ NAME ĊĠĠĠĠĠĠĠ Ġ). fallback To Dest ruct ive Migration () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Movie DAO ( movie Database : ĠThe Movie Database ): Movie Dao { ĊĠĠĠĠĠĠĠ Ġreturn Ġmovie Database . movie Dao () ĊĠĠĠ Ġ} Ċ }