build.gradle 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.neenbedankt.android-apt'
  3. apply plugin: 'realm-android'
  4. android {
  5. compileSdkVersion 27
  6. buildToolsVersion '27.0.3'
  7. defaultConfig {
  8. applicationId "org.yczbj.ycvideoplayer"
  9. minSdkVersion 17
  10. targetSdkVersion 27
  11. versionCode 11
  12. versionName "1.1.1"
  13. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  14. // dex突破65535的限制
  15. multiDexEnabled true
  16. ndk {
  17. //设置支持的SO库架构
  18. abiFilters 'armeabi', 'armeabi-v7a'
  19. }
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27. //为了解决第三方库重复打包了META_INF问题,替换为有冲突的依赖
  28. packagingOptions {
  29. exclude 'META-INF/rxjava.properties'
  30. }
  31. }
  32. dependencies {
  33. compile fileTree(include: ['*.jar'], dir: 'libs')
  34. //官方库
  35. compile 'com.android.support:appcompat-v7:27.1.0'
  36. compile 'com.android.support:recyclerview-v7:27.1.0'
  37. compile 'com.android.support:design:27.1.0'
  38. compile 'com.android.support:cardview-v7:27.1.0'
  39. compile 'com.android.support:support-annotations:25.3.1'
  40. compile 'com.android.support:multidex:1.0.1'
  41. //网络请求retrofit2+Rx
  42. compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'
  43. compile 'com.squareup.okhttp3:okhttp:3.9.0'
  44. compile 'com.squareup.retrofit2:retrofit:2.3.0'
  45. compile 'com.squareup.retrofit2:converter-gson:2.3.0'
  46. //compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
  47. compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
  48. //compile 'io.reactivex:rxandroid:1.2.1'
  49. //compile 'io.reactivex:rxjava:1.2.3'
  50. // RxJava 2
  51. compile 'io.reactivex.rxjava2:rxjava:2.1.3'
  52. compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
  53. //注解
  54. compile 'com.jakewharton:butterknife:7.0.1' //黄牛刀
  55. compile 'com.google.dagger:dagger:2.13' //注解
  56. apt 'com.google.dagger:dagger-compiler:2.13'
  57. //其他库
  58. compile 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.0@aar' //导航栏
  59. compile 'com.blankj:utilcode:1.7.1' //工具类
  60. compile 'com.squareup.picasso:picasso:2.5.2' //图片
  61. compile 'com.github.bumptech.glide:glide:3.7.0' //谷歌图片加载库
  62. compile 'jp.wasabeef:glide-transformations:2.0.1'
  63. compile('com.alibaba.android:vlayout:1.2.2@aar') { //阿里巴巴UI
  64. transitive = true
  65. }
  66. compile 'com.liulishuo.filedownloader:library:1.6.9' //下载框架
  67. compile 'com.trello.rxlifecycle2:rxlifecycle:2.2.1' //RxLifecycle
  68. compile 'com.trello.rxlifecycle2:rxlifecycle-components:2.2.1'
  69. compile 'me.drakeet.multitype:multitype:3.4.0' //简化版 Adapter
  70. compile 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.0.0'
  71. //自己封装的库,都有对应的案例项目【欢迎star】:https://github.com/yangchong211
  72. compile 'cn.yc:YCUtilsLib:1.6.2' //公共类
  73. compile 'cn.yc:YCStateLib:1.1' //状态管理
  74. compile 'cn.yc:YCBannerLib:1.2' //轮播图
  75. compile 'org.yczbj:YCRefreshViewLib:2.4' //RecyclerView封装
  76. compile 'cn.yc:YCBaseAdapterLib:1.3' //adapter封装
  77. compile 'cn.yc:YCDialogLib:3.5' //弹窗
  78. compile 'cn.yc:YCProgressLib:1.2' //进度条
  79. // compile 'cn.yc:YCVideoPlayerLib:2.6.1' //播放器
  80. compile project(':YCVideoPlayerLib')
  81. compile 'cn.yc:YCStatusBarLib:1.4.0' //状态栏
  82. }