build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. }
  21. sourceSets {
  22. main {
  23. jniLibs.srcDirs = ['libs']
  24. }
  25. }
  26. }
  27. dependencies {
  28. api fileTree(include: ['*.jar'], dir: 'libs')
  29. api project(':rong_im:im_lib')
  30. implementation project(':BaseLibrary')
  31. implementation project(':usercenter')
  32. //基础布局
  33. implementation 'androidx.appcompat:appcompat:1.2.0'
  34. implementation 'androidx.fragment:fragment:1.2.5'
  35. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  36. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  37. api 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  38. api "androidx.viewpager2:viewpager2:1.1.0-alpha01"
  39. // content 协议头处理
  40. api "androidx.documentfile:documentfile:1.0.1"
  41. //本地广播
  42. api 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
  43. //数据存储
  44. api "androidx.room:room-runtime:2.2.5"
  45. annotationProcessor "androidx.room:room-compiler:2.2.5"
  46. //图片加载
  47. implementation 'com.github.bumptech.glide:glide:4.11.0'
  48. testImplementation 'junit:junit:4.12'
  49. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  50. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  51. }