1、移除MTA可视化埋点
2、增加TalkingData可视化埋点
This commit is contained in:
@ -3,11 +3,9 @@ package com.gh.gamecenter;
|
||||
import android.app.Application;
|
||||
|
||||
import com.facebook.stetho.Stetho;
|
||||
import com.facebook.stetho.okhttp3.StethoInterceptor;
|
||||
import com.squareup.leakcanary.LeakCanary;
|
||||
|
||||
import okhttp3.OkHttpClient;
|
||||
import okhttp3.logging.HttpLoggingInterceptor;
|
||||
|
||||
/**
|
||||
* @author CsHeng
|
||||
@ -54,10 +52,10 @@ public class Injection {
|
||||
// loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
|
||||
|
||||
OkHttpClient.Builder builder = new OkHttpClient.Builder();
|
||||
HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
|
||||
interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
|
||||
builder.addNetworkInterceptor(interceptor);
|
||||
builder.addNetworkInterceptor(new StethoInterceptor());
|
||||
// HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
|
||||
// interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
|
||||
// builder.addNetworkInterceptor(interceptor);
|
||||
// builder.addNetworkInterceptor(new StethoInterceptor());
|
||||
// if (BuildConfig.DEBUG) {
|
||||
// builder.addNetworkInterceptor(loggingInterceptor);
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user