package Ġby . res liv . weather monitor . di Ċ Ċ import Ġandroid . app . Application Ċ import Ġby . res liv . weather monitor . data . storage . App Database Ċ import Ġby . res liv . weather monitor . data . storage . dao . Current Forecast Dao Ċ import Ġby . res liv . weather monitor . data . storage . dao . Daily Forecast Dao Ċ import Ġby . res liv . weather monitor . data . storage . dao . Hour ly Forecast Dao Ċ import Ġby . res liv . weather monitor . data . storage . dao . Location Dao Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . components . Singleton Component Ċ import Ġjavax . inject . Singleton Ċ Ċ /** Ċ Ġ* Ġ@ author ĠE pic Dim a Ċ Ġ*/ Ċ @ Module Ċ @ Install In ( Singleton Component :: class ) Ċ object ĠDatabase Module Ġ{ ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Database ( application : ĠApplication ): ĠApp Database Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠApp Database . getInstance ( application ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Location Dao ( database : ĠApp Database ): ĠLocation Dao Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdatabase . location Dao () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Current Forecast Dao ( database : ĠApp Database ): ĠCurrent Forecast Dao Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdatabase . current Forecast Dao () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Daily Forecast Dao ( database : ĠApp Database ): ĠDaily Forecast Dao Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdatabase . daily Forecast Dao () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Hour ly Forecast Dao ( database : ĠApp Database ): ĠHour ly Forecast Dao Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdatabase . hourly Forecast Dao () ĊĠĠĠ Ġ} Ċ }