build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'kotlin-kapt'
  5. }
  6. android {
  7. compileSdk 31
  8. defaultConfig {
  9. minSdk 21
  10. targetSdk 27
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles "consumer-rules.pro"
  13. kapt {
  14. arguments {
  15. arg("AROUTER_MODULE_NAME", project.getName())
  16. }
  17. }
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility JavaVersion.VERSION_1_8
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. }
  29. kotlinOptions {
  30. jvmTarget = '1.8'
  31. }
  32. viewBinding {
  33. enabled = true
  34. }
  35. }
  36. dependencies {
  37. implementation project(path: ':libBase')
  38. implementation project(path: ':BusinessRouter')
  39. implementation 'androidx.appcompat:appcompat:1.3.0'
  40. implementation 'com.google.android.material:material:1.4.0'
  41. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  42. kapt 'com.alibaba:arouter-compiler:1.5.1'
  43. }