Remove REACT_NATIVE_SKIP_PREFAB as unused (#41833)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41833

I'm removing those environment variables as they're legacy and not used anymore:
- REACT_NATIVE_SKIP_PREFAB
- REACT_NATIVE_HERMES_SKIP_PREFAB

Changelog:
[Internal] [Changed] - Remove REACT_NATIVE_SKIP_PREFAB as unused

Reviewed By: dmytrorykun

Differential Revision: D51890227

fbshipit-source-id: 6579ff73d3030fe1acb587250cd99aff44a1de29
This commit is contained in:
Nicola Corti
2023-12-12 10:55:32 -08:00
committed by Facebook GitHub Bot
parent a115f97c48
commit 646ff6e70e
2 changed files with 2 additions and 9 deletions
@@ -60,9 +60,6 @@ val dependenciesPath = System.getenv("REACT_NATIVE_DEPENDENCIES")
// and the build will use that.
val boostPathOverride = dependenciesPath ?: System.getenv("REACT_NATIVE_BOOST_PATH")
// By setting REACT_NATIVE_SKIP_PREFAB we can skip prefab publishing, to
// reduce the size of the React Native published .AAR.
val skipPrefabPublishing = System.getenv("REACT_NATIVE_SKIP_PREFAB") != null
val prefabHeadersDir = project.file("$buildDir/prefab-headers")
// Native versions which are defined inside the version catalog (libs.versions.toml)
@@ -635,7 +632,7 @@ android {
buildFeatures {
prefab = true
prefabPublishing = !skipPrefabPublishing
prefabPublishing = true
buildConfig = true
}
@@ -63,10 +63,6 @@ if (hermesVersionFile.exists()) {
def ndkBuildJobs = Runtime.runtime.availableProcessors().toString()
def prefabHeadersDir = new File("$buildDir/prefab-headers")
// By setting REACT_NATIVE_HERMES_SKIP_PREFAB you can skip prefab publishing, to
// reduce the size of the Hermes published .AAR.
def skipPrefabPublishing = System.getenv("REACT_NATIVE_HERMES_SKIP_PREFAB") != null
// We inject the JSI directory used inside the Hermes build with the -DJSI_DIR config.
def jsiDir = new File(reactNativeRootDir, "ReactCommon/jsi")
@@ -245,7 +241,7 @@ android {
buildFeatures {
prefab true
prefabPublishing !skipPrefabPublishing
prefabPublishing true
}
dependencies {