-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the setup to allow the build-from-source on host projects
Summary: With the monorepo changes we broke the build from source for users. This fixes it so that folks can just follow the guide: https://reactnative.dev/contributing/how-to-build-from-source Changelog: [Android] [Fixed] - Fix the setup to allow the build-from-source on host projects Differential Revision: D44502428 fbshipit-source-id: 02ab0492937a3c82167bdcf49d238b86ecaed54a
- Loading branch information
1 parent
c1c22eb
commit 095109d
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
// This is the top level build.gradle.kts file used when the users | ||
// is doing a build from source. It's triggered as the user | ||
// will add an `includeBuild(../node_modules/react-native)` in | ||
// their settings.gradle.kts file. | ||
// More on this here: https://reactnative.dev/contributing/how-to-build-from-source | ||
plugins { | ||
id("com.android.library") version "7.4.2" apply false | ||
id("com.android.application") version "7.4.2" apply false | ||
id("de.undercouch.download") version "5.0.1" apply false | ||
kotlin("android") version "1.7.22" apply false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
android.useAndroidX=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,31 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
// This is the settings.gradle.kts file used when the users | ||
// is doing a build from source. It's triggered as the user | ||
// will add an `includeBuild(../node_modules/react-native)` in | ||
// their settings.gradle.kts file. | ||
// More on this here: https://reactnative.dev/contributing/how-to-build-from-source | ||
|
||
pluginManagement { | ||
repositories { | ||
mavenCentral() | ||
google() | ||
gradlePluginPortal() | ||
} | ||
} | ||
|
||
rootProject.name = "react-native-github" | ||
|
||
include(":packages:react-native:ReactAndroid") | ||
|
||
project(":packages:react-native:ReactAndroid").projectDir = file("ReactAndroid/") | ||
|
||
include(":packages:react-native:ReactAndroid:hermes-engine") | ||
|
||
project(":packages:react-native:ReactAndroid:hermes-engine").projectDir = | ||
file("ReactAndroid/hermes-engine/") |