Skip to content

Commit

Permalink
afterEvaluate
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Dec 5, 2024
1 parent ed3fde3 commit a7c7687
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/react_native/e2e/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ project.ext.react = [

apply from: "../../node_modules/react-native/react.gradle"

// Fix a error was introduced in new version of gradle
afterEvaluate {
def architectures = ["arm64-v8a", "arm64-v7a", "x86", "x86_64"]

tasks.matching { it.name == "bundleReleaseJsAndAssets" }.all { task ->
architectures.each { arch ->
task.dependsOn(":onnxruntime-react-native:buildCMakeRelWithDebInfo[${arch}]")
tasks.matching { it.name.startsWith("buildCMakeRelWithDebInfo") && it.name.contains(arch) }.all { task ->
tasks.named("bundleReleaseJsAndAssets") {
dependsOn(task)
}
}
}
Expand Down

0 comments on commit a7c7687

Please sign in to comment.