infinum / kotlin-jsonapix

JsonApiX is an Android, annotation processor library that was made to transform regular Kotlin classes into their JSON API representations, with the ability to serialize or deserialize them to or from strings.
Apache License 2.0
38 stars 9 forks source link

I cannot find TypeAdapterFactory #53

Closed GuiOliveira-Git closed 9 months ago

GuiOliveira-Git commented 1 year ago

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?

thisAAY commented 1 year ago

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! 🙏😊

thisAAY commented 1 year ago

This could be a duplicate of #55