Skip to content

Commit 6eedae1

Browse files
author
Maciej Makowski
committed
refactor: refactored getting jsiRuntime in ios AudioAPIModule
1 parent 60f67ca commit 6eedae1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/react-native-audio-api/RNAudioAPI.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ Pod::Spec.new do |s|
5555
'"$(PODS_ROOT)/Headers/Public/React-hermes"',
5656
'"$(PODS_ROOT)/Headers/Public/hermes-engine"',
5757
"\"$(PODS_ROOT)/#{$config[:react_native_common_dir]}\"",
58-
"\"$(PODS_ROOT)/#{$config[:react_native_audioapi_dir_from_pods_root]}/ios\"",
59-
"\"$(PODS_ROOT)/#{$config[:react_native_audioapi_dir_from_pods_root]}/common/cpp\"",
58+
"\"$(PODS_ROOT)/#{$config[:react_native_audioapi_dir_from_pods_root]}/ios/audioapi/ios\"",
59+
"\"$(PODS_ROOT)/#{$config[:react_native_audioapi_dir_from_pods_root]}/common/cpp/audioapi\"",
6060
].join(' '),
6161
'OTHER_CFLAGS' => "$(inherited) #{folly_flags} #{fabric_flags} #{version_flag}"
6262
}

packages/react-native-audio-api/ios/audioapi/ios/AudioAPIModule.mm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ @implementation AudioAPIModule
3535

3636
RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(install)
3737
{
38-
auto *cxxBridge = reinterpret_cast<RCTCxxBridge *>(self.bridge);
39-
auto jsiRuntime = reinterpret_cast<facebook::jsi::Runtime *>(cxxBridge.runtime);
38+
auto jsiRuntime = reinterpret_cast<facebook::jsi::Runtime *>(self.bridge.runtime);
4039

4140
#if defined(RCT_NEW_ARCH_ENABLED)
4241
auto jsCallInvoker = _callInvoker.callInvoker;

0 commit comments

Comments
 (0)