mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44920 Configure helloworld to build from source, using a combination of our [How to Build from Source](https://reactnative.dev/contributing/how-to-build-from-source#update-your-project-to-build-from-source) guide, as well as using rn-tester's config as a guide. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D58287748 fbshipit-source-id: 836b09416f4da4087fbdea4476d29cd226157914
24 lines
1.1 KiB
Groovy
24 lines
1.1 KiB
Groovy
/*
|
|
* 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.
|
|
*/
|
|
|
|
// Autolinking has now moved into the React Native Gradle Plugin
|
|
pluginManagement { includeBuild("../../react-native-gradle-plugin") }
|
|
plugins { id("com.facebook.react.settings") }
|
|
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
|
|
|
|
rootProject.name = 'HelloWorld'
|
|
include ':app'
|
|
includeBuild('../../react-native-gradle-plugin')
|
|
includeBuild('../../react-native') {
|
|
dependencySubstitution {
|
|
substitute(module("com.facebook.react:react-android")).using(project(":packages:react-native:ReactAndroid"))
|
|
substitute(module("com.facebook.react:react-native")).using(project(":packages:react-native:ReactAndroid"))
|
|
substitute(module("com.facebook.react:hermes-android")).using(project(":packages:react-native:ReactAndroid:hermes-engine"))
|
|
substitute(module("com.facebook.react:hermes-engine")).using(project(":packages:react-native:ReactAndroid:hermes-engine"))
|
|
}
|
|
}
|