package com.hdl.sdk.common; import com.hdl.sdk.common.utils.LogUtils; /** * Created by Tong on 2021/9/28. * Modify by panlili on 5/7/22 */ public class HDLSdk { // private Context context; /** * 获取当前版本 * @return */ public String getVersion() { return version; } private String version="1.0.15"; private HDLSdk() { } private static class SingletonInstance { private static final HDLSdk INSTANCE = new HDLSdk(); } public static HDLSdk getInstance() { return SingletonInstance.INSTANCE; } /* public void init(Context context) { this.context = context.getApplicationContext(); LogUtils.i("Version:" + version); }*/ // public Context getContext() { // return context; // } /** * 设置打印是否开启 * @param enable */ public void setLogEnabled(boolean enable){ LogUtils.setEnabled(enable); } }