package com.oo.eye;

import com.app.baselibrary.base.app.BaseApplication;
import com.app.baselibrary.commonUtil.BDttsUtils;
import com.app.baselibrary.commonUtil.LogUtil;
import com.oo.seex.netlibrary.net.BaseApiConfig;

/**
 * Created by xucon on 2018/8/30.
 */

public class EyeApplication extends BaseApplication {

	@Override
	public void onCreate() {
		super.onCreate();
		BaseApiConfig.setIsDebug(true);
		CrashHandler crashHandler = CrashHandler.getInstance();
		crashHandler.init(getApplicationContext());
		crashHandler.setRestart(true);
		crashHandler.setCrashListener(new ICrashListener() {
			@Override
			public void onCrash(String json) {
				LogUtil.e(json);
			}
		});
	}
}
