Refactor code

This commit is contained in:
h4h13 2020-04-25 03:04:39 +05:30
parent 369411ffc6
commit 6cdaf27eda
13 changed files with 28 additions and 160 deletions

View file

@ -17,7 +17,7 @@ interface RetroDataService {
suspend fun getTranslators(): List<Contributor>
companion object {
val retoService = Retrofit.Builder()
val retoService: RetroDataService = Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create(GsonBuilder().create()))
.build()