From 81e3dfab7dded38c8b7f1f8d0ae45aa9576e30e1 Mon Sep 17 00:00:00 2001 From: Sergey Chystiakov Date: Mon, 22 Jul 2024 03:52:04 +0200 Subject: [PATCH] fix android build --- android/app/build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/android/app/build.gradle b/android/app/build.gradle index 9466762..815afb4 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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" /**