require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Pod::Spec.new do |s| s.name = "Aviation" 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/adsellor/react-native-aviation.git", :tag => "v#{s.version}" } s.source_files = [ "ios/**/*.{swift}", "ios/**/*.{h,m,mm}", "cpp/**/*.{h,c}", ] # Exclude test files — XCTest is not available in app targets and # CocoaPods would fail to compile them when resolving a local path dep. s.exclude_files = "ios/tests/**" # C domain core headers must be public so Swift can import them # via the auto-generated umbrella header. s.public_header_files = [ "cpp/core/*.h", "ios/bridge/AviationEngineRegistry.h", "ios/bridge/AviationInterruptionBroadcaster.h", ] s.dependency 'React-jsi' s.dependency 'React-callinvoker' load 'nitrogen/generated/ios/Aviation+autolinking.rb' add_nitrogen_files(s) install_modules_dependencies(s) end