build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. }
  16. compileOptions {
  17. sourceCompatibility JavaVersion.VERSION_1_8
  18. targetCompatibility JavaVersion.VERSION_1_8
  19. }
  20. }
  21. dependencies {
  22. api fileTree(dir: 'libs', include: ['*.jar'])
  23. api 'androidx.appcompat:appcompat:1.3.1'
  24. api 'com.google.android.material:material:1.4.0'
  25. api 'androidx.recyclerview:recyclerview:1.2.1'
  26. api 'androidx.constraintlayout:constraintlayout:1.1.3'
  27. api "com.github.bumptech.glide:glide:4.12.0"
  28. def projects = this.rootProject.getAllprojects().stream().map { project -> project.name }.collect()
  29. println "all projects : {$projects}"
  30. if (projects.contains("tuicore")) {
  31. api project(':tuicore')
  32. } else {
  33. api "com.tencent.imsdk:imsdk-plus:7.3.4358 "
  34. api "com.tencent.liteav.tuikit:tuicore:1.1.24"
  35. }
  36. if (projects.contains("tuicallengine")) {
  37. api project(':tuicallengine')
  38. } else {
  39. api "com.google.code.gson:gson:2.9.1"
  40. api "com.tencent.liteav:LiteAVSDK_TRTC:11.1.0.13111"
  41. api 'com.tencent.liteav.tuikit:tuicallengine:1.7.0.460'
  42. }
  43. }