Skip to content

Commit

Permalink
fix: Allowed setting custom downloads directory (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
Titozzz committed Oct 28, 2022
1 parent 1d6f720 commit c046440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ dependencies {
if (ENABLE_FRAME_PROCESSORS) {
// third-party-ndk deps headers
// mostly a copy of https://github.com/software-mansion/react-native-reanimated/blob/master/android/build.gradle#L115

def downloadsDir = new File("$buildDir/downloads")
def customDownloadsDir = System.getenv("REACT_NATIVE_DOWNLOADS_DIR")
def downloadsDir = customDownloadsDir ? new File(customDownloadsDir) : new File("$buildDir/downloads")
def thirdPartyNdkDir = new File("$buildDir/third-party-ndk")
def thirdPartyVersionsFile = new File("${nodeModules}/react-native/ReactAndroid/gradle.properties")
def thirdPartyVersions = new Properties()
Expand Down

0 comments on commit c046440

Please sign in to comment.