You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
While I see the reason behind this change, I still see a valid reason to keep the create function:
Right now my code has to know that there is Ktorfit in use as I run
ktorfit.createMyApi()
If I use the generic create function, I can implement a simple wrapper, e.g. apiAccess, that allows me to write
apiAccess.create<MyApi>()
This wrapper is technology agnostic, so I can easily change between Ktorfit, Retrofit and another technology. For me Ktorfit is a technical detail that is the current solution on my app. But I prefer that it stays a technical detail and this would allow me to do so.
Describe the solution you'd like
I'd like that Ktorfit.create() is not @Deprecated.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Hi. @DatL4g is right, the functions are not the same under the hood. I prefer to keep it deprecated, because when it gets undeprecated it might encourage the usage of that function. It only still exists to simplify the migration from Ktorfit 1 to Ktorfit 2.
The problem is, that function only works because of the compiler plugin. And that plugin needs to be compatible with the Kotlin version you are currently using. So i need to release a new compiler plugin every time a new Kotlin version is released. And the API to write plugins can change with every new Kotlin version. Which is a huge maintenance pain.
The plan is to remove it with Ktorfit 3.0. Maybe i’ll take a look if i can turn it into an extension function and put it with the compiler plugin in an external project. Then people you need that functionality can fork it.
Is your feature request related to a problem? Please describe.
While I see the reason behind this change, I still see a valid reason to keep the
create
function:Right now my code has to know that there is Ktorfit in use as I run
If I use the generic create function, I can implement a simple wrapper, e.g.
apiAccess
, that allows me to writeThis wrapper is technology agnostic, so I can easily change between Ktorfit, Retrofit and another technology. For me Ktorfit is a technical detail that is the current solution on my app. But I prefer that it stays a technical detail and this would allow me to do so.
Describe the solution you'd like
I'd like that
Ktorfit.create()
is not@Deprecate
d.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: