Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 255
InstallStrategy
Haoge edited this page Aug 6, 2018
·
2 revisions
提供一个安装策略。便于针对不同的应用场景。定制不同的安装策略实现。
[UpdateConfig.getConfig()/UpdateBuilder.create()]
.setInstallStrategy(installStrategy)
- 特性:
- 适配Android7.0安装方案。
- 适配强制更新逻辑:当为强制更新时,调起安装任务后。即将应用销毁。避免强制更新失效
publicclassCustomInstallStrategyextendsInstallStrategy{
@Overridepublicvoidinstall(Contextcontext, Stringfilename, Updateupdate) {
// 对apk文件filename执行安装操作
}
}