package Ġxyz . sch wa ab . he ar this . di Ċ Ċ import Ġokhttp 3 . Ok HttpClient Ċ import Ġokhttp 3 . logging . Http Logging Interceptor Ċ import Ġorg . k oin . dsl . module Ċ import Ġxyz . sch wa ab . he ar this . Build Config Ċ import Ġxyz . sch wa ab . music . artist . Artist Service Ċ import Ġxyz . sch wa ab . music . he ar this . using He ar this API Ċ import Ġxyz . sch wa ab . music . track . Track Service Ċ Ċ val Ġservices Module Ġ= Ġmodule Ġ{ ĊĠĠĠ Ġsingle Ġ{ Ġcreate Ok HttpClient () Ġ} ĊĠĠĠ Ġsingle Ġ{ ĠTrack Service . using He ar this API ( get ()) Ġ} ĊĠĠĠ Ġsingle Ġ{ ĠArtist Service . using He ar this API ( get ()) Ġ} Ċ } Ċ Ċ private Ġfun Ġcreate Ok HttpClient (): ĠOk HttpClient Ġ{ ĊĠĠĠ Ġval Ġbuilder Ġ= ĠOk HttpClient . Builder () ĊĠĠĠ Ġif Ġ( Build Config . DEBUG ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġlogging Interceptor Ġ= ĠHttp Logging Interceptor (). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlevel Ġ= ĠHttp Logging Interceptor . Level . BODY ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġbuilder . add Interceptor ( logging Interceptor ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġreturn Ġbuilder . build () Ċ }