Giter VIP home page Giter VIP logo

chaperone's Introduction

Chaperone

allprojects { repositories { maven { url 'https://jitpack.io' } } }

项目依赖使用 dependencies { implementation 'com.github.coolsili:Chaperone:1.2.1' api 'androidx.lifecycle:lifecycle-extensions:2.2.0' //rxJava implementation 'io.reactivex.rxjava3:rxandroid:3.0.0' implementation 'io.reactivex.rxjava3:rxjava:3.0.0' //retrofit implementation 'com.squareup.retrofit2:retrofit:2.3.0' implementation 'com.squareup.retrofit2:converter-gson:2.3.0' implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0' // Okhttp implementation 'com.squareup.okhttp3:okhttp:4.0.1' implementation 'com.squareup.okhttp3:logging-interceptor:3.8.1' //recyclerview implementation 'androidx.recyclerview:recyclerview:1.2.0' }

android{
    dataBinding {
        enabled = true
    }
    compileOptions {
            sourceCompatibility 1.8
            targetCompatibility 1.8
    }
 }

增加请求封装 1.添加依赖。 2.在使用的项目中定义接口 ApiService, 直接使用 RetrofitHandler.class 3.调用查看app中HomeViewModle.class示例。

chaperone's People

Contributors

coolsili avatar

Watchers

 avatar

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.