pluginManagement {
    repositories {
        google {
            content {
                includeGroupByRegex("com\\.android.*")
                includeGroupByRegex("com\\.google.*")
                includeGroupByRegex("androidx.*")
            }
        }
        mavenCentral()
        gradlePluginPortal()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }  // 用于Chuck等库
        // 友盟 Maven 仓库（必选）
        maven { url 'https://repo1.maven.org/maven2' }
        maven { url 'https://developer.huawei.com/repo/' }  // 华为仓库（部分SDK可能需要）
        // 字节跳动 Maven 仓库（抖音 SDK 可能需要）
        maven { url 'https://artifact.bytedance.com/repository/pangle' }
        // 添加本地 AAR 文件支持
        flatDir {
            dirs 'capability-push/libs', 'capability-share/libs'
        }
    }
}

rootProject.name = "XinDaZhou"

// 基础模块
include ':base-core'
include ':base-common'

// SDK模块（能力层）
include ':capability-ble'
include ':capability-socketio'
include ':capability-push'
include ':capability-qrcode'
include ':capability-share'
include ':capability-nfc'

// 业务模块代码已迁移到 app 模块内，不再需要独立的 module-* 模块

// 应用模块
include ':app'
