58

GitHub - sfsheng0322/FirUpdater: Fir.im通道APK更新器,使用简单,让自己的demo快速...

 5 years ago
source link: https://github.com/sfsheng0322/FirUpdater
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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

fir.im.png


个人微信公众号

687474703a2f2f6f7572766d307438642e626b742e636c6f7564646e2e636f6d2f77785f676f6e677a686f6e6768616f2e706e67


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

687474703a2f2f6f7572766d307438642e626b742e636c6f7564646e2e636f6d2f77785f73686f756b75616e6d612e706e67


关于我

GitHub: sfsheng0322

个人邮箱: [email protected]

个人博客: sunfusheng.com

简书主页

新浪微博


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK