build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 31
  4. defaultConfig {
  5. versionName "1.0"
  6. versionCode 1
  7. minSdkVersion 19
  8. targetSdkVersion 26
  9. }
  10. buildTypes {
  11. release {
  12. minifyEnabled false
  13. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  14. }
  15. preRelease {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. compileOptions {
  21. sourceCompatibility JavaVersion.VERSION_1_8
  22. targetCompatibility JavaVersion.VERSION_1_8
  23. }
  24. }
  25. dependencies {
  26. api fileTree(dir: 'libs', include: ['*.jar'])
  27. api 'androidx.appcompat:appcompat:1.3.1'
  28. api 'com.google.android.material:material:1.4.0'
  29. api 'androidx.recyclerview:recyclerview:1.2.1'
  30. api 'androidx.constraintlayout:constraintlayout:1.1.3'
  31. api "com.github.bumptech.glide:glide:4.12.0"
  32. def projects = this.rootProject.getAllprojects().stream().map { project -> project.name }.collect()
  33. println "all projects : {$projects}"
  34. if (projects.contains("tuicore")) {
  35. api project(':tuicore')
  36. } else {
  37. api "com.tencent.imsdk:imsdk-plus:7.3.4358 "
  38. api "com.tencent.liteav.tuikit:tuicore:1.1.24"
  39. }
  40. if (projects.contains("tuicallengine")) {
  41. api project(':tuicallengine')
  42. } else {
  43. api "com.google.code.gson:gson:2.9.1"
  44. api "com.tencent.liteav:LiteAVSDK_TRTC:11.1.0.13111"
  45. api 'com.tencent.liteav.tuikit:tuicallengine:1.7.0.460'
  46. }
  47. }