mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
feeb4b773b
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44850 I'm removing this line from settings.gradle: ``` import com.facebook.react.ReactSettingsExtension ``` and just using a fully qualified class name in the `configure{}` block as imports cannot be conditionally included and is making hard for RNTA to integrated those changes. Changelog: [Internal] [Changed] - Remove import of `com.facebook.react.ReactSettingsExtension` Reviewed By: huntie Differential Revision: D58354443 fbshipit-source-id: bc45516661318021a042e1c5921e28d7217cacbc
49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
gradlePluginPortal()
|
|
}
|
|
includeBuild("packages/react-native-gradle-plugin/")
|
|
}
|
|
|
|
include(
|
|
":packages:react-native:ReactAndroid",
|
|
":packages:react-native:ReactAndroid:hermes-engine",
|
|
":packages:react-native:ReactAndroid:external-artifacts",
|
|
":packages:rn-tester:android:app")
|
|
|
|
includeBuild("packages/react-native-gradle-plugin/")
|
|
|
|
dependencyResolutionManagement {
|
|
versionCatalogs {
|
|
create("libs") { from(files("packages/react-native/gradle/libs.versions.toml")) }
|
|
}
|
|
}
|
|
|
|
rootProject.name = "react-native-github"
|
|
|
|
plugins {
|
|
id("com.gradle.enterprise").version("3.7.1")
|
|
id("org.gradle.toolchains.foojay-resolver-convention").version("0.5.0")
|
|
id("com.facebook.react.settings")
|
|
}
|
|
|
|
configure<com.facebook.react.ReactSettingsExtension> {
|
|
autolinkLibrariesFromCommand(
|
|
workingDirectory = file("packages/rn-tester/"), lockFiles = files("yarn.lock"))
|
|
}
|
|
|
|
// If you specify a file inside gradle/gradle-enterprise.gradle.kts
|
|
// you can configure your custom Gradle Enterprise instance
|
|
if (File("./gradle/gradle-enterprise.gradle.kts").exists()) {
|
|
apply(from = "./gradle/gradle-enterprise.gradle.kts")
|
|
}
|