mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0fccbd53af
Summary: Previously we asked users to specify a dependency substitution rule to properly use the React Native Gradle Plugin. Here I'm updating the Gradle Plugins setup to allow to use implicit dependency substitution. This requires to specify a Maven Group and Artifact Name (through the project name). This is backward compatible as users will still be allowed to specify a dependency substitution rule if they wish. Changelog: [Android] [Changed] - Leverage Gradle implicit dependency substitution for Gradle Plugin Reviewed By: ShikaSD Differential Revision: D33404948 fbshipit-source-id: 3323f8e0738fd579ce8ae344cbdc0e4356e7dbd8
10 lines
460 B
Groovy
10 lines
460 B
Groovy
rootProject.name = 'HelloWorld'
|
|
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
|
|
include ':app'
|
|
includeBuild('../node_modules/react-native-gradle-plugin')
|
|
|
|
if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") {
|
|
include(":ReactAndroid")
|
|
project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid')
|
|
}
|