build.gradle 772 B

123456789101112131415161718192021222324252627
  1. apply from: "../module.build.gradle"
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-kapt'
  4. android {
  5. buildFeatures {
  6. viewBinding true
  7. }
  8. defaultConfig {
  9. // 如果是独立模块,则使用当前组件的包名
  10. if (singleModule.toBoolean()) {
  11. applicationId "com.yingyangfly.home"
  12. }
  13. }
  14. // 统一资源前缀,规范资源引用
  15. resourcePrefix "home_"
  16. }
  17. dependencies {
  18. implementation project(path: ':baselib')
  19. implementation(rootProject.ext.androidx.kotlin_lib)
  20. implementation(rootProject.ext.androidx.kotlin_core)
  21. implementation(rootProject.ext.androidx.appcompat)
  22. implementation(rootProject.ext.androidx.material)
  23. implementation(rootProject.ext.androidx.constraintlayout)
  24. }