build.gradle 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 29
  4. buildToolsVersion "29.0.3"
  5. defaultConfig {
  6. minSdkVersion 19
  7. targetSdkVersion 29
  8. versionCode 1
  9. versionName "1.0"
  10. multiDexEnabled true
  11. javaCompileOptions {
  12. annotationProcessorOptions {
  13. arguments = [AROUTER_MODULE_NAME: project.getName()]
  14. }
  15. }
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. buildFeatures {
  24. dataBinding = true
  25. }
  26. }
  27. dependencies {
  28. implementation fileTree(dir: 'libs', include: ['*.jar'])
  29. implementation 'androidx.appcompat:appcompat:1.3.1'
  30. testImplementation 'junit:junit:4.12'
  31. androidTestImplementation 'androidx.test:runner:1.2.0'
  32. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  33. implementation project(':KlcCommonView')
  34. annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
  35. api 'com.alibaba:arouter-api:1.5.2'
  36. }