build.gradle 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'kotlin-kapt'
  5. android {
  6. compileSdkVersion 29
  7. buildToolsVersion "29.0.3"
  8. buildFeatures{
  9. dataBinding=true
  10. }
  11. defaultConfig {
  12. minSdkVersion 21
  13. targetSdkVersion 29
  14. versionCode 13
  15. versionName "1.0"
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. consumerProguardFiles 'consumer-rules.pro'
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility = "1.8"
  27. targetCompatibility = "1.8"
  28. }
  29. }
  30. dependencies {
  31. implementation fileTree(dir: 'libs', include: ['*.jar'])
  32. implementation project(path: ':sparklib')
  33. implementation 'androidx.appcompat:appcompat:1.2.0'
  34. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  35. implementation 'com.google.android.material:material:1.2.0'
  36. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  37. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  38. implementation 'androidx.navigation:navigation-fragment:2.3.0'
  39. implementation 'androidx.navigation:navigation-ui:2.3.0'
  40. testImplementation 'junit:junit:4.12'
  41. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  42. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  43. //androidx项目XUI
  44. implementation 'com.github.xuexiangjys:XUI:1.1.4'
  45. implementation 'com.github.xuexiangjys:XUI:1.1.4'
  46. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  47. implementation 'com.google.android.material:material:1.3.0-alpha02'
  48. implementation 'com.github.bumptech.glide:glide:4.11.0'
  49. //Butterknife
  50. implementation 'com.jakewharton:butterknife:10.2.1'
  51. implementation 'com.yanzhenjie.nohttp:nohttp:1.1.11'
  52. implementation 'com.github.xuexiangjys.SmartRefreshLayout:refresh-header:1.1.5'
  53. implementation 'com.github.xuexiangjys.SmartRefreshLayout:refresh-layout:1.1.5'
  54. //列表侧滑菜单
  55. implementation 'com.yanzhenjie.recyclerview:support:1.3.2'
  56. }