require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Pod::Spec.new do |s| s.name = "RNTrueSheet" 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, :tvos => min_ios_version_supported } s.source = { :git => "https://github.com/lodev09/react-native-true-sheet.git", :tag => "#{s.version}" } # tvOS compiles stubs only — sheets are not supported there, but codegen # still registers the components so the classes must exist (#722) s.ios.source_files = "ios/**/*.{h,m,mm,swift,cpp}", "common/cpp/**/*.{cpp,h}" s.ios.exclude_files = "ios/tvos/**/*" s.tvos.source_files = "ios/tvos/**/*.mm", "common/cpp/**/*.{cpp,h}" s.private_header_files = "ios/**/*.h" s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/common/cpp\"" } install_modules_dependencies(s) end