require 'json' package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| s.name = "ReactNativeNavigation" s.version = package['version'] s.summary = package['description'] s.authors = "Wix.com" s.homepage = package['homepage'] s.license = package['license'] s.platform = :ios, "9.0" s.module_name = 'ReactNativeNavigation' s.default_subspec = 'Core' s.subspec 'Core' do |ss| s.source = { :git => "https://gitlab.com/open-luko/react-native-navigation.git", :branch => "luko-needs" } s.source_files = "lib/ios/**/*.{h,m,mm}" s.exclude_files = "lib/ios/ReactNativeNavigationTests/**/*.*", "lib/ios/OCMock/**/*.*" end s.subspec 'Fabric' do |ss| ss.compiler_flags = "-DRN_FABRIC_ENABLED -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32" ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/Folly\"", "CLANG_CXX_LANGUAGE_STANDARD" => "c++14" } ss.dependency 'React-RCTFabric' ss.dependency 'React-Fabric' ss.dependency 'Folly/Fabric' end s.dependency 'React' s.dependency 'React-RCTImage' s.dependency 'React-RCTText' s.frameworks = 'UIKit' end