瀏覽代碼

change download method

yanyi 6 年之前
父節點
當前提交
e30ea68478
共有 3 個文件被更改,包括 12 次插入5 次删除
  1. 7 0
      README.md
  2. 1 1
      okhttplib/bintrayUpload.gradle
  3. 4 4
      okhttplib/build.gradle

+ 7 - 0
README.md

@@ -2,6 +2,7 @@
 ## OkHttp请求封装
 ### 使用方法
 
+#### 方法一(老版)
 module 下添加
 
      compile 'com.github.BenYanYi:OkHttp:1.1.6'
@@ -19,3 +20,9 @@ project 下添加
     }
 
 <br/>
+
+#### 方法二(最新)
+module 下添加
+
+    compile 'com.yanyi.benyanyi:okhttplib:1.0.3'
+    

+ 1 - 1
okhttplib/bintrayUpload.gradle

@@ -7,7 +7,7 @@ def siteUrl = 'https://github.com/BenYanYi/OkHttp' // 项目主页。
 def gitUrl = 'https://github.com/BenYanYi/OkHttp.git' // Git仓库的url。
 
 group = "com.yanyi.benyanyi"// 唯一包名,比如compile 'com.ansen.http:okhttpencapsulation:1.0.1'中的com.ansen.http就是这里配置的。
-version = "1.0.2"//项目引用的版本号,比如compile 'com.ansen.http:okhttpencapsulation:1.0.1'中的1.0.1就是这里配置的。
+version = "1.0.3"//项目引用的版本号,比如compile 'com.ansen.http:okhttpencapsulation:1.0.1'中的1.0.1就是这里配置的。
 install {
     repositories.mavenInstaller {
         // This generates POM.xml with proper parameters

+ 4 - 4
okhttplib/build.gradle

@@ -27,12 +27,12 @@ dependencies {
     implementation fileTree(include: ['*.jar'], dir: 'libs')
     implementation 'com.android.support:appcompat-v7:26.1.0'
     testImplementation 'junit:junit:4.12'
-    androidTestImplementation 'com.android.support.test:runner:1.0.1'
-    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
-    implementation 'com.squareup.okhttp3:okhttp:3.9.0'
+    androidTestImplementation 'com.android.support.test:runner:1.0.2'
+    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
+    implementation 'com.squareup.okhttp3:okhttp:3.10.0'
     //网络请求log 拦截器
     implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0'
-    implementation 'com.squareup.okio:okio:1.13.0'
+    implementation 'com.squareup.okio:okio:1.14.0'
     implementation 'io.reactivex.rxjava2:rxjava:2.1.4'
     implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
     implementation 'com.google.code.gson:gson:2.8.5'