| 12345678910111213141516171819202122232425262728 |
- pluginManagement {
- repositories {
- // 国内镜像,顺序越靠前优先级越高
- maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
- maven { url 'https://maven.aliyun.com/repository/google' }
- google()
- gradlePluginPortal() // 官方插件仓库兜底
- }
- }
- // Gradle 7+ 专用:所有模块的依赖也走阿里云
- dependencyResolutionManagement {
- repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
- repositories {
- maven { url 'https://maven.aliyun.com/repository/google' }
- maven { url 'https://maven.aliyun.com/repository/central' }
- maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
- google()
- mavenCentral()
- }
- }
- rootProject.name = 'taroDemo'
- apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
- include ':app'
- includeBuild(file('../node_modules/@react-native/gradle-plugin').toPath().toRealPath().toAbsolutePath().toString())
- apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle")
- useExpoModules()
|