1# coding: utf-8 2# Copyright (c) Meta Platforms, Inc. and affiliates. 3# 4# This source code is licensed under the MIT license found in the 5# LICENSE file in the root directory of this source tree. 6 7require "json" 8 9package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json"))) 10version = package['version'] 11 12 13 14folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' 15folly_version = '2021.07.22.00' 16boost_compiler_flags = '-Wno-documentation' 17 18Pod::Spec.new do |s| 19 s.name = "ABI48_0_0React-logger" 20 s.version = version 21 s.summary = "-" # TODO 22 s.homepage = "https://reactnative.dev/" 23 s.license = package["license"] 24 s.author = "Facebook, Inc. and its affiliates" 25 s.platforms = { :ios => "12.4" } 26 s.source = { :path => "." } 27 s.source_files = "*.{cpp,h}" 28 s.exclude_files = "SampleCxxModule.*" 29 s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags 30 s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "" } 31 s.header_dir = "ABI48_0_0logger" 32 33 s.dependency "glog" 34end 35