Skip to content

Commit ebf117c

Browse files
cortinicometa-codesync[bot]
authored andcommitted
Account for REACT_NATIVE_DOWNLOADS_DIR inside fantom (#55148)
Summary: Currently Fantom is completely ignoring the `REACT_NATIVE_DOWNLOADS_DIR` env variable that other scripts in the repo are instead honoring. This fixes it. ## Changelog: [INTERNAL] - Pull Request resolved: #55148 Test Plan: CI Reviewed By: cipolleschi Differential Revision: D90594286 Pulled By: cortinico fbshipit-source-id: 872a26fc15a2acbe3c0e26035407159c20a9a285
1 parent 2aee426 commit ebf117c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

private/react-native-fantom/build.gradle.kts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ val reactNativeRootDir = projectDir.parentFile.parentFile
5050
val reactNativeDir = File("$reactNativeRootDir/packages/react-native")
5151
val reactAndroidDir = File("$reactNativeDir/ReactAndroid")
5252
val reactAndroidBuildDir = File("$reactAndroidDir/build")
53-
val reactAndroidDownloasdDir = File("$reactAndroidBuildDir/downloads")
53+
val reactAndroidDownloadsDir =
54+
if (System.getenv("REACT_NATIVE_DOWNLOADS_DIR") != null) {
55+
File(System.getenv("REACT_NATIVE_DOWNLOADS_DIR"))
56+
} else {
57+
File("$reactAndroidBuildDir/downloads")
58+
}
5459

5560
val testerDir = File("$projectDir/tester")
5661
val testerBuildDir = File("$buildDir/tester")
@@ -65,7 +70,7 @@ val createNativeDepsDirectories by
6570
reportsDir.mkdirs()
6671
}
6772

68-
val downloadFollyDest = File(reactAndroidDownloasdDir, "folly-${FOLLY_VERSION}.tar.gz")
73+
val downloadFollyDest = File(reactAndroidDownloadsDir, "folly-${FOLLY_VERSION}.tar.gz")
6974

7075
val prepareFolly by
7176
tasks.registering(Copy::class) {

0 commit comments

Comments
 (0)