Giter Site home page Giter Site logo

rexhttp's Introduction

RexHttp

Download

基于Retrofit/RxJava/OkHttp实现的Http封装库, 在RxEasyHttp的基础上简化了缓存功能, 统一处理Retrofit的Api访问入口,重新定义数据返回形式,修改了部分方法及参数配置,使其更贴近实际业务的使用

使用说明 Usage

  • 添加依赖
api 'cn.byk.pandora:rexhttp:1.1.1'
  • 请自行添加第三方库,便于自定义版本,避免库多版本加载
api 'com.alibaba:fastjson:1.1.63.android'

api 'com.squareup.okhttp3:okhttp:3.9.1'
api 'com.squareup.okio:okio:1.13.0'

api 'io.reactivex.rxjava2:rxjava:2.1.7'
api 'io.reactivex.rxjava2:rxandroid:2.0.1'

api 'com.squareup.retrofit2:retrofit:2.3.0'
api 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
  • 具体调用方法有空再补充,目前本库自用

关于混淆 ProGuard

  • 只需添加OkHttp的混淆
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn javax.annotation.**
# A resource is loaded with a relative path so the package of this class must be preserved.
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase

特别鸣谢 Tks to

联系方式 Support or Contact

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.