build.gradle 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. api 'jp.co.cyberagent.android:gpuimage:2.1.0'
  80. //BRVAH
  81. api "com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.44"
  82. //Permission
  83. api 'com.guolindev.permissionx:permissionx:1.5.1'
  84. //banner
  85. api 'io.github.youth5201314:banner:2.2.2'
  86. implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
  87. api 'com.github.Zhao-Yan-Yan:MultiStatePage:2.0.2'
  88. api "de.hdodenhof:circleimageview:3.1.0"
  89. api 'top.zibin:Luban:1.1.8'
  90. api 'com.github.HuanTanSheng:EasyPhotos:3.1.3'
  91. //facebook
  92. api 'com.facebook.android:facebook-android-sdk:[8,9)'
  93. //google
  94. api 'com.google.android.gms:play-services-auth:19.0.0'
  95. //im
  96. api 'com.tencent.imsdk:imsdk-plus:5.5.892'
  97. //agora
  98. api 'io.agora.rtc:full-sdk:3.5.0'
  99. //支付
  100. api 'com.android.billingclient:billing:3.0.3'
  101. //抓包
  102. debugImplementation "com.readystatesoftware.chuck:library:1.1.0"
  103. releaseCompile "com.readystatesoftware.chuck:library-no-op:1.1.0"
  104. //国家选择
  105. api project(path: ':lib_country_picker')
  106. //滑动栏
  107. api 'com.github.hackware1993:MagicIndicator:1.7.0'
  108. //svgplayer
  109. api 'com.github.yyued:SVGAPlayer-Android:2.5.12'
  110. //#firebase
  111. //firebase
  112. api platform('com.google.firebase:firebase-bom:29.0.1')
  113. api 'com.google.firebase:firebase-analytics-ktx'
  114. api 'com.google.firebase:firebase-crashlytics-ktx'
  115. api 'com.google.firebase:firebase-auth-ktx'
  116. api 'com.google.firebase:firebase-firestore-ktx'
  117. api 'com.google.firebase:firebase-perf-ktx'
  118. }