更新部分社区相关接口 优化控制插件化

This commit is contained in:
kehaoyuan
2018-10-24 12:01:43 +08:00
parent ac5deca5ae
commit 5c309142f3
11 changed files with 29 additions and 29 deletions

View File

@ -294,7 +294,7 @@ public class PackageUtils {
/**
* 数据统计或反馈用PatchVersionName
* 判断助手是否是第一次启动或版本更新提交的版本号用AppVersionName{@link PackageUtils#getVersionName(Context)}
* 判断助手是否是第一次启动或版本更新提交的版本号用AppVersionName{@link PackageUtils#getVersionName()}
*
* @return 补丁包版本号
*/
@ -305,15 +305,8 @@ public class PackageUtils {
/*
* 返回光环助手的版本信息
*/
public static String getVersionName(Context context) {
try {
PackageInfo pkgInfo = context.getApplicationContext().getPackageManager().getPackageInfo(
context.getPackageName(), 0);
return pkgInfo.versionName;
} catch (NameNotFoundException e) {
e.printStackTrace();
}
return null;
public static String getVersionName() {
return BuildConfig.VERSION_NAME;
}
/*