HDLSDK/hdl-common/src/main/java/com/hdl/sdk/common/HDLSdk.java
@@ -11,6 +11,17 @@ private Context context; /** * 获取当前版本 * * @return */ public String getVersion() { return version; } private String version = "1.0.15"; private HDLSdk() { } @@ -24,6 +35,7 @@ public void init(Context context) { this.context = context.getApplicationContext(); LogUtils.i("Version:" + version); } public Context getContext() { @@ -32,9 +44,10 @@ /** * 设置打印是否开启 * * @param enable */ public void setLogEnabled(boolean enable){ public void setLogEnabled(boolean enable) { LogUtils.setEnabled(enable); } }