https://github.com/sunfusheng/firupdater
Fir.im通道APK更新器,使用简单,让自己的demo快速具备升级功能
https://github.com/sunfusheng/firupdater
downloader fir notification updater
Last synced: about 2 months ago
JSON representation
Fir.im通道APK更新器,使用简单,让自己的demo快速具备升级功能
- Host: GitHub
- URL: https://github.com/sunfusheng/firupdater
- Owner: sunfusheng
- Created: 2018-02-17T07:08:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-03T15:29:41.000Z (about 5 years ago)
- Last Synced: 2025-03-22T22:24:12.331Z (2 months ago)
- Topics: downloader, fir, notification, updater
- Language: Java
- Homepage: https://github.com/sfsheng0322/FirUpdater
- Size: 7.98 MB
- Stars: 150
- Watchers: 6
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FirUpdater [  ](https://bintray.com/sfsheng0322/maven/FirUpdater/_latestVersion)
Fir.im通道APK更新器,使用简单,让自己的demo快速具备升级功能
### 应用截图

### Gradle:
工程的 build.gradle 添加:
allprojects {
repositories {
maven { url 'https://dl.bintray.com/sfsheng0322/maven' }
}
}
模块的 build.gradle 添加:compile 'com.sunfusheng:FirUpdater:'
Android 8.0以上需要添加权限
### 使用
1、检查升级一行代码即可:
FirUpdater.getInstance(context)
.apiToken(YOUR_FIR_API_TOKEN)
.appId(YOUR_FIR_APP_ID)
.apkPath(YOUR_APK_PATH)
.apkName(YOUR_APK_NAME)
.checkVersion();2、如果不设置apkPath,默认下载到SDCard的根目录下
3、如果不设置apkName,默认名称为【appName-versionName】
### 扫一扫[Fir.im](https://fir.im/FirUpdater)二维码下载APK
### 个人微信公众号
### 请作者喝杯咖啡^_^
### 关于我
[GitHub: sunfusheng](https://github.com/sunfusheng)
[个人邮箱: [email protected]](https://mail.126.com/)
[个人博客: sunfusheng.com](http://sunfusheng.com/)
[简书主页](http://www.jianshu.com/users/88509e7e2ed1/latest_articles)
[新浪微博](http://weibo.com/u/3852192525)