build.gradle 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. preRelease {
  36. minifyEnabled false
  37. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  38. }
  39. }
  40. compileOptions {
  41. sourceCompatibility JavaVersion.VERSION_1_8
  42. targetCompatibility JavaVersion.VERSION_1_8
  43. }
  44. buildFeatures {
  45. viewBinding = true
  46. }
  47. }
  48. dependencies {
  49. implementation 'androidx.appcompat:appcompat:1.3.0'
  50. implementation 'com.google.android.material:material:1.4.0'
  51. testImplementation 'junit:junit:4.13.2'
  52. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  53. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  54. implementation 'androidx.lifecycle:lifecycle-livedata:2.1.0-alpha04'
  55. implementation 'androidx.lifecycle:lifecycle-viewmodel:2.1.0-alpha04'
  56. implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
  57. implementation project(path: ':tclive')
  58. implementation project(path: ':chatModule')
  59. implementation project(path: ':BaseLibrary')
  60. implementation project(path: ':usercenter')
  61. // implementation project(path: ':live_teaching')
  62. implementation 'com.h6ah4i.android.widget.verticalseekbar:verticalseekbar:1.0.0'
  63. //ARouter
  64. annotationProcessor("com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version")
  65. implementation 'com.alibaba:arouter-api:1.5.2'
  66. kapt 'com.alibaba:arouter-compiler:1.5.2'
  67. compileOnly files('libs/LiteAVSDK_Professional_10.9.0.13102.aar')
  68. }