build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. apply plugin: 'kotlin-android'
  5. android {
  6. compileSdkVersion 30
  7. buildToolsVersion "30.0.3"
  8. defaultConfig {
  9. minSdkVersion 21
  10. targetSdkVersion 30
  11. versionCode 1
  12. versionName "1.0"
  13. renderscriptSupportModeEnabled false
  14. renderscriptTargetApi 30
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. }
  20. preRelease {
  21. minifyEnabled false
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. // 主题资源文件夹
  29. sourceSets {
  30. main {
  31. res.srcDirs += "src/main/res-minimalistui"
  32. res.srcDirs += "src/main/res-light"
  33. res.srcDirs += "src/main/res-lively"
  34. res.srcDirs += "src/main/res-serious"
  35. }
  36. }
  37. }
  38. afterEvaluate {
  39. generateReleaseBuildConfig.enabled = false
  40. generateDebugBuildConfig.enabled = false
  41. }
  42. dependencies {
  43. implementation 'androidx.appcompat:appcompat:1.3.0'
  44. implementation 'com.google.android.material:material:1.3.0'
  45. implementation 'com.github.bumptech.glide:glide:4.12.0'
  46. implementation 'com.google.code.gson:gson:2.9.1'
  47. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  48. implementation 'androidx.datastore:datastore-preferences:1.0.0'
  49. implementation 'androidx.datastore:datastore-preferences-rxjava3:1.0.0'
  50. implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
  51. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$rootProject.ext.android.kotlin_version"
  52. api project(':timcommon')
  53. }