Browse Source

文档中添加扩展库依赖

drake 3 years ago
parent
commit
7fbe79c4ed
2 changed files with 22 additions and 2 deletions
  1. 8 0
      docs/auto-refresh.md
  2. 14 2
      docs/auto-state.md

+ 8 - 0
docs/auto-refresh.md

@@ -1,6 +1,14 @@
 Net属于低耦合框架, 自动下拉刷新需要依赖第三方组件: [BRV](https://github.com/liangjingkanji/BRV)(点击链接按文档依赖)
 <br>
 
+<a href="https://jitpack.io/#liangjingkanji/BRV"><img src="https://jitpack.io/v/liangjingkanji/BRV.svg"/></a>
+
+使用固定版本号替换+符号
+
+```groovy
+implementation 'com.github.liangjingkanji:BRV:+'
+```
+
 > 当然如果自己处理下拉刷新也是可以的, Net可以仅仅作为网络框架存在
 
 创建PageRefreshLayout

+ 14 - 2
docs/auto-state.md

@@ -1,7 +1,19 @@
 考虑到低耦合, 所以自定义缺省页需要导入第三方组件依赖(点击链接按照文档依赖), 当然如果你使用其他方式处理缺省页可以跳过本章.
 
-1. 依赖 [StateLayout](https://github.com/liangjingkanji/StateLayout)
-1. 依赖 [BRV](https://github.com/liangjingkanji/BRV) (因为BRV包含StateLayout, 同时BRV支持Net自动下拉刷新/分页加载)
+依赖以下两种库其中之一即可支持自动显示缺省页
+
+1. 依赖 [StateLayout](https://github.com/liangjingkanji/StateLayout) <br>
+    <a href="https://jitpack.io/#liangjingkanji/StateLayout"><img src="https://jitpack.io/v/liangjingkanji/StateLayout.svg"/></a><br>
+    使用固定版本号替换+符号
+    ```groovy
+    implementation 'com.github.liangjingkanji:StateLayout:+'
+    ```
+1. 依赖 [BRV](https://github.com/liangjingkanji/BRV) (因为BRV包含StateLayout) <br>
+    <a href="https://jitpack.io/#liangjingkanji/BRV"><img src="https://jitpack.io/v/liangjingkanji/BRV.svg"/></a><br>
+    使用固定版本号替换+符号
+    ```groovy
+    implementation 'com.github.liangjingkanji:BRV:+'
+    ```
 
 
 <br>