Skip to content

Commit

Permalink
更新README
Browse files Browse the repository at this point in the history
  • Loading branch information
maning committed Mar 27, 2018
1 parent 2bacd68 commit cc21aae
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Android APK 版本更新的下载和安装,适配7.0,8.0下载安装
#### 2.在Module目录下的build.gradle中添加依赖
``` gradle
dependencies {
compile 'com.github.maning0303:MNUpdateAPK:V1.1.4'
compile 'com.github.maning0303:MNUpdateAPK:V1.1.5'
}
```

Expand Down Expand Up @@ -97,6 +97,30 @@ Android APK 版本更新的下载和安装,适配7.0,8.0下载安装

}).downloadAPK();


//设置下载监听
InstallUtils.setDownloadCallBack(new InstallUtils.DownloadCallBack() {
@Override
public void onStart() {

}

@Override
public void onComplete(String path) {

}

@Override
public void onLoading(long total, long current) {

}

@Override
public void onFail(Exception e) {

}
});

```

#### 浏览器下载安装:
Expand All @@ -118,6 +142,9 @@ Android APK 版本更新的下载和安装,适配7.0,8.0下载安装
```

## 版本记录:
##### 版本 V1.1.5:
1修复http302 重定向问题

##### 版本 V1.1.4:
1.优化代码

Expand Down

0 comments on commit cc21aae

Please sign in to comment.