mirror of
https://github.com/zoriya/nitro.git
synced 2026-10-13 00:05:23 +00:00
* feat: Create `HybridNitroModulesProxy` * feat: Create `InstallNitro` * docs: Create `entry-point.md` docs * fix: Create `JSIConverter<HostObject>` (for BoxedHybridObject) * Update NitroModulesProxy.ts * feat: Refactor JS for new module * feat: Refactor JS again * feat: Create iOS TurboModule that installs Nitro * feat: Implement `install()` for old arch (iOS) * chore: Format * feat: Implement TurboModule `install()` on Android * fix: Use `CallInvokerHolderImpl` * feat: Add CI that tests the build for old architecture * fix: Fix iOS CI * fix: Fix CI * fix: Exclude RN `.so` libraries (like `libjsi.so`) from `packagingOptions`
58 lines
1.7 KiB
Ruby
58 lines
1.7 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/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/**/*.{c,cpp}",
|
|
"ios/**/*.{m,mm}",
|
|
"ios/**/*.swift",
|
|
]
|
|
s.public_header_files = [
|
|
# Public C++ headers will be exposed in modulemap (for Swift)
|
|
"cpp/core/AnyMap.hpp",
|
|
"cpp/core/ArrayBuffer.hpp",
|
|
"cpp/core/HybridObject.hpp",
|
|
"cpp/entrypoint/HybridNitroModulesProxy.hpp",
|
|
"cpp/entrypoint/InstallNitro.hpp",
|
|
"cpp/registry/HybridObjectRegistry.hpp",
|
|
"cpp/jsi/JSIConverter.hpp",
|
|
"cpp/threading/Dispatcher.hpp",
|
|
"cpp/utils/NitroHash.hpp",
|
|
"cpp/utils/NitroDefines.hpp",
|
|
# Public iOS-specific headers that will be exposed in modulemap (for Swift)
|
|
"ios/core/ArrayBufferHolder.hpp",
|
|
"ios/core/PromiseHolder.hpp",
|
|
"ios/core/AnyMapHolder.hpp",
|
|
"ios/core/HybridContext.hpp",
|
|
"ios/utils/SwiftClosure.hpp",
|
|
]
|
|
|
|
s.pod_target_xcconfig = {
|
|
# Use C++ 20
|
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
|
# Enables C++ <-> Swift interop (by default it's only C)
|
|
"SWIFT_OBJC_INTEROP_MODE" => "objcxx",
|
|
}
|
|
|
|
install_modules_dependencies(s)
|
|
end
|