|
@@ -99,7 +99,8 @@ public class UpdateAppHelper {
|
|
|
.getInstance()
|
|
|
.downloadOnly(UIData.create().setDownloadUrl(EncodeUtils.urlDecode(data.getDownloadUrl()))
|
|
|
.setTitle("发现新版本:" + data.getVersion())
|
|
|
- .setContent(data.getDescription()));
|
|
|
+ .setContent(data.getDescription()))
|
|
|
+ .setApkName(getApkName(activity, data.getVersion()));
|
|
|
builder.setCustomVersionDialogListener((context, versionBundle) -> {
|
|
|
Dialog baseDialog;
|
|
|
if (data.isIsForceUpdate()) {
|
|
@@ -204,4 +205,9 @@ public class UpdateAppHelper {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public static String getApkName(Context context, String version) {
|
|
|
+ String name = context.getApplicationContext().getPackageName().replaceAll("\\.", "");
|
|
|
+ return name + "_" + version;
|
|
|
+ }
|
|
|
}
|