build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. debug{
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. }
  32. preRelease{
  33. minifyEnabled false
  34. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  35. }
  36. }
  37. compileOptions {
  38. sourceCompatibility JavaVersion.VERSION_1_8
  39. targetCompatibility JavaVersion.VERSION_1_8
  40. }
  41. buildFeatures{
  42. viewBinding = true
  43. }
  44. }
  45. dependencies {
  46. implementation 'androidx.appcompat:appcompat:1.3.0'
  47. implementation 'com.google.android.material:material:1.4.0'
  48. testImplementation 'junit:junit:4.13.2'
  49. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  50. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  51. implementation project(':BaseLibrary')
  52. implementation project(':rong_im:kit')
  53. implementation project(':usercenter')
  54. implementation project(path: ':live_teaching')
  55. //ARouter
  56. kapt 'com.alibaba:arouter-compiler:1.5.2'
  57. }