Skip to content

Retrofit api creation with proper extension#26

Open
Obolrom wants to merge 1 commit intodiia-open-source:mainfrom
Obolrom:improvements/retrofit-create-extension
Open

Retrofit api creation with proper extension#26
Obolrom wants to merge 1 commit intodiia-open-source:mainfrom
Obolrom:improvements/retrofit-create-extension

Conversation

@Obolrom
Copy link

@Obolrom Obolrom commented Mar 15, 2024

A minor code improvement. It is not necessary to pass java class for retrofit instance creation when using Kotlin. The more elegant way is to use Retrofit.create() extension from the Retrofit library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant