build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. renderscriptSupportModeEnabled false
  13. renderscriptTargetApi 30
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled true
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. preRelease {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility JavaVersion.VERSION_1_8
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. }
  29. // 主题资源文件夹
  30. sourceSets {
  31. main {
  32. res.srcDirs += "src/main/res-minimalistui"
  33. res.srcDirs += "src/main/res-light"
  34. res.srcDirs += "src/main/res-lively"
  35. res.srcDirs += "src/main/res-serious"
  36. }
  37. }
  38. }
  39. afterEvaluate {
  40. generateReleaseBuildConfig.enabled = false
  41. generateDebugBuildConfig.enabled = false
  42. }
  43. dependencies {
  44. implementation 'androidx.appcompat:appcompat:1.3.0'
  45. implementation 'com.google.android.material:material:1.3.0'
  46. implementation 'com.github.bumptech.glide:glide:4.12.0'
  47. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  48. api project(':tuichat')
  49. }