build.gradle 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. id 'kotlin-kapt'
  5. }
  6. android {
  7. compileSdkVersion 31
  8. buildToolsVersion "31.0.0"
  9. defaultConfig {
  10. minSdkVersion 21
  11. targetSdkVersion 31
  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. api "androidx.constraintlayout:constraintlayout:2.1.1"
  49. //activity
  50. api "androidx.activity:activity-ktx:1.3.0"
  51. //fragment
  52. api "androidx.fragment:fragment-ktx:1.3.3"
  53. //livedata
  54. api "androidx.lifecycle:lifecycle-livedata-ktx:2.3.1"
  55. //lifecycle
  56. api "androidx.lifecycle:lifecycle-runtime-ktx:2.3.1"
  57. //viewmodel
  58. api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
  59. //协程
  60. api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0"
  61. api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0"
  62. api "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.4"
  63. //arouter
  64. api "com.alibaba:arouter-api:1.5.1"
  65. //retrofit
  66. api "com.squareup.retrofit2:retrofit:2.9.0"
  67. api "com.squareup.okhttp3:okhttp:4.9.1"
  68. //gson
  69. api "com.google.code.gson:gson:2.8.6"
  70. //fastjson
  71. api "com.alibaba:fastjson:1.2.61"
  72. //状态栏工具
  73. api "com.gyf.immersionbar:immersionbar:3.0.0"
  74. //multidex
  75. api "com.android.support:multidex:1.0.3"
  76. //glide
  77. api "com.github.bumptech.glide:glide:4.12.0"
  78. annotationProcessor "com.github.bumptech.glide:compiler:4.12.0"
  79. api "jp.wasabeef:glide-transformations:4.3.0"
  80. api 'jp.co.cyberagent.android:gpuimage:2.1.0'
  81. api "com.github.zjupure:webpdecoder:2.0.4.12.0"
  82. //BRVAH
  83. api "com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.44"
  84. //Permission
  85. api 'com.guolindev.permissionx:permissionx:1.5.1'
  86. //banner
  87. api 'io.github.youth5201314:banner:2.2.2'
  88. implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
  89. api 'com.github.Zhao-Yan-Yan:MultiStatePage:2.0.2'
  90. api "de.hdodenhof:circleimageview:3.1.0"
  91. api 'top.zibin:Luban:1.1.8'
  92. api 'com.github.HuanTanSheng:EasyPhotos:3.1.3'
  93. //facebook`
  94. api 'com.facebook.android:facebook-android-sdk:14.1.0'
  95. //google
  96. api 'com.google.android.gms:play-services-auth:19.0.0'
  97. //im
  98. api 'com.tencent.imsdk:imsdk-plus:5.9.1872'
  99. //agora
  100. api "io.agora.rtc:full-rtc-basic:3.7.0.2"
  101. //支付
  102. api 'com.android.billingclient:billing-ktx:4.1.0'
  103. //抓包
  104. debugImplementation "com.github.chuckerteam.chucker:library:3.5.2"
  105. releaseImplementation "com.github.chuckerteam.chucker:library-no-op:3.5.2"
  106. //国家选择
  107. api project(path: ':lib_country_picker')
  108. //滑动栏
  109. api 'com.github.hackware1993:MagicIndicator:1.7.0'
  110. //svgplayer
  111. api 'com.github.yyued:SVGAPlayer-Android:2.6.1'
  112. //屏幕适配
  113. implementation 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1'
  114. //firebase
  115. api platform('com.google.firebase:firebase-bom:29.0.1')
  116. api 'com.google.firebase:firebase-analytics-ktx'
  117. api 'com.google.firebase:firebase-crashlytics-ktx'
  118. api 'com.google.firebase:firebase-auth-ktx'
  119. api 'com.google.firebase:firebase-firestore-ktx'
  120. api 'com.google.firebase:firebase-perf-ktx'
  121. //jsoup
  122. api 'org.jsoup:jsoup:1.12.1'
  123. //适配阿拉伯语
  124. api 'com.duolingo.open:rtl-viewpager:2.0.0'
  125. //lottie
  126. api 'com.airbnb.android:lottie:4.0.0'
  127. }