Skip to content

Commit 2b640be

Browse files
cortinicofacebook-github-bot
authored andcommitted
Fix for broken test_helloworld_android on Release (#44952)
Summary: Pull Request resolved: #44952 The test_helloworld_android Release variant are broken on GHA. This fixes it as it forces hermesc to be built *before* the app attempts to create a bundle. Changelog: [Internal] [Changed] - Fix for broken test_helloworld_android on Release Reviewed By: cipolleschi, blakef Differential Revision: D58591480 fbshipit-source-id: 2afc1cfe8c416da6f5919d20098639653798dd1a
1 parent f1a362d commit 2b640be

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/helloworld/android/app/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,11 @@ dependencies {
137137
implementation jscFlavor
138138
}
139139
}
140+
141+
afterEvaluate {
142+
// As HelloWorld is building from source, we need to make sure hermesc is built before the JS bundle is created.
143+
// Otherwise the release version of the app will fail to build due to missing hermesc.
144+
tasks
145+
.getByName("createBundleReleaseJsAndAssets")
146+
.dependsOn(gradle.includedBuild("react-native").task(":packages:react-native:ReactAndroid:hermes-engine:buildHermesC"))
147+
}

0 commit comments

Comments
 (0)