build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. apply plugin: 'kotlin-android'
  5. apply plugin: 'kotlin-kapt'
  6. kapt {
  7. arguments {
  8. arg("AROUTER_MODULE_NAME", project.getName())
  9. // 是否生成路由文档,"enable":生成文档,其他字符串不生成路由文档
  10. arg("AROUTER_GENERATE_DOC", "enable")
  11. }
  12. }
  13. android {
  14. compileSdkVersion rootProject.ext.android.compileSdkVersion
  15. defaultConfig {
  16. minSdkVersion rootProject.ext.android.minSdkVersion
  17. targetSdkVersion rootProject.ext.android.targetSdkVersion
  18. versionCode rootProject.ext.android.versionCode
  19. versionName rootProject.ext.android.versionName
  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. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_1_8
  31. targetCompatibility JavaVersion.VERSION_1_8
  32. }
  33. buildFeatures{
  34. viewBinding = true
  35. }
  36. }
  37. dependencies {
  38. implementation 'androidx.appcompat:appcompat:1.3.0'
  39. implementation 'com.google.android.material:material:1.4.0'
  40. testImplementation 'junit:junit:4.13.2'
  41. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  42. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  43. implementation project(':BaseLibrary')
  44. implementation project(':rong_im:kit')
  45. implementation project(':usercenter')
  46. implementation project(path: ':live_teaching')
  47. //ARouter
  48. kapt 'com.alibaba:arouter-compiler:1.5.2'
  49. }