|
преди 3 месеца | |
---|---|---|
.github | преди 2 години | |
docs | преди 1 година | |
gradle | преди 2 години | |
net | преди 3 месеца | |
sample | преди 1 година | |
.gitignore | преди 5 години | |
LICENSE | преди 1 година | |
README.md | преди 1 година | |
build.gradle | преди 3 месеца | |
gradle.properties | преди 3 години | |
gradlew | преди 5 години | |
gradlew.bat | преди 5 години | |
mkdocs.yml | преди 1 година | |
settings.gradle | преди 1 година | |
signed | преди 3 години |
基于协程完善的Android网络请求库
Net是基于OkHttp/协程的非侵入式框架(可使用所有Api), 可升级OkHttp版本保持网络安全
Welcome to international translation of this project's documents/notes, thank you for your support!
Net 1.x 版本使用RxJava实现
Net 2.x 版本使用协程实现
Net-okhttp3 Net3.x的Android低版本兼容库
Net 3.x 版本使用协程实现, 可自定义OkHttp版本
欢迎贡献代码/问题
Project 的 settings.gradle 添加仓库
dependencyResolutionManagement {
repositories {
// ...
maven { url 'https://jitpack.io' }
}
}
Module 的 build.gradle 添加依赖框架
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0" // 协程(版本自定)
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0'
implementation 'com.squareup.okhttp3:okhttp:4.11.0' // 要求OkHttp4以上
implementation 'com.github.liangjingkanji:Net:3.6.4'
如果在 Android 5 (API level 21)以下开发, 请使用 Net-okhttp3
supported by JetBrains
MIT License
Copyright (c) 2023 劉強東
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.