build.gradle 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. implementation project(':accompanySDK')
  57. // api project(':tuicallkit')
  58. //ARouter
  59. annotationProcessor("com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version")
  60. implementation 'com.alibaba:arouter-api:1.5.2'
  61. kapt 'com.alibaba:arouter-compiler:1.5.2'
  62. }