package Ġcom . mil ad . movies db . di . module Ċ Ċ import Ġandroid . app . Application Ċ import Ġcom . mil ad . movies db . data . local . Movies Database Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . components . Singleton Component Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Install In ( Singleton Component :: class ) Ċ @ Module Ċ class ĠMov ies Database Module Ġ{ ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Database ( application : ĠApplication ) Ġ= ĠMov ies Database . getInstance ( application ) ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Sum maries Dao ( database : ĠMov ies Database ) Ġ= Ġdatabase . get Sum maries Dao () ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Gen res Dao ( database : ĠMov ies Database ) Ġ= Ġdatabase . get Genre Dao () ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Movies Dao ( database : ĠMov ies Database ) Ġ= Ġdatabase . get Movies Dao () Ċ } Ċ