package Ġxyz . code ge ek . out break visual izer . Di Ċ Ċ import Ġokhttp 3 . Ok HttpClient Ċ import Ġorg . k oin . dsl . module Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġretrofit 2 . converter . gson . Gson Converter Factory Ċ import Ġxyz . code ge ek . out break visual izer . api . Cov 1 9 Service Ċ Ċ val Ġapi Module Ġ= Ġmodule Ġ( override Ġ= Ġtrue ) Ġ{ ĊĠĠĠ Ġsingle Ġ{ Ġprovide Ok httpClient () Ġ} ĊĠĠĠ Ġsingle Ġ{ Ġprovide Ret rofit ( get ()) Ġ} ĊĠĠĠ Ġsingle Ġ{ Ġprovide Service ( get ()) Ġ} Ċ } Ċ Ċ fun Ġprovide Ret rofit ( ok HttpClient : ĠOk HttpClient ): ĠRet rofit Ġ{ ĊĠĠĠ Ġreturn ĠRet rofit . Builder (). baseUrl ( Cov 1 9 Service . ENDPOINT ). client ( ok HttpClient ) ĊĠĠĠĠĠĠĠ Ġ. add Converter Factory ( Gson Converter Factory . create ()). build () Ċ } Ċ Ċ fun Ġprovide Ok httpClient (): ĠOk HttpClient Ġ{ ĊĠĠĠ Ġreturn ĠOk HttpClient (). newBuilder (). build () Ċ } Ċ Ċ fun Ġprovide Service ( ret rofit : ĠRet rofit ): ĠC ov 1 9 Service Ġ= Ġretrofit . create ( Cov 1 9 Service :: class . java )