build.gradle 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. id 'kotlin-kapt'
  5. }
  6. android {
  7. compileSdkVersion 30
  8. buildToolsVersion "30.0.3"
  9. defaultConfig {
  10. minSdkVersion 21
  11. targetSdkVersion 30
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. consumerProguardFiles "consumer-rules.pro"
  16. kapt {
  17. arguments {
  18. arg("AROUTER_MODULE_NAME", project.getName())
  19. }
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled false
  25. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  26. }
  27. }
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_1_8
  30. targetCompatibility JavaVersion.VERSION_1_8
  31. }
  32. kotlinOptions {
  33. jvmTarget = '1.8'
  34. }
  35. buildFeatures{
  36. viewBinding = true
  37. }
  38. }
  39. dependencies {
  40. kapt "com.alibaba:arouter-compiler:1.2.2"
  41. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  42. implementation 'androidx.appcompat:appcompat:1.2.0'
  43. implementation 'androidx.core:core-ktx:1.5.0'
  44. implementation 'com.google.android.material:material:1.3.0'
  45. testImplementation 'junit:junit:4.+'
  46. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  47. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  48. //activity
  49. api "androidx.activity:activity-ktx:1.3.0"
  50. //fragment
  51. api "androidx.fragment:fragment-ktx:1.3.3"
  52. //livedata
  53. api "androidx.lifecycle:lifecycle-livedata-ktx:2.3.1"
  54. //lifecycle
  55. api "androidx.lifecycle:lifecycle-runtime-ktx:2.3.1"
  56. //viewmodel
  57. api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
  58. //协程
  59. api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0"
  60. api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0"
  61. api "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.4"
  62. //arouter
  63. api "com.alibaba:arouter-api:1.5.1"
  64. //retrofit
  65. api "com.squareup.retrofit2:retrofit:2.9.0"
  66. api "com.squareup.okhttp3:okhttp:4.9.1"
  67. //gson
  68. api "com.google.code.gson:gson:2.8.6"
  69. //fastjson
  70. api "com.alibaba:fastjson:1.2.61"
  71. //状态栏工具
  72. api "com.gyf.immersionbar:immersionbar:3.0.0"
  73. //multidex
  74. api "com.android.support:multidex:1.0.3"
  75. //glide
  76. api "com.github.bumptech.glide:glide:4.12.0"
  77. annotationProcessor "com.github.bumptech.glide:compiler:4.12.0"
  78. api "jp.wasabeef:glide-transformations:4.3.0"
  79. //BRVAH
  80. api "com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.44"
  81. //Permission
  82. api 'com.guolindev.permissionx:permissionx:1.5.1'
  83. //banner
  84. api 'io.github.youth5201314:banner:2.2.1'
  85. implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
  86. implementation 'com.github.Zhao-Yan-Yan:MultiStatePage:2.0.2'
  87. api "de.hdodenhof:circleimageview:3.1.0"
  88. api 'top.zibin:Luban:1.1.8'
  89. api 'com.github.HuanTanSheng:EasyPhotos:3.1.3'
  90. //facebook
  91. api 'com.facebook.android:facebook-login:8.2.0'
  92. //im
  93. api 'com.tencent.imsdk:imsdk-plus:5.5.892'
  94. //agora
  95. api 'io.agora.rtc:full-sdk:3.5.0'
  96. //loadingview
  97. api 'com.ldoublem.loadingview:loadingviewlib:1.0'
  98. //抓包
  99. debugImplementation "com.readystatesoftware.chuck:library:1.1.0"
  100. releaseCompile "com.readystatesoftware.chuck:library-no-op:1.1.0"
  101. }