package Ġcom . k ome y ama . simple . weather . forecast . di Ċ Ċ import Ġandroid . app . Application Ċ import Ġcom . k ome y ama . simple . weather . db .* Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġkotlinx . coroutines . Dispatch ers Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Module Ċ class ĠDb Component Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Favorite Place Store ( application : ĠApplication ): ĠF avorite Place Database Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠDb Component . factory (). create ( application , ĠDispatch ers . IO , Ġ" forecast _ info . db ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. favorite Place Database () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Forecast Info Store ( application : ĠApplication ): ĠFore cast Info Database Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠDb Component . factory () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. create ( application , ĠDispatch ers . IO , Ġ" forecast _ info . db "). forecast Info Database () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Forecast Store ( application : ĠApplication ): ĠFore cast Main Database Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠDb Component . factory () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. create ( application , ĠDispatch ers . IO , Ġ" forecast _ info . db "). forecast Main Database () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Weather Store ( application : ĠApplication ): ĠWeather Database Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠDb Component . factory () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. create ( application , ĠDispatch ers . IO , Ġ" weather _ info . db "). weather Database () ĊĠĠĠ Ġ} Ċ }