|
@@ -10,6 +10,7 @@ import android.os.Bundle;
|
|
|
import com.wdkl.callingmainnurse.BuildConfig;
|
|
|
import com.wdkl.callingmainnurse.MyApplication;
|
|
|
import com.wdkl.callingmainnurse.R;
|
|
|
+import com.wdkl.callingmainnurse.common.Constants;
|
|
|
|
|
|
import java.io.BufferedReader;
|
|
|
import java.io.IOException;
|
|
@@ -28,6 +29,8 @@ import java.util.List;
|
|
|
import java.util.regex.Matcher;
|
|
|
import java.util.regex.Pattern;
|
|
|
|
|
|
+import serialporttest.utils.SerialPortUtil;
|
|
|
+
|
|
|
/**
|
|
|
* 类描述:字符串操作工具包
|
|
|
* 创建人:Waderson Shll (TEL:15675117662)<br>
|
|
@@ -74,7 +77,11 @@ public class StringUtils {
|
|
|
|
|
|
public static String getAllVersionName() {
|
|
|
String str = "\r\nApp名称: " + MyApplication.getAppContext().getString(R.string.app_name)
|
|
|
- + "\r\nAPP版本号:V" + BuildConfig.VERSION_NAME + " 中央服务器系列\r\n发布日期:" + BuildConfig.BUILD_TIME;
|
|
|
+ + "\r\nAPP版本号: V" + BuildConfig.VERSION_NAME
|
|
|
+ + "\r\nMCU版本号: " + Constants.MCU_VERSION_NUMBER
|
|
|
+ + "\r\n设备ID: " + SerialPortUtil.KEY_ID
|
|
|
+ + "\r\n中央服务器系列"
|
|
|
+ + "\r\n发布日期:" + BuildConfig.BUILD_TIME;
|
|
|
if (android.os.Build.VERSION.SDK_INT >= 26) { //android8.0 = 26
|
|
|
str = str + " android8.1 , rk3368";// rk3368 android8.1
|
|
|
} else if (android.os.Build.VERSION.SDK_INT >= 24) { //android7.0 = 24
|