Skip to content

Commit

Permalink
升级1.8.1,细节优化,增加对基本数据的支持等
Browse files Browse the repository at this point in the history
  • Loading branch information
jeasonlzy committed Sep 15, 2016
1 parent 8389d19 commit 4311eaa
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 15 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@

对于Eclipse不能运行项目的,提供了apk供直接运行

### 或者点击下载Demo [okhttputils_v1.8.0.apk](https://github.com/jeasonlzy0216/OkHttpUtils/blob/master/okhttputils_v1.8.0.apk?raw=true)
### 或者点击下载Demo [okhttputils_v1.8.1.apk](https://github.com/jeasonlzy0216/OkHttpUtils/blob/master/okhttputils_v1.8.1.apk?raw=true)

本项目Demo的网络请求是我自己的服务器,有时候可能不稳定,网速比较慢时请耐心等待。。

* 对于Android Studio的用户,可以选择添加:
```java
compile 'com.lzy.net:okhttputils:1.8.0' //可以单独使用,不需要依赖下方的扩展包
compile 'com.lzy.net:okhttpserver:1.0.2' //扩展了下载管理和上传管理,根据需要添加
compile 'com.lzy.net:okhttputils:1.8.1' //可以单独使用,不需要依赖下方的扩展包
compile 'com.lzy.net:okhttpserver:1.0.3' //扩展了下载管理和上传管理,根据需要添加

或者

Expand All @@ -50,8 +50,8 @@

* 对于Eclipse的用户,可以选择添加 `/jar` 目录下的:
```java
okhttputils-1.8.0.jar
okhttpserver-1.0.2.jar
okhttputils-1.8.1.jar
okhttpserver-1.0.3.jar
```
* 如果是以jar包的形式引入`okhttpserver`,需要在清单文件中额外注册一个服务
```java
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "com.lzy.okhttpdemo"
minSdkVersion 14
targetSdkVersion 22
versionCode 22
versionName "1.8.0"
versionCode 23
versionName "1.8.1"
}
signingConfigs {
appkey {
Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion okhttpserver/bintray.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "1.0.2" // 数据仓库依赖第三部分
version = "1.0.3" // 数据仓库依赖第三部分

def siteUrl = 'https://github.com/jeasonlzy0216/OkHttpUtils'
def gitUrl = 'https://github.com/jeasonlzy0216/OkHttpUtils.git'
Expand Down
6 changes: 3 additions & 3 deletions okhttpserver/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ android {
defaultConfig {
minSdkVersion 8
targetSdkVersion 22
versionCode 12
versionName "1.0.2"
versionCode 13
versionName "1.0.3"
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
// compile 'com.lzy.net:okhttputils:1.8.0'
// compile 'com.lzy.net:okhttputils:1.8.1'
compile project(':okhttputils')
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,16 @@ public void stopAllTask() {

/** 删除一个任务,会删除下载文件 */
public void removeTask(String taskKey) {
removeTask(taskKey, false);
}

/** 删除一个任务,会删除下载文件 */
public void removeTask(String taskKey, boolean isDeleteFile) {
final DownloadInfo downloadInfo = getDownloadInfo(taskKey);
if (downloadInfo == null) return;
pauseTask(taskKey); //暂停任务
removeTaskByKey(taskKey); //移除任务
deleteFile(downloadInfo.getTargetPath()); //删除文件
if (isDeleteFile) deleteFile(downloadInfo.getTargetPath()); //删除文件
DownloadDBManager.INSTANCE.delete(taskKey); //清除数据库
}

Expand Down
2 changes: 1 addition & 1 deletion okhttputils/bintray.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "1.8.0" // 数据仓库依赖第三部分
version = "1.8.1" // 数据仓库依赖第三部分

def siteUrl = 'https://github.com/jeasonlzy0216/OkHttpUtils'
def gitUrl = 'https://github.com/jeasonlzy0216/OkHttpUtils.git'
Expand Down
4 changes: 2 additions & 2 deletions okhttputils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 8
targetSdkVersion 22
versionCode 16
versionName "1.8.0"
versionCode 17
versionName "1.8.1"
}
}

Expand Down
Binary file removed okhttputils_v1.8.0.apk
Binary file not shown.
Binary file added okhttputils_v1.8.1.apk
Binary file not shown.

0 comments on commit 4311eaa

Please sign in to comment.