Skip to content

Commit

Permalink
fix android build
Browse files Browse the repository at this point in the history
  • Loading branch information
anyxem committed Jul 22, 2024
1 parent 2e65737 commit 81e3dfa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,19 @@ project.ext.react = [
]

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

def setNodeEnvOptions = { execSpec ->
execSpec.environment("NODE_OPTIONS", "--openssl-legacy-provider")
}

tasks.whenTaskAdded { task ->
if (task.name == 'bundleReleaseJsAndAssets') {
task.doFirst {
setNodeEnvOptions(delegate)
}
}
}

// apply plugin: "com.bugsnag.android.gradle"

/**
Expand Down

0 comments on commit 81e3dfa

Please sign in to comment.