build.gradle 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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.5.0-alpha05"
  31. //api 'androidx.appcompat:appcompat:1.3.0-alpha02'
  32. //api 'com.google.android.material:material:1.2.1'
  33. //api 'androidx.vectordrawable:vectordrawable:1.1.0'
  34. //api 'androidx.navigation:navigation-fragment:2.3.1'
  35. //api 'androidx.navigation:navigation-ui:2.3.1'
  36. //api 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  37. api 'androidx.appcompat:appcompat:1.3.0-alpha02'
  38. // 防止Retrofit内存泄露
  39. api 'com.trello.rxlifecycle3:rxlifecycle:3.1.0'
  40. api 'com.trello.rxlifecycle3:rxlifecycle-android:3.1.0'
  41. api 'com.trello.rxlifecycle3:rxlifecycle-components:3.1.0'
  42. // 带行号的Log
  43. api 'com.github.zhaokaiqiang.klog:library:1.6.0'
  44. // 查看内存泄露
  45. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.1'
  46. // 漂亮的TabLayout
  47. api 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar'
  48. // Glide加载图片
  49. api 'com.github.bumptech.glide:glide:4.11.0'
  50. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  51. // guava
  52. api("com.google.guava:guava:30.0-android")
  53. // 适配器
  54. //api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.50'
  55. // 动态代理
  56. //api group: 'cglib', name: 'cglib', version: '3.3.0'
  57. }