From e90319e9fa18661144ad29faf36efba3750edb32 Mon Sep 17 00:00:00 2001 From: yatatsu Date: Wed, 31 Oct 2018 05:27:13 -0700 Subject: [PATCH] Fix incorrect merged asset path with flavor for Android Gradle Plugin 3.2. (#21782) Summary: When we use product flavor (e.g. develop/production) with Android Gradle Plugin 3.2, javascript bundle is not copied due to that merged asset path point to incorrect location. related #21408 Pull Request resolved: https://github.com/facebook/react-native/pull/21782 Differential Revision: D12854056 Pulled By: hramos fbshipit-source-id: d1e6a395e762cc4a4f133977d54d0f469fa66b8c --- react.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react.gradle b/react.gradle index bcc24b0c24cd18..b9187afba414aa 100644 --- a/react.gradle +++ b/react.gradle @@ -132,7 +132,7 @@ afterEvaluate { } // Workaround for Android Gradle Plugin 3.2+ new asset directory - into ("merged_assets/${targetPath}/merge${targetName}Assets/out") { + into ("merged_assets/${variant.name}/merge${targetName}Assets/out") { from jsBundleDir } }