Hello,
I created a module api client with your lib.
In my gradle
implementation 'com.amitshekhar.android:android-networking:1.0.2'
For my dev, I use this line after initialization "AndroidNetworking.initialize(getApplicationContext()" :
AndroidNetworking.enableLogging(HttpLoggingInterceptor.Level.BODY)
My api client works well !
But in my release app, this line as changed to :
AndroidNetworking.enableLogging(HttpLoggingInterceptor.Level.NONE)
My app « freeze » after first call, because my api client listener not send success or error.
Hello, I created a module api client with your lib. In my gradle
implementation 'com.amitshekhar.android:android-networking:1.0.2'
For my dev, I use this line after initialization "AndroidNetworking.initialize(getApplicationContext()" :
AndroidNetworking.enableLogging(HttpLoggingInterceptor.Level.BODY)
My api client works well !
But in my release app, this line as changed to :
AndroidNetworking.enableLogging(HttpLoggingInterceptor.Level.NONE)
My app « freeze » after first call, because my api client listener not send success or error.
After search the problem, I saw a AndroidNetworking.enableLogging create a httpClient with HttpLoggingInterceptor. And if the level as not a BODY, I do not pass to line 246 : https://github.com/amitshekhariitbhu/Fast-Android-Networking/blob/2a72ef2694c55d8391c553400c0ae54c9d7e5038/android-networking/src/main/java/com/androidnetworking/interceptors/HttpLoggingInterceptor.java#L246
In my case, if this lines as not execute :
The OkHttpResponseListener launch « onResponse(Response response) » with response.body() null.
On the other side, if execute, works well !
I created a class « NoLogInterceptor » with juste this code
It’s works well !
Whats the problem ? Thank !