require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -Wno-comma -Wno-shorten-64-to-32' Pod::Spec.new do |s| s.name = "react-native-simple-grid" s.version = package["version"] s.summary = package["description"] s.homepage = package["homepage"] s.license = package["license"] s.authors = package["author"] s.platforms = { :ios => "13.4" } s.source = { :git => "https://github.com/qlik-trial/react-native-simple-grid.git", :tag => "#{s.version}" } s.source_files = "ios/**/*.{h,m,mm,swift}" # Keep Fabric ComponentView header private (C++ headers cannot be in umbrella header) s.private_header_files = "ios/ReactNativeStraightTableComponentView.h" s.exclude_files = "ios/build/**/*" s.requires_arc = true # Configure Swift - use pod name for module to match CocoaPods convention s.swift_version = "5.0" install_modules_dependencies(s) # This library requires Fabric (New Architecture) s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1" s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES", "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"${PODS_ROOT}/Headers/Private/Yoga\"", "CLANG_CXX_LANGUAGE_STANDARD" => "c++20", "OTHER_CPLUSPLUSFLAGS" => "$(inherited) -DRCT_NEW_ARCH_ENABLED=1" } s.dependency "React-Core" s.dependency 'SDWebImage', '~> 5.8' end