build.gradle 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 29
  4. buildToolsVersion "29.0.3"
  5. defaultConfig {
  6. minSdkVersion 19
  7. targetSdkVersion 29
  8. versionCode 20210813
  9. versionName "5.1.4.1"
  10. buildConfigField "String", "IMSDK_VER", "${IMSDK_VER}"
  11. vectorDrawables.useSupportLibrary = true
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. consumerProguardFiles 'consumer-rules.pro'
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. debug{
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. preRelease{
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  27. }
  28. }
  29. sourceSets {
  30. main {
  31. jniLibs.srcDirs = ['libs']
  32. }
  33. }
  34. }
  35. dependencies {
  36. api fileTree(include: ['*.jar'], dir: 'libs')
  37. api project(':rong_im:im_lib')
  38. implementation project(':BaseLibrary')
  39. implementation project(':usercenter')
  40. //基础布局
  41. implementation 'androidx.appcompat:appcompat:1.2.0'
  42. implementation 'androidx.fragment:fragment:1.2.5'
  43. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  44. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  45. api 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  46. api "androidx.viewpager2:viewpager2:1.1.0-alpha01"
  47. // content 协议头处理
  48. api "androidx.documentfile:documentfile:1.0.1"
  49. //本地广播
  50. api 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
  51. //数据存储
  52. api "androidx.room:room-runtime:2.2.5"
  53. annotationProcessor "androidx.room:room-compiler:2.2.5"
  54. //图片加载
  55. implementation 'com.github.bumptech.glide:glide:4.11.0'
  56. testImplementation 'junit:junit:4.12'
  57. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  58. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  59. }