package Ġru . android p ir aters . ai weather . injection Ċ Ċ import Ġandroid . arch . persistence . room . Room Ċ import Ġandroid . content . Context Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġru . android p ir aters . ai weather . data . Weather Api Ċ import Ġru . android p ir aters . ai weather . data . db . Weather Database Ċ import Ġru . android p ir ates . ai weather . injection . qual ifiers . For Application Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Module Ċ class ĠWeather Data Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Weather Data Base (@ For Application Ġcontext : ĠContext ): ĠWeather Database Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠRoom . database Builder ( context , ĠWeather Database :: class . java , Ġ" Weather Database "). build () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Client Delivery Api ( ret rofit : ĠRet rofit ): ĠWeather Api Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġretrofit . create ( Weather Api :: class . java ) Ċ // ĠĠĠĠĠĠĠ Ġreturn ĠWeather Api Mock () ĊĠĠĠ Ġ} Ċ }