package Ġru . bor on in . simple weather . di Ċ Ċ import Ġandroid . content . Context Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġru . bor on in . common . network . Ok Http Wrapper Ċ import Ġru . bor on in . common . network . Ret rofit Wrapper Ċ import Ġru . bor on in . core . api . schedul ers . App Schedulers Ċ import Ġru . bor on in . core . api . schedul ers . Schedulers Provider Ċ import Ġru . bor on in . simple weather . data . datab se . Cache Source Ċ import Ġru . bor on in . simple weather . data . datab se . Forecast Database Ċ import Ġru . bor on in . simple weather . data . network . Api Config . BASE _ URL Ċ import Ġru . bor on in . simple weather . data . network . Network Source Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠSer ge y ĠBor on in Ġon Ġ 0 6 . 0 3 . 2 0 2 0 . Ċ Ġ*/ Ċ Ċ @ Module Ċ class ĠApp Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Ret rofit () Ġ= ĠRet rofit Wrapper ( BASE _ URL , ĠOk Http Wrapper ()) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Network Source ( ret rofit Wrapper : ĠRet rofit Wrapper ) Ġ= ĠNetwork Source ( ret rofit Wrapper ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Cache Source ( database : ĠFore cast Database ) Ġ= ĠCache Source ( database ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Rx Scheduler Provider (): ĠS chedulers Provider Ġ= ĠApp Schedulers () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Database ( context : ĠContext ) Ġ= ĠFore cast Database . get Database ( context ) Ċ }