# UpdateHelper **Repository Path**: JamesGZM/UpdateHelper ## Basic Information - **Project Name**: UpdateHelper - **Description**: 更新开源库 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-10-12 - **Last Updated**: 2025-03-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 更新类库 准备 ```groovy allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` ```groovy implementation 'com.gitee.JamesGZM:UpdateHelper:1.0.0' ``` 1.初始化类库 如果已经调用了 `MMKV.initialize` 则不需要调用 `UpdateManager.init(this, true)` 2.启动更新 ```kotlin UpdateManager.setChecker( postData = mapOf( "_api_key" to "你的蒲公英_api_key", "appKey" to "对应app的组key", "buildVersion" to "当前app版本" ) ) UpdateManager.check(this) ``` 详情请查看 https://www.pgyer.com/doc/view/api#appUpdate gradlew assembleRelease