pluginManagement {
    includeBuild("../node_modules/@react-native/gradle-plugin")
    repositories {
        maven { url "https://nexus-inner.51trust.com/repository/android/" }
        gradlePluginPortal() // 如需官方插件
    }
}
plugins { id("com.facebook.react.settings") }
// 强制所有依赖解析走你的仓库
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) // 禁止其他仓库
    repositories {
        maven { url "https://nexus-inner.51trust.com/repository/android/" }
    }
}

extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
rootProject.name = 'YiwangxinMultip'
include ':app'
includeBuild('../node_modules/@react-native/gradle-plugin')