mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-05-27 08:32:32 +00:00
feat: bump nitro modules version (#4641)
This commit is contained in:
@@ -8,7 +8,7 @@ PODS:
|
||||
- hermes-engine (0.77.2):
|
||||
- hermes-engine/Pre-built (= 0.77.2)
|
||||
- hermes-engine/Pre-built (0.77.2)
|
||||
- NitroModules (0.26.2):
|
||||
- NitroModules (0.27.2):
|
||||
- DoubleConversion
|
||||
- glog
|
||||
- hermes-engine
|
||||
@@ -1816,7 +1816,7 @@ SPEC CHECKSUMS:
|
||||
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
|
||||
glog: eb93e2f488219332457c3c4eafd2738ddc7e80b8
|
||||
hermes-engine: 8eb265241fa1d7095d3a40d51fd90f7dce68217c
|
||||
NitroModules: 39248e88212416d858a4f4561cf719c6cc8ef900
|
||||
NitroModules: 7ed5fd8f6f1e814810b9df26830b78f3355690bf
|
||||
RCT-Folly: e78785aa9ba2ed998ea4151e314036f6c49e6d82
|
||||
RCTDeprecation: 85b72250b63cfb54f29ca96ceb108cb9ef3c2079
|
||||
RCTRequired: 567cb8f5d42b990331bfd93faad1d8999b1c1736
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"@react-native-community/slider": "^4.5.6",
|
||||
"react": "18.3.1",
|
||||
"react-native": "^0.77.0",
|
||||
"react-native-nitro-modules": "^0.26.0",
|
||||
"react-native-nitro-modules": "^0.27.0",
|
||||
"react-native-video": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
diff --git a/node_modules/react-native-nitro-modules/cpp/core/HybridFunction.hpp b/node_modules/react-native-nitro-modules/cpp/core/HybridFunction.hpp
|
||||
index efcea05..ffad3f2 100644
|
||||
--- a/node_modules/react-native-nitro-modules/cpp/core/HybridFunction.hpp
|
||||
+++ b/node_modules/react-native-nitro-modules/cpp/core/HybridFunction.hpp
|
||||
@@ -23,6 +23,10 @@ struct JSIConverter;
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
|
||||
+#ifdef ANDROID
|
||||
+#include <fbjni/fbjni.h>
|
||||
+#endif
|
||||
+
|
||||
namespace margelo::nitro {
|
||||
|
||||
using namespace facebook;
|
||||
@@ -109,6 +113,15 @@ public:
|
||||
std::string funcName = getHybridFuncFullName<THybrid>(kind, name, hybridInstance.get());
|
||||
std::string message = exception.what();
|
||||
throw jsi::JSError(runtime, funcName + ": " + message);
|
||||
+#ifdef ANDROID
|
||||
+#pragma clang diagnostic push
|
||||
+#pragma clang diagnostic ignored "-Wexceptions"
|
||||
+ } catch (const jni::JniException& exception) {
|
||||
+ std::string funcName = getHybridFuncFullName<THybrid>(kind, name, hybridInstance.get());
|
||||
+ std::string message = exception.what();
|
||||
+ throw jsi::JSError(runtime, funcName + ": " + message);
|
||||
+#pragma clang diagnostic pop
|
||||
+#endif
|
||||
} catch (...) {
|
||||
// Some unknown exception was thrown - add method name information and re-throw as `JSError`.
|
||||
std::string funcName = getHybridFuncFullName<THybrid>(kind, name, hybridInstance.get());
|
||||
Reference in New Issue
Block a user