Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vhqtvn committed Feb 9, 2023
1 parent 0deb964 commit 186e114
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion ci/post-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,20 @@ hack([
hack([
"node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt",
], (s) => {
s=s.replace("variant.sources.assets?.addGeneratedSourceDirectory(bundleTask, BundleHermesCTask::jsBundleDir)","// variant.sources.assets?.addGeneratedSourceDirectory(/*DISABLE*/bundleTask, BundleHermesCTask::jsBundleDir)")
s=s.replace(
"variant.sources.assets?.addGeneratedSourceDirectory(bundleTask, BundleHermesCTask::jsBundleDir)",
"// variant.sources.assets?./*we're embedding so, not-*/addGeneratedSourceDirectory(bundleTask, BundleHermesCTask::jsBundleDir)"
)
return s;
})

hack([
"node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt",
], (s) => {
s=s.replace(
"variant.mergeResourcesProvider.get().dependsOn(bundleTaskName)",
"// variant.mergeResourcesProvider.get()./*we're embedding so, not-*/dependsOn(bundleTaskName)"
)
return s;
})

Expand Down

0 comments on commit 186e114

Please sign in to comment.