From e027cee5176bd3016c780cf934f15e5d3d29a846 Mon Sep 17 00:00:00 2001 From: Reno P P Date: Wed, 31 Mar 2021 14:14:54 +0700 Subject: [PATCH] hotfix(react.gradle): fixing currentBundleTask This commit fixes Flavors & App Bundle missing index.android.bundle with proguard enabled https://github.com/facebook/react-native/issues/31157#issuecomment-810804818 --- react.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/react.gradle b/react.gradle index 04b94aad9ee513..629484911274f0 100644 --- a/react.gradle +++ b/react.gradle @@ -314,6 +314,7 @@ afterEvaluate { // mergeResources task runs before the bundle file is copied to the intermediate asset directory from Android plugin 4.1+. // This ensures to copy the bundle file before mergeResources task starts def mergeResourcesTask = tasks.findByName("merge${targetName}Resources") + currentAssetsCopyTask.dependsOn(currentBundleTask) mergeResourcesTask.dependsOn(currentAssetsCopyTask) packageTask.dependsOn(currentAssetsCopyTask)