infinum/kotlin-jsonapix

I cannot find TypeAdapterFactory

GuiOliveira-Git opened this issue · 2 comments

I am trying to build Retrofit:

internal fun provideRetrofit(okHttpClient: OkHttpClient): Retrofit {
    val gson = GsonBuilder().setLenient().create()

    return Retrofit.Builder()
        .baseUrl(BuildConfig.MILLENNIUM_BASE_URL)
        .addConverterFactory(GsonConverterFactory.create(gson))
        .addConverterFactory(JsonXConverterFactory(TypeAdapterFactory()))
        .client(okHttpClient)
        .build()
}

I am not able to import com.infinum.jsonapix.TypeAdapterFactory. Any clue why it's happening?

Hey there, @GuiOliveira-Git!

Would it be possible for you to share some details about your setup with us? Specifically, it would be super helpful if you could provide information about your Gradle setup, the JsonApi data class, and any other relevant configurations.

Thanks in advance for your help! 🙏😊

This could be a duplicate of #55