build.gradle 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.jakewharton.butterknife'
  3. android {
  4. compileSdkVersion build_versions.target_sdk
  5. buildToolsVersion build_versions.build_tools
  6. aaptOptions.cruncherEnabled = false
  7. aaptOptions.useNewCruncher = false
  8. defaultConfig {
  9. minSdkVersion build_versions.min_sdk
  10. targetSdkVersion build_versions.target_sdk
  11. versionCode build_versions.version_code
  12. versionName build_versions.version_name
  13. multiDexEnabled true
  14. ndk {
  15. //设置支持的SO库架构
  16. abiFilters "armeabi-v7a"
  17. }
  18. javaCompileOptions {
  19. annotationProcessorOptions {
  20. arguments = [AROUTER_MODULE_NAME: project.getName()]
  21. }
  22. }
  23. }
  24. lintOptions {
  25. checkReleaseBuilds false
  26. abortOnError false
  27. }
  28. //recommend
  29. dexOptions {
  30. jumboMode = true
  31. }
  32. buildFeatures {
  33. dataBinding = true
  34. }
  35. buildTypes {
  36. //测试环境包
  37. debug {
  38. debuggable true
  39. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  40. }
  41. release {
  42. debuggable false
  43. zipAlignEnabled true
  44. minifyEnabled true
  45. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  46. }
  47. }
  48. lintOptions {
  49. disable 'MissingTranslation'
  50. }
  51. compileOptions {
  52. sourceCompatibility JavaVersion.VERSION_1_8
  53. targetCompatibility JavaVersion.VERSION_1_8
  54. }
  55. }
  56. dependencies {
  57. implementation fileTree(include: ['*.jar'], dir: 'libs')
  58. implementation deps.support.recyclerview
  59. // compile "com.android.support:support-v4:$rootProject.ext.supportVersion"
  60. implementation deps.support.multidex
  61. implementation deps.support.cardview
  62. //compile rootProject.ext.dependencies.eventBus
  63. //ping++ //支付集成
  64. // compile rootProject.ext.dependencies.pingpp_code
  65. // compile rootProject.ext.dependencies.pingpp_alipy
  66. // compile rootProject.ext.dependencies.pingpp_qpay
  67. implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.5.7'
  68. //compile rootProject.ext.dependencies.dialogplus
  69. //implementation rootProject.ext.dependencies.autolayout
  70. //compile rootProject.ext.dependencies.materialedittext
  71. //compile rootProject.ext.dependencies.datetimepicker
  72. implementation "com.soundcloud.android.crop:lib_crop:1.0.0"
  73. implementation "com.darsh.multipleimageselect:multipleimageselect:1.0.4"
  74. implementation "me.shaohui.advancedluban:library:1.3.2"
  75. implementation "pl.droidsonroids.gif:android-gif-drawable:1.2.7"
  76. implementation "com.jude:rollviewpager:1.4.6"
  77. //compile rootProject.ext.dependencies.TimePickerDialog
  78. implementation "com.github.zyyoona7:EasyPopup:1.0.2"
  79. implementation "com.github.donkingliang:LabelsView:1.6.1"
  80. //compile rootProject.ext.dependencies.packer
  81. implementation "com.orhanobut:logger:2.1.1"
  82. implementation deps.butterknife
  83. annotationProcessor deps.butterknife_annotationProcessor
  84. //compile rootProject.ext.dependencies.pagerLayoutManager
  85. //implementation rootProject.ext.dependencies.safetychecker
  86. //implementation rootProject.ext.dependencies.uilib
  87. //可选,用于生成application类
  88. // provided(rootProject.ext.dependencies.tinker_anno)
  89. //tinker的核心库
  90. // compile(rootProject.ext.dependencies.tinker_lib)
  91. implementation 'com.hyman:flowlayout-lib:1.1.2'
  92. //implementation 'com.gongwen:marqueelibrary:1.1.3'//临时引入
  93. implementation 'com.yanzhenjie:recyclerview-swipe:1.1.4'
  94. //implementation 'com.contrarywind:Android-PickerView:4.1.8'
  95. //compile 'cn.jiguang.sdk:jpush:3.1.5' // 此处以JPush 3.1.5 版本为例。
  96. //compile 'cn.jiguang.sdk:jcore:1.2.3' // 此处以JCore 1.2.3 版本为例。
  97. //哆啦A梦工具箱
  98. //debugCompile rootProject.ext.dependencies.doraemonkit
  99. //betaCompile rootProject.ext.dependencies.doraemonkit
  100. //releaseCompile rootProject.ext.dependencies.doraemonkit_no_op
  101. //productCompile rootProject.ext.dependencies.doraemonkit_no_op
  102. //product18Compile rootProject.ext.dependencies.doraemonkit_no_op
  103. annotationProcessor 'androidx.annotation:annotation:1.1.0'
  104. implementation 'com.shanp.android:youqi-safetychecker:1.0.0'
  105. implementation 'com.shanp.android:youqi-room-ui:1.0.1'
  106. implementation 'com.shanp.android:youqi-room-core:1.3.18'
  107. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  108. implementation 'com.ogaclejapan.smarttablayout:library:2.0.0@aar'
  109. implementation 'com.ogaclejapan.smarttablayout:utils-v4:2.0.0@aar'
  110. implementation 'com.airbnb.android:lottie:3.0.7'
  111. debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
  112. releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
  113. annotationProcessor deps.arouter_compiler
  114. implementation project(':uchat_common')
  115. }