build.gradle 2.3 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 32
  17. defaultConfig {
  18. minSdkVersion rootProject.ext.android.minSdkVersion
  19. targetSdkVersion rootProject.ext.android.targetSdkVersion
  20. versionCode rootProject.ext.android.versionCode
  21. versionName rootProject.ext.android.versionName
  22. javaCompileOptions {
  23. annotationProcessorOptions {
  24. arguments = [AROUTER_MODULE_NAME: project.getName()]
  25. }
  26. }
  27. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  28. consumerProguardFiles "consumer-rules.pro"
  29. }
  30. buildTypes {
  31. release {
  32. minifyEnabled false
  33. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  34. }
  35. }
  36. compileOptions {
  37. sourceCompatibility JavaVersion.VERSION_1_8
  38. targetCompatibility JavaVersion.VERSION_1_8
  39. }
  40. buildFeatures {
  41. viewBinding = true
  42. }
  43. }
  44. dependencies {
  45. implementation 'androidx.appcompat:appcompat:1.3.0'
  46. implementation 'com.google.android.material:material:1.4.0'
  47. testImplementation 'junit:junit:4.13.2'
  48. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  49. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  50. implementation 'androidx.lifecycle:lifecycle-livedata:2.1.0-alpha04'
  51. implementation 'androidx.lifecycle:lifecycle-viewmodel:2.1.0-alpha04'
  52. implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
  53. implementation project(path: ':tclive')
  54. implementation project(path: ':chatModule')
  55. implementation project(path: ':BaseLibrary')
  56. implementation project(path: ':usercenter')
  57. // implementation project(path: ':live_teaching')
  58. implementation 'com.h6ah4i.android.widget.verticalseekbar:verticalseekbar:1.0.0'
  59. //ARouter
  60. annotationProcessor("com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version")
  61. implementation 'com.alibaba:arouter-api:1.5.2'
  62. kapt 'com.alibaba:arouter-compiler:1.5.2'
  63. }