An open API service indexing awesome lists of open source software.

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快速具备升级功能

Awesome Lists containing this project

README

        

# FirUpdater [ ![Download](https://api.bintray.com/packages/sfsheng0322/maven/FirUpdater/images/download.svg) ](https://bintray.com/sfsheng0322/maven/FirUpdater/_latestVersion)

Fir.im通道APK更新器,使用简单,让自己的demo快速具备升级功能


### 应用截图

![](resources/res.png)


### 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)