From 73ece7bafeec74191a5919efb6839c508522f917 Mon Sep 17 00:00:00 2001
From: Administrator <123>
Date: Sat, 06 Nov 2021 00:40:07 +0000
Subject: [PATCH] layout 子文件夹

---
 app/build.gradle |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/app/build.gradle b/app/build.gradle
index 26eb9ec..bf9aaad 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -28,12 +28,24 @@
     buildFeatures {
         viewBinding true
     }
+    sourceSets {
+        main {
+            //声明layout子文件夹
+            res.srcDirs = [
+                    'src/main/res/layout/item',
+                    //下面两个是固定兼容写法
+                    'src/main/res/layout',
+                    'src/main/res'
+            ]
+        }
+    }
+
 }
 
 dependencies {
 
     implementation 'androidx.appcompat:appcompat:1.2.0'
-    implementation 'com.google.android.material:material:1.3.0'
+    implementation 'com.google.android.material:material:1.4.0'
     implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
     implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
     implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
@@ -42,4 +54,19 @@
     testImplementation 'junit:junit:4.+'
     androidTestImplementation 'androidx.test.ext:junit:1.1.2'
     androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
+    //// 注意:分包之后不会有默认的Header和Footer需要手动添加!还是原来的三种方法!
+    implementation  'com.scwang.smart:refresh-layout-kernel:2.0.1'      //核心必须依赖
+    implementation  'com.scwang.smart:refresh-header-classics:2.0.1'    //经典刷新头
+    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'
+    //RXjava和retrofit结合
+    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.2.0'
+    implementation 'com.github.bumptech.glide:glide:4.12.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'
+
 }
\ No newline at end of file

--
Gitblit v1.9.1