mirror of
https://github.com/zoriya/nitro.git
synced 2026-10-13 00:05:23 +00:00
47 lines
1.3 KiB
Ruby
47 lines
1.3 KiB
Ruby
require "json"
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
|
|
Pod::UI.puts "[NitroModules] Your app is boosted by nitro modules! 🔥"
|
|
|
|
Pod::Spec.new do |s|
|
|
s.name = "NitroModules"
|
|
s.version = package["version"]
|
|
s.summary = package["description"]
|
|
s.homepage = package["homepage"]
|
|
s.license = package["license"]
|
|
s.authors = package["author"]
|
|
|
|
s.platforms = { :ios => min_ios_version_supported }
|
|
s.source = { :git => "https://github.com/mrousavy/react-native-nitro.git", :tag => "#{s.version}" }
|
|
|
|
# VisionCamera Core C++ bindings
|
|
s.source_files = [
|
|
# Shared C++ codebase
|
|
"cpp/**/*.{h,hpp}",
|
|
"cpp/**/*.{c,cpp}",
|
|
# iOS codebase
|
|
"ios/**/*.{h,hpp}",
|
|
"ios/**/*.{m,mm}",
|
|
"ios/**/*.swift",
|
|
"ios/**/*.modulemap",
|
|
]
|
|
s.public_header_files = [
|
|
"cpp/core/**/*.{h,hpp}",
|
|
"cpp/jsi/**/*.{h,hpp}",
|
|
"cpp/test-object/**/*.{h,hpp}",
|
|
"cpp/threading/**/*.{h,hpp}",
|
|
"cpp/turbomodule/RegisterNativeNitroModules.hpp",
|
|
"cpp/utils/**/*.{h,hpp}",
|
|
]
|
|
|
|
s.pod_target_xcconfig = {
|
|
# Use C++ 17
|
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
|
# Enables C++ <-> Swift interop (by default it's only C)
|
|
"SWIFT_OBJC_INTEROP_MODE" => "objcxx",
|
|
}
|
|
|
|
install_modules_dependencies(s)
|
|
end
|