# UpdaterAndroid **Repository Path**: winsafe_app/updater-android ## Basic Information - **Project Name**: UpdaterAndroid - **Description**: 一个Android app升级库 - **Primary Language**: Unknown - **License**: EPL-1.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2022-08-25 - **Last Updated**: 2025-05-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # UpdaterAndroid #### 介绍 一个Android app升级库,Winsafe专用 #### 使用说明 1. 项目的根gradle下添加 allprojects { repositories { ... maven { url 'https://jitpack.io' } } } 2. app的gradle下添加dependency依赖 implementation 'com.gitee.winsafe_app:updater-android:v0.0.1' 3. 在动态权限申请完成之后,调用,例如 // APP自动更新检查链接 public static final String URL_CHECK_VERSION = "http://xxxxxx.xxxx.xxxx"; public final static String APP_NAME = "XXXXXXXX"; private void doUpdater() { String savePath = UpdaterFileUtil.getSDPath() + "/" + UpdaterAppBaseUtil.getInstance().getAppPackageName(mContext); String chkVerURL = URL_CHECK_VERSION; String saveFileName = APP_NAME; chkVerURL = String.format(chkVerURL, "chkver", saveFileName, UpdaterAppBaseUtil.getInstance().getAppVersionName(mContext)); AppUpdate appUpdate = new AppUpdate(mContext, chkVerURL, savePath, saveFileName + ".apk"); appUpdate.checkUpdateInfo(false); } 4.有问题或有好的建议,请一定及时提出 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)