build.gradle 5.1 KB

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