build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android-extensions'
  3. apply plugin: 'kotlin-kapt'
  4. apply plugin: 'org.jetbrains.kotlin.android'
  5. kapt {
  6. arguments {
  7. arg("AROUTER_MODULE_NAME", project.getName())
  8. // 是否生成路由文档,"enable":生成文档,其他字符串不生成路由文档
  9. arg("AROUTER_GENERATE_DOC", "enable")
  10. }
  11. }
  12. android {
  13. compileSdkVersion rootProject.ext.android['compileSdkVersion']
  14. defaultConfig {
  15. namespace 'com.daya.accompanysdk'
  16. minSdkVersion rootProject.ext.android.minSdkVersion
  17. targetSdkVersion rootProject.ext.android.targetSdkVersion
  18. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  19. consumerProguardFiles "consumer-rules.pro"
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. }
  32. dependencies {
  33. implementation 'androidx.appcompat:appcompat:1.3.0'
  34. implementation 'com.google.android.material:material:1.4.0'
  35. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  36. testImplementation 'junit:junit:4.13.2'
  37. compileOnly fileTree(dir: 'libs', include: ['*.jar','*.aar'])
  38. implementation project(':BaseLibrary')
  39. implementation project(':usercenter')
  40. implementation 'com.airbnb.android:lottie:5.0.3'
  41. }