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
For testing purposes one needs to set Fuel up to mock the behavior. You do provide:
public fun setHttpLoader(loader: HttpLoader)
public fun setHttpLoader(factory: HttpLoaderFactory)
But those are kind of unusable, since they are all about HttpLoader, which is an actual/expect class and is final so it is not possible to actually create a custom version of HttpLoader.
HttpLoader needs to be an interface. It would be cleaner you instead created a global val defaultHttpLoader that was expect/actual rather than trying to have an expect actual class.
The text was updated successfully, but these errors were encountered:
For testing purposes one needs to set Fuel up to mock the behavior. You do provide:
But those are kind of unusable, since they are all about HttpLoader, which is an actual/expect class and is final so it is not possible to actually create a custom version of HttpLoader.
HttpLoader needs to be an interface. It would be cleaner you instead created a global val defaultHttpLoader that was expect/actual rather than trying to have an expect actual class.
The text was updated successfully, but these errors were encountered: