build.gradle 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'org.jetbrains.kotlin.kapt'
  5. }
  6. apply plugin: 'kotlin-android'
  7. apply plugin: "realm-android"
  8. android {
  9. compileSdk rootProject.ext.androidConfig.compileSdk
  10. viewBinding {
  11. enabled = true
  12. }
  13. dataBinding{
  14. enabled = true
  15. }
  16. defaultConfig {
  17. minSdk rootProject.ext.androidConfig.minSdk
  18. // targetSdk rootProject.ext.androidConfig.targetSdk
  19. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  20. consumerProguardFiles "consumer-rules.pro"
  21. javaCompileOptions {
  22. annotationProcessorOptions {
  23. arguments = [AROUTER_MODULE_NAME: project.getName()]
  24. }
  25. }
  26. }
  27. buildTypes {
  28. release {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. }
  32. }
  33. compileOptions {
  34. sourceCompatibility JavaVersion.VERSION_1_8
  35. targetCompatibility JavaVersion.VERSION_1_8
  36. }
  37. }
  38. dependencies {
  39. api fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
  40. implementation "androidx.core:core-ktx:1.8.0"
  41. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  42. implementation 'androidx.appcompat:appcompat:1.3.0'
  43. implementation 'com.google.android.material:material:1.4.0'
  44. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  45. testImplementation 'junit:junit:4.13.2'
  46. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  47. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  48. api 'io.reactivex.rxjava2:rxjava:2.2.21'
  49. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
  50. api 'com.squareup.retrofit2:converter-gson:2.9.0'
  51. implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
  52. // configurations.all {
  53. // resolutionStrategy.force 'com.squareup.okhttp3:okhttp:5.0.0-alpha.11'
  54. // }
  55. api 'com.alibaba:fastjson:2.0.18.android'
  56. api 'com.wang.avi:library:2.1.3'
  57. api 'com.github.bumptech.glide:glide:4.13.0'
  58. api 'com.github.lwj1994:Matisse:0.5.3-20220115'
  59. api 'com.github.promeg:tinypinyin:2.0.3'
  60. api 'com.github.promeg:tinypinyin-lexicons-android-cncity:2.0.3'
  61. api 'com.yanzhenjie.recyclerview:x:1.3.2'
  62. api 'com.github.getActivity:XXPermissions:18.5'
  63. api 'com.github.yuzhiqiang1993:zxing:2.2.9'
  64. api 'com.github.maogedadada:SortLetter-Master:1.0.9'
  65. api 'com.google.android.material:material:1.5.0'
  66. api 'com.github.lihangleo2:ShadowLayout:3.3.3'
  67. implementation 'com.alibaba:arouter-api:1.5.2'
  68. //openIM sdk
  69. // api 'io.openim:android-sdk:3.0.0-beta03@aar'
  70. // api 'io.openim:core-sdk:3.2.0-alpha.0-e-1.0.0@aar'
  71. implementation 'com.google.code.gson:gson:2.9.1'
  72. api 'com.contrarywind:Android-PickerView:4.1.9'
  73. api 'com.github.AurelionX:WaterMarkView:1.1.2'
  74. api 'org.raphets:roundimageview:1.2.0'
  75. //https://github.com/simonebortolin/FlowLayoutManager
  76. api 'com.github.simonebortolin:FlowLayoutManager:1.8.0'
  77. api "com.vanniktech:emoji-android:0.16.0"
  78. api "com.vanniktech:emoji-google-android:0.16.0"
  79. api 'com.liulishuo.okdownload:okdownload:1.0.7'
  80. api 'com.liulishuo.okdownload:sqlite:1.0.7'
  81. api 'q.rorbin:badgeview:1.1.3'
  82. api 'com.tencent.bugly:crashreport:latest.release'
  83. api 'com.github.MZCretin:AutoUpdateProject:latest.release'
  84. api 'com.github.ajalt:timberkt:1.5.1'
  85. api 'com.blankj:utilcodex:1.31.1'
  86. }