build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. compileSdkVersion 28
  7. buildToolsVersion "28.0.3"
  8. defaultConfig {
  9. versionName "1.0"
  10. versionCode 1
  11. minSdkVersion 19
  12. targetSdkVersion 26
  13. }
  14. buildTypes {
  15. release {
  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. kotlinOptions {
  25. jvmTarget = '1.8'
  26. }
  27. }
  28. dependencies {
  29. implementation 'androidx.core:core-ktx:1.6.0'
  30. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1'
  31. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.1'
  32. api 'androidx.appcompat:appcompat:1.3.1'
  33. api 'androidx.recyclerview:recyclerview:1.2.1'
  34. api 'androidx.constraintlayout:constraintlayout:1.1.3'
  35. api 'com.github.bumptech.glide:glide:4.12.0'
  36. def projects = this.rootProject.getAllprojects().stream().map { project -> project.name }.collect()
  37. println "all projects : {$projects}"
  38. if (projects.contains("tuicore")) {
  39. api project(':tuicore')
  40. } else {
  41. api "com.tencent.imsdk:imsdk-plus:7.3.4358"
  42. api "com.tencent.liteav.tuikit:tuicore:1.1.24"
  43. }
  44. if (projects.contains("tuicallengine")) {
  45. api project(':tuicallengine')
  46. } else {
  47. api "com.google.code.gson:gson:2.9.1"
  48. api "com.tencent.liteav:LiteAVSDK_TRTC:11.1.0.13111"
  49. api 'com.tencent.liteav.tuikit:tuicallengine:1.7.0.460'
  50. }
  51. }