File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
packages/react-native-audio-api Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,9 @@ find_package(fbjni REQUIRED CONFIG)
5252find_package (oboe REQUIRED CONFIG)
5353
5454set (LINK_LIBRARIES
55+ ReactAndroid::reactnative
5556 ReactAndroid::jsi
56- ReactAndroid::reactnativejni
5757 fbjni::fbjni
58- ReactAndroid::folly_runtime
5958 android
6059 log
6160 oboe::oboe
Original file line number Diff line number Diff line change @@ -14,19 +14,23 @@ @implementation AudioAPIModule
1414RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(install)
1515{
1616 NSLog (@" Installing JSI bindings for react-native-audio-api..." );
17- RCTBridge *bridge = [RCTBridge currentBridge ];
18- RCTCxxBridge *cxxBridge = (RCTCxxBridge *)bridge;
17+ RCTCxxBridge *cxxBridge = (RCTCxxBridge *) [RCTBridge currentBridge ];
18+
1919 if (cxxBridge == nil ) {
20+ NSLog (@" Error during getting bridge!" );
2021 return @false ;
2122 }
2223
2324 using namespace facebook ;
2425
25- auto jsiRuntime = (jsi::Runtime *)cxxBridge.runtime ;
26- if (jsiRuntime == nil ) {
26+ auto jsRuntime = (jsi::Runtime *)cxxBridge.runtime ;
27+
28+ if (jsRuntime == nil ) {
29+ NSLog (@" Error during getting jsRuntime!" );
2730 return @false ;
2831 }
29- auto &runtime = *jsiRuntime;
32+
33+ auto &runtime = *jsRuntime;
3034
3135 auto wrapper = std::make_shared<audioapi::AudioAPIInstallerWrapper>();
3236 auto hostObject = std::make_shared<audioapi::AudioAPIInstallerHostObject>(wrapper);
You can’t perform that action at this time.
0 commit comments