From 8adb5e06a5fcfad9a634944c0d65fc70c5c2527f Mon Sep 17 00:00:00 2001 From: Tong <1025782220@qq.com> Date: 星期二, 19 四月 2022 10:12:57 +0800 Subject: [PATCH] 去掉依赖库 --- HDLSDK/hdl-common/src/main/java/com/hdl/sdk/common/HDLSdk.java | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/HDLSDK/hdl-common/src/main/java/com/hdl/sdk/common/HDLSdk.java b/HDLSDK/hdl-common/src/main/java/com/hdl/sdk/common/HDLSdk.java index 120fc9d..fca6a9b 100644 --- a/HDLSDK/hdl-common/src/main/java/com/hdl/sdk/common/HDLSdk.java +++ b/HDLSDK/hdl-common/src/main/java/com/hdl/sdk/common/HDLSdk.java @@ -2,12 +2,25 @@ 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.15"; private HDLSdk() { } @@ -22,9 +35,19 @@ 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); + } } -- Gitblit v1.8.0