-
Notifications
You must be signed in to change notification settings - Fork 252
Expand file tree
/
Copy pathNitroSound.podspec
More file actions
55 lines (44 loc) · 1.8 KB
/
NitroSound.podspec
File metadata and controls
55 lines (44 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
folly_compiler_flags = '-DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1'
Pod::Spec.new do |s|
s.name = "NitroSound"
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]
s.platforms = { :ios => "15.1" }
s.source = { :git => "https://github.com/hyochan/react-native-nitro-sound.git", :tag => "#{s.version}" }
s.source_files = [
"ios/**/*.{swift}",
"ios/**/*.{m,mm}",
]
s.exclude_files = [
"ios/Sound-Bridging-Header.h",
]
# Basic configuration - let Nitrogen handle the rest
s.pod_target_xcconfig = {
"SWIFT_VERSION" => "5.0",
"SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "$(inherited)",
# Allow opting in to library evolution from environment (defaults to NO)
"NITRO_LIBLEVOLUTION" => "NO",
"BUILD_LIBRARY_FOR_DISTRIBUTION" => "$(NITRO_LIBLEVOLUTION)",
"DEFINES_MODULE" => "YES",
# Favor whole-module to avoid per-file IRGen edge-cases
"SWIFT_COMPILATION_MODE" => "wholemodule",
"HEADER_SEARCH_PATHS" => "$(inherited) ${PODS_ROOT}/RCT-Folly",
"GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) FOLLY_NO_CONFIG FOLLY_MOBILE=1 FOLLY_USE_LIBCPP=1 FOLLY_CFG_NO_COROUTINES",
"OTHER_CPLUSPLUSFLAGS" => "$(inherited) #{folly_compiler_flags}",
"PRODUCT_MODULE_NAME" => "NitroSound",
}
s.dependency 'React-Core'
s.dependency 'React-jsi'
s.dependency 'React-callinvoker'
load File.join(__dir__, 'nitrogen/generated/ios/NitroSound+autolinking.rb')
add_nitrogen_files(s)
s.info_plist = {
'NSMicrophoneUsageDescription' => 'This app needs access to microphone to record audio.'
}
install_modules_dependencies(s)
end