1、移除部分haloapp的静态变量
2、整理hardcode tag 3、修复NPE
This commit is contained in:
@ -3,11 +3,9 @@ package com.gh.gamecenter;
|
||||
import android.app.Activity;
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
import android.os.Debug;
|
||||
|
||||
import com.gh.common.constant.Config;
|
||||
import com.gh.common.util.PackageUtils;
|
||||
import com.tencent.bugly.Bugly;
|
||||
import com.tencent.bugly.crashreport.CrashReport;
|
||||
import com.tencent.mta.track.StatisticsDataAPI;
|
||||
import com.tencent.stat.MtaSDkException;
|
||||
@ -42,7 +40,7 @@ public class DataUtils {
|
||||
|
||||
//TalkingData
|
||||
try {
|
||||
TCAgent.LOG_ON = DEBUG;
|
||||
TCAgent.LOG_ON = false;
|
||||
TCAgent.init(context, Config.TALKINGDATA_APPID, channel);
|
||||
/**
|
||||
*
|
||||
@ -111,6 +109,24 @@ public class DataUtils {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
// Logger.setLogger(context, new LoggerInterface() {
|
||||
//
|
||||
// @Override
|
||||
// public void setTag(String tag) {
|
||||
// CommonDebug.logMethodWithParams(this, tag);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void log(String content) {
|
||||
// CommonDebug.logMethodWithParams(this, content);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void log(String content, Throwable t) {
|
||||
// CommonDebug.logMethodWithParams(this, content, t);
|
||||
// }
|
||||
// });
|
||||
|
||||
}
|
||||
|
||||
public static void onEvent(Context var0, String var1, String var2) {
|
||||
|
||||
Reference in New Issue
Block a user