build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. preRelease {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. kotlinOptions {
  29. jvmTarget = '1.8'
  30. }
  31. }
  32. dependencies {
  33. implementation 'androidx.core:core-ktx:1.6.0'
  34. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1'
  35. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.1'
  36. api 'androidx.appcompat:appcompat:1.3.1'
  37. api 'androidx.recyclerview:recyclerview:1.2.1'
  38. api 'androidx.constraintlayout:constraintlayout:1.1.3'
  39. api 'com.github.bumptech.glide:glide:4.12.0'
  40. def projects = this.rootProject.getAllprojects().stream().map { project -> project.name }.collect()
  41. println "all projects : {$projects}"
  42. if (projects.contains("tuicore")) {
  43. api project(':tuicore')
  44. } else {
  45. api "com.tencent.imsdk:imsdk-plus:7.3.4358"
  46. api "com.tencent.liteav.tuikit:tuicore:1.1.24"
  47. }
  48. if (projects.contains("tuicallengine")) {
  49. api project(':tuicallengine')
  50. } else {
  51. api "com.google.code.gson:gson:2.9.1"
  52. api "com.tencent.liteav:LiteAVSDK_TRTC:11.1.0.13111"
  53. api 'com.tencent.liteav.tuikit:tuicallengine:1.7.0.460'
  54. }
  55. }