hxb
2022-03-21 0188dee359636723190f0f67a6b674b7b08f7bef
HDLSDK/hdl-common/src/main/java/com/hdl/sdk/common/HDLSdk.java
@@ -2,12 +2,24 @@
import android.content.Context;
import com.hdl.sdk.common.utils.LogUtils;
/**
 * Created by Tong on 2021/9/28.
 */
public class HDLSdk {
    private Context context;
    /**
     * 获取当前版本
     * @return
     */
    public String getVersion() {
        return version;
    }
    private String version="1.0.8";
    private HDLSdk() {
    }
@@ -22,9 +34,18 @@
    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);
    }
}