|
3 gadi atpakaļ | |
---|---|---|
.github | 4 gadi atpakaļ | |
docs | 3 gadi atpakaļ | |
gradle | 4 gadi atpakaļ | |
kalle | 3 gadi atpakaļ | |
net | 3 gadi atpakaļ | |
sample | 3 gadi atpakaļ | |
.gitignore | 5 gadi atpakaļ | |
LICENSE | 4 gadi atpakaļ | |
README.md | 3 gadi atpakaļ | |
build.gradle | 3 gadi atpakaļ | |
gradle.properties | 4 gadi atpakaļ | |
gradlew | 5 gadi atpakaļ | |
gradlew.bat | 5 gadi atpakaļ | |
mkdocs.yml | 4 gadi atpakaļ | |
settings.gradle | 4 gadi atpakaļ |
不仅仅是网络请求的异步任务库
Android上不是最强网络任务库, 创新式的网络请求库(基于Kalle), 支持协程高并发网络请求
Net 1.x 版本为RxJava实现
Net 2.x 版本为协程实现(开发者无需掌握协程也可以使用)
Net 3.x 版本为OkHttp4.9实现
主要新增特性
同时完全不影响Kalle的特性
在项目根目录的 build.gradle 添加仓库
allprojects {
repositories {
// ...
maven { url 'https://jitpack.io' }
}
}
在 module 的 build.gradle 添加依赖
// 协程库(版本自定)
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
// 支持自动下拉刷新和缺省页的(可选)
implementation 'com.github.liangjingkanji:BRV:1.3.19'
implementation 'com.github.liangjingkanji:Net:2.3.16'
supported by JetBrains
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.