build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. javaCompileOptions {
  13. annotationProcessorOptions {
  14. arguments = [AROUTER_MODULE_NAME: project.getName()]
  15. }
  16. }
  17. }
  18. buildTypes {
  19. release {
  20. consumerProguardFiles 'proguard-rules.pro'
  21. }
  22. }
  23. //.so文件引用
  24. sourceSets {
  25. main {
  26. jniLibs.srcDirs = ['libs']
  27. }
  28. }
  29. buildFeatures {
  30. dataBinding = true
  31. }
  32. }
  33. repositories {
  34. flatDir {
  35. dirs 'libs', '../libs'
  36. }
  37. }
  38. dependencies {
  39. implementation fileTree(include: ['*.jar'], dir: 'libs')
  40. implementation 'androidx.appcompat:appcompat:1.3.1'
  41. testImplementation 'junit:junit:4.12'
  42. androidTestImplementation 'androidx.test:runner:1.2.0'
  43. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  44. annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
  45. api 'com.alibaba:arouter-api:1.5.2'
  46. api project(':KlcLiveCloud')
  47. api project(':KlcUtils')
  48. api project(':KlcBeauty')
  49. api project(':KlcAdvance')
  50. }