From 5f50bd6ea5d5bdb7b8ea4d9e9a5851067b9aec1b Mon Sep 17 00:00:00 2001
From: Administrator <123>
Date: Tue, 09 Nov 2021 02:22:38 +0000
Subject: [PATCH] 网络请求框架

---
 app/build.gradle |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/app/build.gradle b/app/build.gradle
index 0b61201..6fe0e3c 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -16,8 +16,18 @@
     }
 
     buildTypes {
+        debug{
+            minifyEnabled false
+            buildConfigField 'String','HOST_IP_ADDR','"http://192.168.100.82:8080/"'
+            buildConfigField 'String','ENVIRONMENT','"release"'
+            resValue "string", "app_name", "趣为帮扶测试"
+            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+        }
         release {
             minifyEnabled false
+            buildConfigField 'String','HOST_IP_ADDR','"http://192.168.100.82:8080/"'
+            buildConfigField 'String','ENVIRONMENT','"release"'
+            resValue "string", "app_name", "趣为帮扶"
             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
         }
     }
@@ -58,10 +68,10 @@
     implementation 'com.github.d-max:spots-dialog:1.1@aar'//loading view
     implementation 'com.google.code.gson:gson:2.8.6'
     implementation 'com.ansen.http:okhttpencapsulation:1.0.1'//版本更新下载
-    implementation 'com.squareup.okhttp3:okhttp:3.12.1'
-    implementation 'com.squareup.retrofit2:retrofit:2.3.0'
+    implementation 'com.squareup.okhttp3:okhttp:4.9.0'
+    implementation 'com.squareup.retrofit2:retrofit:2.9.0'
     //RXjava和retrofit结合
-    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.2.0'
+    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
     implementation 'com.permissionx.guolindev:permissionx:1.2.2'    //权限依赖让你推广你就发群里?没有别的群了?
     implementation 'com.github.bumptech.glide:glide:4.12.0'
     annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'

--
Gitblit v1.9.1