igdb-dotnet icon indicating copy to clipboard operation
igdb-dotnet copied to clipboard

Migrate to refit

Open roubachof opened this issue 5 years ago • 4 comments

Unfortunately, RestEase is not compatible with Xamarin.iOS cause:

It won't work on platforms which don't support runtime code generation, including .NET Native and iOS.

Would be great if it would be ported to Refit instead of RestEase.

roubachof avatar Dec 06 '19 18:12 roubachof

I'm currently upgrading to IGDBv4. I could explore this perhaps... 🤔

kamranayub avatar Oct 07 '20 04:10 kamranayub

I created a small Refit rest client using your lib here: https://github.com/roubachof/Sharpnado.TaskLoaderView/blob/master/Retronado/Sample/Domain/IGDBRefitClient.cs

roubachof avatar Oct 07 '20 14:10 roubachof

Tried using this with AvaloniaUI, and that didn't work out. I suspect it's for the same reason as above as RestEase is spitting out errors.

I second migrating! For now i'll borrow the client @roubachof made

MrGentle avatar Feb 26 '21 10:02 MrGentle

Will be looking at this. IGDB recently added new game version support so have to add that as a patch and at that time I can see about Refit. Anything that helps improve cross platform support is a win in my book. Thanks for all the feedback!

kamranayub avatar Mar 15 '21 12:03 kamranayub