build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 29
  4. buildToolsVersion "29.0.3"
  5. defaultConfig {
  6. minSdkVersion 21
  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. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. debug {
  24. minifyEnabled false
  25. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  26. }
  27. }
  28. buildFeatures {
  29. dataBinding = true
  30. }
  31. }
  32. dependencies {
  33. implementation fileTree(dir: 'libs', include: ['*.jar'])
  34. implementation 'androidx.appcompat:appcompat:1.3.1'
  35. implementation 'com.google.android.material:material:1.1.0'
  36. testImplementation 'junit:junit:4.12'
  37. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  38. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  39. annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
  40. api 'com.alibaba:arouter-api:1.5.2'
  41. implementation project(':KlcCommonView')
  42. implementation project(':KlcVideoCommon')
  43. def room_version = "2.4.2"
  44. implementation "androidx.room:room-runtime:$room_version"
  45. annotationProcessor "androidx.room:room-compiler:$room_version"
  46. }