Fir.im通道APK更新器,使用简单,让自己的demo快速具备升级功能
Clone or download
Latest commit 83b489e Jul 29, 2018
Permalink
Failed to load latest commit information.
.idea update gradle version Apr 24, 2018
FirUpdater V1.1.1 Jul 29, 2018
Sample V1.0.9 Jul 10, 2018
gradle/wrapper update gradle version Apr 24, 2018
resources modify readme Feb 20, 2018
signings init Feb 18, 2018
.gitignore init Feb 17, 2018
.travis.yml V1.0.2 Feb 19, 2018
README.md V1.1.1 Jul 29, 2018
build.gradle V1.0.9 Jul 10, 2018
gradle.properties init Feb 17, 2018
gradlew init Feb 17, 2018
gradlew.bat init Feb 17, 2018
settings.gradle V1.1.1 Jul 21, 2018

README.md

FirUpdater Download

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


应用截图


Gradle:

工程的 build.gradle 添加:

allprojects {
    repositories {
        maven { url 'https://dl.bintray.com/sfsheng0322/maven' }
    }
}

模块的 build.gradle 添加:

compile 'com.sunfusheng:FirUpdater:<latest-version>'

Android 8.0以上需要添加权限

<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>

使用

检查升级一行代码即可:

new FirUpdater(context, YOUR_FIR_API_TOKEN, YOUR_FIR_APP_ID)
    .apkPath(YOUR_APK_PATH)
    .checkVersion();

你也可以这样设置:

new FirUpdater(context)
    .apiToken(YOUR_FIR_API_TOKEN)
    .appId(YOUR_FIR_APP_ID)
    .apkPath(YOUR_APK_PATH)
    .checkVersion();

如果不设置apkPath,默认下载到SDCard的根目录下


扫一扫Fir.im二维码下载APK


个人微信公众号


打点赏给作者加点油^_^


关于我

GitHub: sunfusheng

个人邮箱: sfsheng0322@126.com

个人博客: sunfusheng.com

简书主页

新浪微博