build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. // id 'kotlin-parcelize'
  5. id 'kotlin-android'
  6. // id 'kotlin-android-extensions'
  7. }
  8. apply plugin: 'kotlin-kapt'
  9. apply plugin: 'kotlin-android-extensions'
  10. kapt {
  11. arguments {
  12. arg("AROUTER_MODULE_NAME", project.getName())
  13. }
  14. }
  15. android {
  16. compileSdkVersion rootProject.ext.android.compileSdkVersion
  17. defaultConfig {
  18. minSdkVersion rootProject.ext.android.minSdkVersion
  19. targetSdkVersion rootProject.ext.android.targetSdkVersion
  20. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  21. consumerProguardFiles "consumer-rules.pro"
  22. }
  23. buildTypes {
  24. release {
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  27. }
  28. preRelease {
  29. minifyEnabled false
  30. debuggable true
  31. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  32. }
  33. }
  34. compileOptions {
  35. sourceCompatibility JavaVersion.VERSION_1_8
  36. targetCompatibility JavaVersion.VERSION_1_8
  37. }
  38. buildFeatures {
  39. viewBinding = true
  40. }
  41. }
  42. dependencies {
  43. implementation 'androidx.appcompat:appcompat:1.3.0'
  44. implementation 'com.google.android.material:material:1.4.0'
  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. implementation project(':BaseLibrary')
  49. implementation project(':usercenter')
  50. api project(':tuiconversation')
  51. api project(':tuichat')
  52. api project(':tuisearch')
  53. api project(':tuigroup')
  54. api project(':tuiofflinepush')
  55. api project(':tuicontact')
  56. // api project(':tuicallkit')
  57. //ARouter
  58. annotationProcessor("com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version")
  59. implementation 'com.alibaba:arouter-api:1.5.2'
  60. kapt 'com.alibaba:arouter-compiler:1.5.2'
  61. }