Skip to content

sunfusheng/FirUpdater

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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"/>

使用

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二维码下载APK


个人微信公众号


请作者喝杯咖啡^_^


关于我

GitHub: sunfusheng

个人邮箱: sfsheng0322@126.com

个人博客: sunfusheng.com

简书主页

新浪微博