build.gradle 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.jakewharton.butterknife'
  3. android {
  4. compileSdkVersion 30
  5. buildToolsVersion "30.0.2"
  6. defaultConfig {
  7. applicationId "com.cloth.clothcashier"
  8. minSdkVersion 21
  9. targetSdkVersion 30
  10. versionCode 4
  11. versionName "1.0.4"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. ndk {
  14. abiFilters("armeabi", "armeabi-v7a", "arm64-v8a")
  15. }
  16. multiDexEnabled true
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. dataBinding {
  25. enabled = true
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. }
  32. dependencies {
  33. implementation fileTree(dir: "libs", include: ["*.jar"])
  34. implementation 'androidx.appcompat:appcompat:1.3.0'
  35. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  36. implementation 'com.google.android.material:material:1.2.0'
  37. implementation 'androidx.annotation:annotation:1.1.0'
  38. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  39. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  40. implementation files('libs\\arcsoft_face.jar')
  41. implementation 'org.jetbrains:annotations:15.0'
  42. testImplementation 'junit:junit:4.12'
  43. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  44. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  45. // implementation 'com.github.goldze:MVVMHabit:4.0.0'
  46. implementation "android.arch.lifecycle:common-java8:1.1.1"
  47. //logger
  48. implementation 'com.orhanobut:logger:2.2.0'
  49. // image load lib
  50. implementation 'com.github.bumptech.glide:glide:4.9.0'
  51. compile 'com.android.support:multidex:1.0.2'
  52. //adapter
  53. compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.6'
  54. //rxjava
  55. compile 'io.reactivex.rxjava2:rxjava:2.2.1'
  56. compile 'io.reactivex.rxjava2:rxandroid:2.1.0'
  57. // compile 'io.reactivex:rxandroid:1.0.1'
  58. //retrofit
  59. compile 'com.squareup.retrofit2:retrofit:2.3.0'
  60. compile 'com.squareup.retrofit2:converter-scalars:2.3.0'
  61. compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
  62. compile 'com.squareup.retrofit2:retrofit-mock:2.3.0'
  63. compile 'com.squareup.retrofit2:converter-gson:2.3.0'
  64. //okhttp
  65. compile 'com.squareup.okhttp3:logging-interceptor:3.8.1'
  66. compile 'com.squareup.okhttp3:okhttp:3.8.1'
  67. //tablayout
  68. compile 'q.rorbin:VerticalTabLayout:1.2.5'
  69. //butterknife
  70. implementation 'com.jakewharton:butterknife:10.1.0'
  71. annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
  72. // annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.0'
  73. // compile 'com.jakewharton:butterknife-annotations:8.8.0'
  74. // compile 'com.jakewharton:butterknife:8.8.0'
  75. // 使用了Androidx
  76. implementation 'com.github.donkingliang:GroupedRecyclerViewAdapter:2.4.1'
  77. //permission
  78. implementation 'com.github.tbruyelle:rxpermissions:0.12'
  79. implementation "io.reactivex.rxjava3:rxjava:3.0.8"
  80. implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
  81. // Glide
  82. implementation "com.github.bumptech.glide:glide:4.9.0"
  83. annotationProcessor "com.github.bumptech.glide:compiler:4.9.0"
  84. // 使用Android support包
  85. //dialog
  86. implementation 'com.github.HanHuoBin:BaseDialog:1.2.0'
  87. implementation 'com.github.donkingliang:GroupedRecyclerViewAdapter:2.4.1-support'
  88. //server
  89. implementation 'com.yanzhenjie.andserver:api:2.1.8'
  90. annotationProcessor 'com.yanzhenjie.andserver:processor:2.1.8'
  91. implementation 'org.apache.commons:commons-lang3:3.9'
  92. implementation 'com.teprinciple:updateapputils:2.3.0'
  93. }