Ver Fonte

Initial commit

YanYi há 7 anos atrás
pai
commit
6e12e4611a

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

+ 1 - 0
app/build.gradle

@@ -31,4 +31,5 @@ dependencies {
     androidTestImplementation 'com.android.support.test:runner:1.0.1'
     androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
     compile project(':okhttp2')
+    implementation 'com.github.love-yanyi:Logger:1.0.1'
 }

+ 1 - 1
okhttp2/build.gradle

@@ -37,5 +37,5 @@ dependencies {
     implementation 'com.squareup.okio:okio:1.13.0'
     implementation 'io.reactivex:rxjava:1.3.3'
     implementation 'io.reactivex:rxandroid:1.2.1'
-    compile 'com.github.love-yanyi:Logger:1.0.1'
+    implementation 'com.github.love-yanyi:Logger:1.0.1'
 }

+ 0 - 7
okhttp2/src/main/java/com/mylove/okhttp/OkHttpUtil.java

@@ -3,8 +3,6 @@ package com.mylove.okhttp;
 import android.annotation.SuppressLint;
 import android.content.Context;
 
-import java.util.Map;
-
 /**
  * @author myLove
  * @time 2017/11/2 14:41
@@ -46,9 +44,4 @@ public class OkHttpUtil {
     public AutoRequest postAll(String url) {
         return AutoRequest.getInstance(mContext, url, RequestType.UP_FILE);
     }
-
-    @Deprecated
-    public void postRequest(String url, Map<Object, Object> oMap, final onOkHttpListener<String, String> onOkHttpListener) {
-//        request(url, oMap, onOkHttpListener);
-    }
 }