fix: Allowed setting custom downloads directory (#1306)

Clone of https://github.com/mrousavy/react-native-mmkv/pull/459/
This commit is contained in:
Thibault Malbranche 2022-10-28 12:18:06 +02:00 committed by GitHub
parent 1d6f720f8b
commit c046440e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -302,8 +302,8 @@ dependencies {
if (ENABLE_FRAME_PROCESSORS) { if (ENABLE_FRAME_PROCESSORS) {
// third-party-ndk deps headers // third-party-ndk deps headers
// mostly a copy of https://github.com/software-mansion/react-native-reanimated/blob/master/android/build.gradle#L115 // mostly a copy of https://github.com/software-mansion/react-native-reanimated/blob/master/android/build.gradle#L115
def customDownloadsDir = System.getenv("REACT_NATIVE_DOWNLOADS_DIR")
def downloadsDir = new File("$buildDir/downloads") def downloadsDir = customDownloadsDir ? new File(customDownloadsDir) : new File("$buildDir/downloads")
def thirdPartyNdkDir = new File("$buildDir/third-party-ndk") def thirdPartyNdkDir = new File("$buildDir/third-party-ndk")
def thirdPartyVersionsFile = new File("${nodeModules}/react-native/ReactAndroid/gradle.properties") def thirdPartyVersionsFile = new File("${nodeModules}/react-native/ReactAndroid/gradle.properties")
def thirdPartyVersions = new Properties() def thirdPartyVersions = new Properties()