Skip to content

Commit fc31bd6

Browse files
author
Maciej Makowski
committed
fix: fixed podspec
1 parent d0d0545 commit fc31bd6

File tree

3 files changed

+6
-80
lines changed

3 files changed

+6
-80
lines changed

apps/fabric-example/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2222,7 +2222,7 @@ SPEC CHECKSUMS:
22222222
React-utils: f584a494ac233c7857bab176416b0c49cb4037ba
22232223
ReactCodegen: 1f59af46efc9351f27046d90d9ceb5e99385f623
22242224
ReactCommon: 5809a8ee421b7219221a475b78180f8f34b5c5ec
2225-
RNAudioAPI: 7d4d61148ee49d5c16171fde7e27d998647c7159
2225+
RNAudioAPI: 2e3fdf0717f012cd87e4aa6cadf69fda57efc5e2
22262226
RNGestureHandler: 6aedf747478f64fbeddb3ad5d5d0dfdf2361d136
22272227
RNReanimated: 46fef9f63b135755066fd05d7568304b81e2ebdc
22282228
RNScreens: 2629b92a0f38e7432677bee3bc08a352ac5b4279

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

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
require "json"
2-
require_relative './scripts/audioapi_utils'
32

43
package_json = JSON.parse(File.read(File.join(__dir__, "package.json")))
54

6-
$config = find_config()
7-
assert_minimal_react_native_version($config)
85
$new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
96

10-
folly_flags = "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -DREACT_NATIVE_MINOR_VERSION=#{$config[:react_native_minor_version]}"
7+
folly_flags = "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32"
118
fabric_flags = $new_arch_enabled ? '-DRCT_NEW_ARCH_ENABLED' : ''
129
version_flag = "-DAUDIOAPI_VERSION=#{package_json['version']}"
1310

@@ -36,28 +33,13 @@ Pod::Spec.new do |s|
3633

3734
s.ios.frameworks = 'CoreFoundation', 'CoreAudio', 'AudioToolbox', 'Accelerate'
3835

39-
s.pod_target_xcconfig = {
36+
s.compiler_flags = "#{folly_flags}"
37+
38+
s.pod_target_xcconfig = {
4039
"USE_HEADERMAP" => "YES",
41-
"DEFINES_MODULE" => "YES",
42-
"HEADER_SEARCH_PATHS" => '"$(PODS_TARGET_SRCROOT)/ReactCommon" "$(PODS_TARGET_SRCROOT)" "$(PODS_ROOT)/RCT-Folly" "$(PODS_ROOT)/boost" "$(PODS_ROOT)/boost-for-react-native" "$(PODS_ROOT)/DoubleConversion" "$(PODS_ROOT)/Headers/Private/React-Core" "$(PODS_ROOT)/Headers/Private/Yoga"',
43-
"FRAMEWORK_SEARCH_PATHS" => '"${PODS_CONFIGURATION_BUILD_DIR}/React-hermes"',
4440
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
4541
"GCC_PREPROCESSOR_DEFINITIONS" => '$(inherited) HAVE_ACCELERATE=1',
46-
}
47-
s.compiler_flags = "#{folly_flags}"
48-
49-
s.xcconfig = {
50-
"HEADER_SEARCH_PATHS" => [
51-
'"$(PODS_ROOT)/boost"',
52-
'"$(PODS_ROOT)/boost-for-react-native"',
53-
'"$(PODS_ROOT)/glog"',
54-
'"$(PODS_ROOT)/RCT-Folly"',
55-
'"$(PODS_ROOT)/Headers/Public/React-hermes"',
56-
'"$(PODS_ROOT)/Headers/Public/hermes-engine"',
57-
"\"$(PODS_ROOT)/#{$config[:react_native_common_dir]}\"",
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\"",
60-
].join(' '),
42+
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/common/cpp\" \"$(PODS_TARGET_SRCROOT)/ios\"",
6143
'OTHER_CFLAGS' => "$(inherited) #{folly_flags} #{fabric_flags} #{version_flag}"
6244
}
6345

packages/react-native-audio-api/scripts/audioapi_utils.rb

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)