mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d6e8c061cd
Summary: Use the hard-coded config for Helloworld instead of assuming the community cli is there to generate a config, which we can no longer assume. Changelog: [Internal] Pull Request resolved: https://github.com/facebook/react-native/pull/45221 Test Plan: This works in my local environment: ``` bundle exec pod install ``` and ``` ./gradlew generateAutolinkingPackageList ``` Changelog: [Internal] Reviewed By: javache Differential Revision: D59162715 Pulled By: blakef fbshipit-source-id: 95ff2c3929f12ee0ecf468cb80d2df1281eb746e
25 lines
1.1 KiB
Groovy
25 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("../../gradle-plugin") }
|
|
plugins { id("com.facebook.react.settings") }
|
|
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand(["/bin/sh", "./scripts/config.sh"]) }
|
|
|
|
rootProject.name = 'HelloWorld'
|
|
include ':app'
|
|
includeBuild('../../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"))
|
|
}
|
|
}
|