Skip to content

Commit

Permalink
clean project & fixed generated class
Browse files Browse the repository at this point in the history
  • Loading branch information
itgelG committed Feb 20, 2020
1 parent 2c86ecb commit aef25de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion erxeslibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ dependencies {
}
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'

implementation 'com.squareup.okhttp3:logging-interceptor:3.12.3'
// implementation 'com.squareup.okhttp3:logging-interceptor:3.12.3'
implementation 'com.mikepenz:iconics-core:3.0.4@aar'

implementation 'com.google.code.gson:gson:2.8.6'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
import okhttp3.ConnectionSpec;
import okhttp3.OkHttpClient;
import okhttp3.TlsVersion;
import okhttp3.logging.HttpLoggingInterceptor;

public final class ErxesRequest {
public ApolloClient apolloClient;
Expand Down Expand Up @@ -126,15 +125,15 @@ private CacheKey formatCacheKey(String id) {
}

private OkHttpClient getHttpClient() {
HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
logging.setLevel(HttpLoggingInterceptor.Level.BODY);
// HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
// logging.setLevel(HttpLoggingInterceptor.Level.BODY);

OkHttpClient.Builder client = new OkHttpClient.Builder()
.followRedirects(true)
.followSslRedirects(true)
.retryOnConnectionFailure(true)
.cache(null)
.addInterceptor(logging)
// .addInterceptor(logging)
.addInterceptor(new AddCookiesInterceptor(this.context))
.addInterceptor(new ReceivedCookiesInterceptor(this.context))
.connectTimeout(15, TimeUnit.SECONDS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import com.apollographql.apollo.rx2.Rx2Apollo;
import com.apollographql.apollo.subscription.WebSocketSubscriptionTransport;
import com.erxes.io.saas.SaasConversationMessageInsertedSubscription;
import com.erxes.io.saas.SubsConversationMessageInsertedSubscription;
import com.erxes.io.saas.type.CustomType;
import com.newmedia.erxeslibrary.configuration.Config;
import com.newmedia.erxeslibrary.configuration.ErxesRequest;
Expand All @@ -29,7 +28,6 @@
import io.reactivex.schedulers.Schedulers;
import io.reactivex.subscribers.DisposableSubscriber;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;

public class SaasListenerService extends Service {

Expand All @@ -54,11 +52,7 @@ public void onCreate() {
DataManager dataManager;
dataManager = DataManager.getInstance(this);

HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
logging.setLevel(HttpLoggingInterceptor.Level.BODY);

OkHttpClient okHttpClient = new OkHttpClient.Builder()
.addInterceptor(logging)
.build();
apolloClient = ApolloClient.builder()
.serverUrl(dataManager.getDataS("host3100"))
Expand Down

0 comments on commit aef25de

Please sign in to comment.