学习机 新
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3KB

  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. }
  18. compileOptions {
  19. sourceCompatibility JavaVersion.VERSION_1_8
  20. targetCompatibility JavaVersion.VERSION_1_8
  21. }
  22. // 主题资源文件夹
  23. sourceSets {
  24. main {
  25. res.srcDirs += "src/main/res-light"
  26. res.srcDirs += "src/main/res-lively"
  27. res.srcDirs += "src/main/res-serious"
  28. }
  29. }
  30. }
  31. dependencies {
  32. api fileTree(include: ['*.jar','*.aar'], dir: '../../../../tuikit/android/libs')
  33. implementation 'androidx.appcompat:appcompat:1.3.1'
  34. implementation 'com.github.bumptech.glide:glide:4.12.0'
  35. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  36. def projects = this.rootProject.getAllprojects().stream().map{project->project.name}.collect()
  37. println "all projects : {$projects}"
  38. if (projects.contains("imsdk-plus")) {
  39. api project(':imsdk-plus')
  40. } else {
  41. api rootProject.getProperties().containsKey("imSdk") ? rootProject.ext.imSdk : "com.tencent.imsdk:imsdk-plus:7.1.3925"
  42. }
  43. }