build.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. 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. buildFeatures {
  38. viewBinding = true
  39. }
  40. }
  41. dependencies {
  42. implementation 'androidx.appcompat:appcompat:1.3.0'
  43. implementation 'com.google.android.material:material:1.4.0'
  44. testImplementation 'junit:junit:4.13.2'
  45. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  46. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  47. implementation project(':BaseLibrary')
  48. implementation project(':usercenter')
  49. api project(':tuiconversation')
  50. api project(':tuichat')
  51. api project(':tuisearch')
  52. api project(':tuigroup')
  53. api project(':tuiofflinepush')
  54. api project(':tuicontact')
  55. // api project(':tuicallkit')
  56. //ARouter
  57. annotationProcessor("com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version")
  58. implementation 'com.alibaba:arouter-api:1.5.2'
  59. kapt 'com.alibaba:arouter-compiler:1.5.2'
  60. }