build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion 30
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. minSdkVersion 16
  9. targetSdkVersion 30
  10. versionCode 1
  11. versionName "1.0"
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. }
  17. preRelease {
  18. minifyEnabled false
  19. }
  20. }
  21. compileOptions {
  22. sourceCompatibility JavaVersion.VERSION_1_8
  23. targetCompatibility JavaVersion.VERSION_1_8
  24. }
  25. // 主题资源文件夹
  26. sourceSets {
  27. main {
  28. res.srcDirs += "src/main/res-light"
  29. res.srcDirs += "src/main/res-lively"
  30. res.srcDirs += "src/main/res-serious"
  31. }
  32. }
  33. }
  34. dependencies {
  35. api fileTree(include: ['*.jar', '*.aar'], dir: '../../../../tuikit/android/libs')
  36. implementation 'androidx.appcompat:appcompat:1.3.1'
  37. implementation 'com.github.bumptech.glide:glide:4.12.0'
  38. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  39. def projects = this.rootProject.getAllprojects().stream().map { project -> project.name }.collect()
  40. println "all projects : {$projects}"
  41. if (projects.contains("imsdk-plus")) {
  42. api project(':imsdk-plus')
  43. } else {
  44. api rootProject.getProperties().containsKey("imSdk") ? rootProject.ext.imSdk : "com.tencent.imsdk:imsdk-plus:7.3.4358"
  45. }
  46. }