package Ġcom . project . ta ew on . google search . network Ċ Ċ import Ġandroidx . annotation . NonNull Ċ import Ġcom . jak ew h art on . ret rofit 2 . adapter . kotlin . coroutines . Coroutine Call Adapter Factory Ċ import Ġcom . project . ta ew on . google search . constants . WebService Constants Ċ import Ġokhttp 3 . Ok HttpClient Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġretrofit 2 . converter . gson . Gson Converter Factory Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Singleton Ċ class ĠRet rofit BuilderFactory Ġ{ ĊĠĠĠ Ġ@ NonNull ĊĠĠĠ Ġprivate Ġfun Ġget Api Services (): ĠApi Services Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbuilder Ġ= ĠOk HttpClient (). newBuilder () ĊĠĠĠĠĠĠĠ Ġval Ġclient Ġ= Ġbuilder . build () ĊĊĠĠĠĠĠĠĠ Ġreturn ĠRet rofit . Builder () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. baseUrl ( WebService Constants . BASE _ URL ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. client ( client ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Call Adapter Factory ( Coroutine Call Adapter Factory ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Converter Factory ( Gson Converter Factory . create ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build (). create ( Api Services :: class . java ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġget Api Services (): ĠApi Services Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠRet rofit BuilderFactory (). get Api Services () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }