helpcrunch / android-sdk-demo

Public demo for HelpCrunch Android SDK
Apache License 2.0
9 stars 1 forks source link

Exclude okttp old version #61

Closed francescogatto closed 2 years ago

francescogatto commented 2 years ago

Hi

My app is sending formData with retrofit and okhttp (last version for both)

val formData =
        "draw=1&columns%5B0%5D%5Bdata%5D=dd&columns%5B0%........

but when i insert your library retrofit convert it in:

draw\u003d1\u0026columns%5B0%5D%5Bdata%5D\u003ddd\u0026columns%5B0%5D%5Bname%5D\

Why do You use an old version of okhttp?

I tried with:

implementation ('com.helpcrunch:chat-sdk:3.2.3-rc-04'){
        exclude group: "com.squareup.okhttp3"
    }

I have this in production and i have a lot of crashes.

TalbotGooday commented 2 years ago

Hello! We are using an old version of the okhttp because many of our clients need support for older devices that are not supported by the latest versions of okhttp. I know it's a problem, but unfortunately we can't just update the library

francescogatto commented 2 years ago

Can You suggest me a workaround? I tried with:


configurations.all {
        resolutionStrategy.force 'com.squareup.okhttp3:okhttp:4.9.2'
    }

but nothing.

francescogatto commented 2 years ago

I resolved changing formdata string to formfield map