package Ġid . yan uar . weather . presentation . di . module Ċ Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġid . yan uar . weather . data . remote . service . ApiService Ċ import Ġid . yan uar . weather . data . remote . service . Weather Service Ċ import Ġokhttp 3 . Http Url Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġjavax . inject . Singleton Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠY an uar ĠAr if in Ċ Ġ* Ġh alo @ yan uar . id Ċ Ġ*/ Ċ Ċ @ Module Ċ class ĠNetwork Module Ġ{ ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Ret rofit () Ġ= ĠApi Service . build ( Http Url . parse (" https :// api . ap ix u . com / v 1 / ")) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Weather Service ( ret rofit : ĠRet rofit ) Ġ= Ġretrofit . create ( Weather Service :: class . java ) Ċ }