build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion 30
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. minSdkVersion 19
  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. afterEvaluate {
  32. generateReleaseBuildConfig.enabled = false
  33. generateDebugBuildConfig.enabled = false
  34. }
  35. dependencies {
  36. /*plugin-build-Begin
  37. compileOnly fileTree(include: ['*.jar','*.aar'], dir: '../../../../tuikit/android/libs')
  38. plugin-build-End*/
  39. api project(':tuicore')
  40. implementation 'com.google.code.gson:gson:2.9.1'
  41. implementation 'androidx.appcompat:appcompat:1.3.1'
  42. implementation 'com.github.bumptech.glide:glide:4.12.0'
  43. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  44. implementation 'androidx.viewpager2:viewpager2:1.0.0'
  45. implementation project(path: ':BaseLibrary')
  46. }