build.gradle 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion versions.compileSdk
  4. buildToolsVersion versions.buildTools
  5. defaultConfig {
  6. minSdkVersion versions.minSdk
  7. targetSdkVersion versions.targetSdk
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. consumerProguardFiles 'consumer-rules.pro'
  12. }
  13. buildTypes {
  14. debug {
  15. minifyEnabled false
  16. buildConfigField("boolean", "IS_DEBUG", 'true')
  17. }
  18. release {
  19. minifyEnabled false
  20. buildConfigField("boolean", "IS_DEBUG", 'false')
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. }
  25. dependencies {
  26. implementation fileTree(dir: 'libs', include: ['*.jar'])
  27. testImplementation 'junit:junit:4.12'
  28. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  29. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  30. api "androidx.core:core:1.4.0-alpha01"
  31. api 'androidx.appcompat:appcompat:1.3.0-alpha01'
  32. api 'com.google.android.material:material:1.1.0'
  33. api 'androidx.vectordrawable:vectordrawable:1.1.0'
  34. api 'androidx.navigation:navigation-fragment:2.2.2'
  35. api 'androidx.navigation:navigation-ui:2.2.2'
  36. api 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  37. // 带行号的Log
  38. api 'com.github.zhaokaiqiang.klog:library:1.6.0'
  39. // 查看内存泄露
  40. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.1'
  41. // 防止Retrofit内存泄露
  42. api 'com.trello.rxlifecycle3:rxlifecycle:3.1.0'
  43. api 'com.trello.rxlifecycle3:rxlifecycle-android:3.1.0'
  44. api 'com.trello.rxlifecycle3:rxlifecycle-components:3.1.0'
  45. // 漂亮的TabLayout
  46. api 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar'
  47. // Glide加载图片
  48. api 'com.github.bumptech.glide:glide:4.11.0'
  49. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  50. // 适配器
  51. api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.50'
  52. }