From 3fa0a92754363ad2f670c9d07a79ab5f762ac5cb Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 8 May 2019 10:05:43 -0700 Subject: [PATCH] Ensure build dir exists before writing to it (#436) Summary: This is because `doLast` may happen after the cleanup came around to undo `createNativeDepsDirectories` specified as dependency. Pull Request resolved: https://github.com/facebook/flipper/pull/436 Reviewed By: jknoxville Differential Revision: D15260597 Pulled By: passy fbshipit-source-id: b752af2b71217ebc1d802b43f1585e858a41fc00 --- android/third-party/native.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/android/third-party/native.gradle b/android/third-party/native.gradle index 574a28f16..861eec5ad 100644 --- a/android/third-party/native.gradle +++ b/android/third-party/native.gradle @@ -226,6 +226,7 @@ task prepareRSocket(dependsOn: [downloadRSocket], type: Copy) { task writeCacheRevision(dependsOn: createNativeDepsDirectories) { doLast { + buildDir.mkdirs() revisionFile.text = CACHE_REVISION.toString() } }