ApkUpdater:基于DownLoadManager实现安装包更新,可断点续传,自动续传,并缓存

上传者: 42131261 | 上传时间: 2022-09-05 10:40:33 | 文件大小: 1.47MB | 文件类型: ZIP
ApkUpdater 基于DownLoadManager实现安装包更新,安装包缓存,支持MD5校验,支持断点续传,自定义UI,提供了默认UI。 演示 按照惯例还是先上图吧。 更新 3.1.0 优化升级逻辑,增加弱更新功能。 UpdateInfo接口移除了isForceUpdate的属性,改为updateType属性,其类型为UpdateType。UpdateType为枚举类型,共有以下3个类型: UpdateType.UPDATE_WEAK 弱更新,当更新类型为该类型时将会在默认的弹窗中出现忽略此版本的按钮,点击后默认会调用ApkUpdater.skipThisVersion()方法, 即表示直到下一个版本出现前不会再次自动提示。如果用户还想更新则可以通过手动更新的方式更新应用。设置手动更新的方式可参考ApkUpdater.check()方法。 UpdateType.UPDATE_NOR

文件下载

资源详情

[{"title":"( 88 个子文件 1.47MB ) ApkUpdater:基于DownLoadManager实现安装包更新,可断点续传,自动续传,并缓存","children":[{"title":"ApkUpdater-master","children":[{"title":"gradlew.bat <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"apkupdater","children":[{"title":"src","children":[{"title":"main","children":[{"title":"res","children":[{"title":"drawable-hdpi","children":[{"title":"com_kelin_apkupdater_ic_download_green.png <span style='color:#111;'> 198B </span>","children":null,"spread":false},{"title":"com_kelin_apkupdater_ic_cloud_download_green.png <span style='color:#111;'> 434B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"progress_kelin_apk_updater_progress_button.xml <span style='color:#111;'> 779B </span>","children":null,"spread":false},{"title":"com_kelin_apkupdater_ic_download_green.png <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"com_kelin_apkupdater_ic_cloud_download_green.png <span style='color:#111;'> 528B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"bg_com_kelin_apkupdater_shape_dialog_bg.xml <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"com_kelin_apkupdater_shape_progressbar_mini_default.xml <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"com_kelin_apkupdater_shape_progressbar_mini.xml <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"com_kelin_apkupdater_shape_progressbar_bg.xml <span style='color:#111;'> 444B </span>","children":null,"spread":false},{"title":"ic_kelin_apk_updater_update_icon2.xml <span style='color:#111;'> 21.44KB </span>","children":null,"spread":false},{"title":"ic_kelin_apk_updater_dialog_close.xml <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"ic_kelin_apk_updater_update_icon.xml <span style='color:#111;'> 15.61KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"com_kelin_apkupdater_ic_download_green.png <span style='color:#111;'> 287B </span>","children":null,"spread":false},{"title":"com_kelin_apkupdater_ic_cloud_download_green.png <span style='color:#111;'> 786B </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 282B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"attrs.xml <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"com_kelin_apkupdater_ic_download_green.png <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"com_kelin_apkupdater_ic_cloud_download_green.png <span style='color:#111;'> 286B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxxhdpi","children":[{"title":"com_kelin_apkupdater_ic_download_green.png <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"com_kelin_apkupdater_ic_cloud_download_green.png <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false}],"spread":true},{"title":"anim","children":[{"title":"anim_alpha_in_100.xml <span style='color:#111;'> 213B </span>","children":null,"spread":false},{"title":"anim_alpha_out_100.xml <span style='color:#111;'> 213B </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"dialog_kelin_apk_updater_def_update.xml <span style='color:#111;'> 7.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"xml","children":[{"title":"network_security_config.xml <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"apk_updater_file_paths.xml <span style='color:#111;'> 166B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"kelin","children":[{"title":"apkUpdater","children":[{"title":"exception","children":[{"title":"IllegalCallException.kt <span style='color:#111;'> 267B </span>","children":null,"spread":false},{"title":"UninitializedException.kt <span style='color:#111;'> 298B </span>","children":null,"spread":false}],"spread":true},{"title":"UpdateInfoImpl.kt <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"UpdateInfo.kt <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"UpdateType.kt <span style='color:#111;'> 710B </span>","children":null,"spread":false},{"title":"ApkUpdater.kt <span style='color:#111;'> 19.97KB </span>","children":null,"spread":false},{"title":"SignatureType.kt <span style='color:#111;'> 254B </span>","children":null,"spread":false},{"title":"dialog","children":[{"title":"ApkUpdateDialog.kt <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"DefaultUpdateDialog.kt <span style='color:#111;'> 5.51KB </span>","children":null,"spread":false}],"spread":false},{"title":"ActivityStackManager.kt <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"maxsizeview","children":[{"title":"MaxSizeView.kt <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"MaxSizeScrollView.kt <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false}],"spread":false},{"title":"callback","children":[{"title":"IUpdateCallback.kt <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"CompleteUpdateCallback.kt <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"DownloadProgressCallback.kt <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false}],"spread":false},{"title":"util","children":[{"title":"NetWorkStateUtil.kt <span style='color:#111;'> 6.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"DownloadService.kt <span style='color:#111;'> 13.35KB </span>","children":null,"spread":false},{"title":"UpdateHelper.kt <span style='color:#111;'> 8.38KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 169B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"build.gradle <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false}],"spread":true},{"title":"gradle.properties <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"app","children":[{"title":"src","children":[{"title":"main","children":[{"title":"res","children":[{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 10.24KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_download_green.png <span style='color:#111;'> 198B </span>","children":null,"spread":false},{"title":"ic_download_blue.png <span style='color:#111;'> 198B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_download_green.png <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"ic_download_blue.png <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"selector_text_color.xml <span style='color:#111;'> 228B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_download_green.png <span style='color:#111;'> 287B </span>","children":null,"spread":false},{"title":"ic_download_blue.png <span style='color:#111;'> 287B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_download_green.png <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"ic_download_blue.png <span style='color:#111;'> 144B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxxhdpi","children":[{"title":"ic_download_green.png <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"ic_download_blue.png <span style='color:#111;'> 378B </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 882B </span>","children":null,"spread":false},{"title":"activity_two.xml <span style='color:#111;'> 409B </span>","children":null,"spread":false}],"spread":false},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"kelin","children":[{"title":"updatemanagerdemo","children":[{"title":"TwoActivity.kt <span style='color:#111;'> 649B </span>","children":null,"spread":false},{"title":"MainActivity.kt <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false},{"title":"App.kt <span style='color:#111;'> 491B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"build.gradle <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.jar <span style='color:#111;'> 52.38KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 232B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"materials","children":[{"title":"demo_01.png <span style='color:#111;'> 38.18KB </span>","children":null,"spread":false},{"title":"demo_03.png <span style='color:#111;'> 19.12KB </span>","children":null,"spread":false},{"title":"demo_04.png <span style='color:#111;'> 14.76KB </span>","children":null,"spread":false},{"title":"demo_02.png <span style='color:#111;'> 39.93KB </span>","children":null,"spread":false},{"title":"gif_apk_updater.gif <span style='color:#111;'> 1.29MB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 8.80KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 30B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 728B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明