Skip to content

Commit e90319e

Browse files
yatatsufacebook-github-bot
authored andcommitted
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 <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged. _Pull requests that expand test coverage are more likely to get reviewed. Add a test case whenever possible!_ --> Pull Request resolved: #21782 Differential Revision: D12854056 Pulled By: hramos fbshipit-source-id: d1e6a395e762cc4a4f133977d54d0f469fa66b8c
1 parent a689711 commit e90319e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ afterEvaluate {
132132
}
133133

134134
// Workaround for Android Gradle Plugin 3.2+ new asset directory
135-
into ("merged_assets/${targetPath}/merge${targetName}Assets/out") {
135+
into ("merged_assets/${variant.name}/merge${targetName}Assets/out") {
136136
from jsBundleDir
137137
}
138138
}

0 commit comments

Comments
 (0)