美文网首页
项目依赖一览表

项目依赖一览表

作者: 我弟是个程序员 | 来源:发表于2017-07-24 11:19 被阅读0次

本篇文章用来记录本人在项目中实现的额一些功能添加的依赖,以便随时查找

  • Retrofit依赖:
    compile 'com.squareup.retrofit2:retrofit:2.1.0'

    compile 'com.google.code.gson:gson:2.7'

    compile 'com.squareup.retrofit2:converter-gson:2.1.0'
    compile 'com.squareup.retrofit2:converter-scalars:2.1.0'

    compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'   
    compile 'com.squareup.okhttp3:logging-interceptor:3.4.0-RC1'
  • Rxjava依赖,一般习惯上把其与Retrofit一起使用,这样会使代码更加灵活:
  compile 'io.reactivex:rxjava:1.2.1'
  compile 'io.reactivex:rxandroid:1.2.1'
  compile 'pub.devrel:easypermissions:0.4.2'
  • 一个用于下载的android库:
compile 'com.github.snowdream.android.app:downloader:1.0'
  1. 使用简单,最少只需要下载地址即可;
  2. 可以猜测下载任务名称
  3. 自动设置下载路径
  4. 支持断点续传
  5. 所有监听返回的接口,例如onAdd等,都支持UI操作

未完待续...

相关文章

网友评论

      本文标题:项目依赖一览表

      本文链接:https://www.haomeiwen.com/subject/jagvkxtx.html