移除废弃的广点通部分代码
This commit is contained in:
@ -29,7 +29,6 @@ import com.gh.common.dialog.PrivacyPolicyDialogFragment;
|
||||
import com.gh.common.tracker.TrackerLogger;
|
||||
import com.gh.common.util.AdHelper;
|
||||
import com.gh.common.util.DeviceTokenUtils;
|
||||
import com.gh.common.util.DeviceUtils;
|
||||
import com.gh.common.util.DialogHelper;
|
||||
import com.gh.common.util.DialogUtils;
|
||||
import com.gh.common.util.DisplayUtils;
|
||||
@ -60,7 +59,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.io.File;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
@ -386,8 +384,6 @@ public class SplashScreenActivity extends BaseActivity {
|
||||
getAd();
|
||||
prefetchData();
|
||||
|
||||
uploadTeaAndGdtData();
|
||||
|
||||
Bundle bundle = getIntent().getExtras();
|
||||
Intent intent = new Intent(SplashScreenActivity.this, MainActivity.class);
|
||||
if (bundle != null) {
|
||||
@ -397,7 +393,7 @@ public class SplashScreenActivity extends BaseActivity {
|
||||
overridePendingTransition(0, 0);
|
||||
startActivity(intent);
|
||||
|
||||
uploadTeaAndGdtData();
|
||||
uploadTeaData();
|
||||
|
||||
finish();
|
||||
}
|
||||
@ -407,7 +403,7 @@ public class SplashScreenActivity extends BaseActivity {
|
||||
AdHelper.getStartUpAd();
|
||||
}
|
||||
|
||||
private void uploadTeaAndGdtData() {
|
||||
private void uploadTeaData() {
|
||||
if ("tea".equals(BuildConfig.FLAVOR)) {
|
||||
// 在可能获取了相关权限后才初始化SDK/发送激活数据
|
||||
// TeaHelper.init(getApplication(), HaloApp.getInstance().getChannel());
|
||||
@ -419,23 +415,6 @@ public class SplashScreenActivity extends BaseActivity {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
// GdtHelper.INSTANCE.logAction(ActionType.START_APP, GdtHelper.NETWORK_TYPE, DeviceUtils.getNetwork(this));
|
||||
if ("gdt".equals(BuildConfig.FLAVOR)) {
|
||||
try {
|
||||
Class<?> clazz = Class.forName("com.gh.gamecenter.GdtHelper");
|
||||
Field field = clazz.getDeclaredField("NETWORK_TYPE");
|
||||
String type = (String) field.get(null);
|
||||
Method method = clazz.getMethod("logAction", String.class, String[].class);
|
||||
|
||||
Class<?> actionTypeClazz = Class.forName("com.qq.gdt.action.ActionType");
|
||||
Field typeField = actionTypeClazz.getDeclaredField("START_APP");
|
||||
String actionType = (String) typeField.get(null);
|
||||
|
||||
method.invoke(null, actionType, new String[]{type, DeviceUtils.getNetwork(this)});
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void prefetchData() {
|
||||
|
||||
Reference in New Issue
Block a user