Skip to content

Commit

Permalink
修复下载文件进度不及时的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Deepblue1996 committed May 11, 2021
1 parent db53acf commit 67b4fc3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dovelib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 29
versionCode 56
versionName "1.5.6"
versionCode 57
versionName "1.5.7"
}
buildTypes {
release {
Expand Down
2 changes: 1 addition & 1 deletion dovelib/maven_build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ext {
// 在用到的代码上依赖的代码compile 'com.andrjhf.storage:encrypt:1.0.0'
PUBLISH_GROUP_ID = 'com.deep'
PUBLISH_ARTIFACT_ID = 'Bun'
PUBLISH_VERSION = '1.5.6'
PUBLISH_VERSION = '1.5.7'
}

uploadArchives {
Expand Down
2 changes: 1 addition & 1 deletion dovelib/src/main/java/com/prohua/dove/Dove.java
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ public void onFailure(Call<ResponseBody> call, Throwable t) {
public void onSuccess(Call<ResponseBody> call, retrofit2.Response<ResponseBody> response) {
try {
InputStream is = response.body().byteStream();
File file = new File(path, "download.jpg");
File file = new File(path);
FileOutputStream fos = new FileOutputStream(file);
BufferedInputStream bis = new BufferedInputStream(is);
byte[] buffer = new byte[1024];
Expand Down

0 comments on commit 67b4fc3

Please sign in to comment.