liangjingkanji / Net

Licence: apache-2.0
Android上强大的网络请求

Programming Languages

java
68154 projects - #9 most used programming language
kotlin
9241 projects

Projects that are alternatives of or similar to Net

Retrofitcache
RetrofitCache让retrofit2+okhttp3+rxjava配置缓存如此简单。通过注解配置,可以针对每一个接口灵活配置缓存策略;同时让每一个接口方便支持数据模拟,可以代码减小侵入性,模拟数据可以从内存,Assets,url轻松获取。
Stars: ✭ 647 (+88.08%)
Mutual labels:  rxjava, cache, okhttp
AndroidGo
Android、Flutter 开发者帮助 APP。包含事件分发、性能分析、Google Jetpack组件、OkHttp、RxJava、Retrofit、Volley、Canvas绘制以及优秀博文代码案例等内容,帮助开发者快速上手!
Stars: ✭ 30 (-91.28%)
Mutual labels:  rxjava, okhttp, lifecycle
Star Wars Shop
Simple project with clean architecture and android lifecycle
Stars: ✭ 37 (-89.24%)
Mutual labels:  rxjava, rxkotlin, lifecycle
Fast Android Networking
🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀
Stars: ✭ 5,346 (+1454.07%)
Mutual labels:  rxjava, download, okhttp
Mvvmhabit
goldze: 本人喜欢尝试新的技术,以后发现有好用的东西,我将会在企业项目中实战,没有问题了就会把它引入到MVVMHabit中,一直维护着这套框架,谢谢各位朋友的支持。如果觉得这套框架不错的话,麻烦点个 star,你的支持则是我前进的动力!
Stars: ✭ 6,789 (+1873.55%)
Mutual labels:  rxjava, lifecycle, okhttp
Mvvmhabitcomponent
👕基于MVVMHabit框架,结合阿里ARouter打造的一套Android MVVM组件化开发方案
Stars: ✭ 857 (+149.13%)
Mutual labels:  rxjava, lifecycle, okhttp
Android Disposebag
Automatically dispose RxJava 2 streams on Android using Lifecycle events.
Stars: ✭ 200 (-41.86%)
Mutual labels:  rxjava, rxkotlin, lifecycle
http
Aplus Framework HTTP Library
Stars: ✭ 113 (-67.15%)
Mutual labels:  download, cookie
TMDB-App
Demo app using TMDB api
Stars: ✭ 13 (-96.22%)
Mutual labels:  rxjava, okhttp
Rx Mvp
RxJava2+Retrofit2+RxLifecycle2+OkHttp3 封装RHttp 使用MVP模式构建项目
Stars: ✭ 343 (-0.29%)
Mutual labels:  download, okhttp
Daisynet
1. - Alamofire与Cache封装 , 更容易存储请求数据. 2. - 封装Alamofire下载,使用更方便
Stars: ✭ 331 (-3.78%)
Mutual labels:  cache, download
ehhttp
OkHttp calls as RxJava types
Stars: ✭ 19 (-94.48%)
Mutual labels:  rxjava, okhttp
neurosky-android-sdk
Android SDK for the NeuroSky MindWave Mobile Brainwave Sensing Headset
Stars: ✭ 39 (-88.66%)
Mutual labels:  rxjava, rxkotlin
rxkotlin-jdbc
Fluent RxJava JDBC extension functions for Kotlin
Stars: ✭ 27 (-92.15%)
Mutual labels:  rxjava, rxkotlin
RxHttp
基于RxJava2+Retrofit+OkHttp4.x封装的网络请求类库,亮点多多,完美兼容MVVM(ViewModel,LiveData),天生支持网络请求和生命周期绑定,天生支持多BaseUrl,支持文件上传下载进度监听,支持断点下载,支持Glide和网络请求公用一个OkHttpClient⭐⭐⭐
Stars: ✭ 25 (-92.73%)
Mutual labels:  rxjava, okhttp
BaseDevelop
an android project for now fashion open source framework
Stars: ✭ 24 (-93.02%)
Mutual labels:  rxjava, okhttp
catchflicks
🎬 Kitchen sink project for learning android concepts 🎬
Stars: ✭ 12 (-96.51%)
Mutual labels:  rxjava, lifecycle
DaMaiProject
大麦界面,实现多种方式网络访问、数据缓存
Stars: ✭ 24 (-93.02%)
Mutual labels:  rxjava, okhttp
Kotlin Cleanarchitecture
This is a sample app that is part of a blog post I have written about how to architect android application using the Uncle Bob's clean architecture and Fernando Cejas Android-CleanArchitecture in Kotlin. Post in Spanish: http://katade.com/clean-architecture-kotlin/
Stars: ✭ 274 (-20.35%)
Mutual labels:  rxjava, rxkotlin
Rxkprefs
🛠 A small Kotlin library to make shared preferences easy + RxJava and Coroutines support
Stars: ✭ 264 (-23.26%)
Mutual labels:  rxjava, rxkotlin

不仅仅是网络请求的异步任务库

使用文档


搜索文件: nav_main 打开即可查看所有功能界面


Android上不是最强网络任务库, 创新式的网络请求库(基于Kalle), 支持协程高并发网络请求


Net 1.x 版本为RxJava实现
Net 2.x 版本为协程实现(开发者无需掌握协程也可以使用)


正在进行的任务

  • OkHttp4.8 重构

主要新增特性

  • 代码简洁(最少一行代码发起请求)
  • 文档详细
  • Kotlin
  • 协程(不懂协程也可上手)
  • 并发网络请求(马上优化网络速度!)
  • 串行网络请求
  • 切换线程
  • DSL编程
  • 全局日志记录器(完美解决日志过长展示不清晰数据加密问题, 比抓包更强大)
  • 支持先强制读取缓存后网络请求二次刷新
  • 并发请求返回最快请求结果(可返回不同响应数据)
  • 方便的缓存处理
  • 自动错误信息吐司
  • 详细的错误信息
  • 自动异常捕获
  • 自动日志打印异常(任何网络错误可追踪到具体请求接口)
  • 自动JSON解析(可解析List)
  • 自动处理下拉刷新和上拉加载
  • 自动处理分页加载
  • 自动缺省页
  • 自动处理生命周期
  • 自动处理加载对话框
  • 协程作用域支持错误和结束回调
  • 内置超强轮循器(计时器)
  • 解析JSON数组返回集合

同时完全不影响Kalle的特性

  • 九种缓存模式
  • 重试次数拦截器
  • 数据库缓存加密
  • 上传进度监听
  • 下载进度监听
  • 断点续传
  • 下载文件策略
  • 网络连接判断
  • 自定义数据转换器
  • 网络拦截器
  • 重定向
  • 自定义请求体
  • 全局配置
  • Cookie
  • SSH证书

在项目根目录的 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.11'

Contribute

supported by JetBrains

License

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].