1*753557f6STomasz Sapeta# Copyright (c) Meta Platforms, Inc. and affiliates.
2*753557f6STomasz Sapeta#
3*753557f6STomasz Sapeta# This source code is licensed under the MIT license found in the
4*753557f6STomasz Sapeta# LICENSE file in the root directory of this source tree.
5*753557f6STomasz Sapeta
6*753557f6STomasz Sapetarequire "json"
7*753557f6STomasz Sapeta
8*753557f6STomasz Sapetapackage = JSON.parse(File.read(File.join(__dir__, "..", "package.json")))
9*753557f6STomasz Sapetaversion = package['version']
10*753557f6STomasz Sapeta
11*753557f6STomasz Sapeta
12*753557f6STomasz Sapeta
13*753557f6STomasz Sapetafolly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
14*753557f6STomasz Sapetafolly_version = '2021.07.22.00'
15*753557f6STomasz Sapeta
16*753557f6STomasz SapetaPod::Spec.new do |s|
17*753557f6STomasz Sapeta  s.name                   = "ABI47_0_0React-bridging"
18*753557f6STomasz Sapeta  s.version                = version
19*753557f6STomasz Sapeta  s.summary                = "-"  # TODO
20*753557f6STomasz Sapeta  s.homepage               = "https://reactnative.dev/"
21*753557f6STomasz Sapeta  s.license                = package["license"]
22*753557f6STomasz Sapeta  s.author                 = "Facebook, Inc. and its affiliates"
23*753557f6STomasz Sapeta  s.platforms              = { :ios => "12.4" }
24*753557f6STomasz Sapeta  s.source                 = { :path => "." }
25*753557f6STomasz Sapeta  s.source_files           = "react/bridging/**/*.{cpp,h}"
26*753557f6STomasz Sapeta  s.exclude_files          = "react/bridging/tests"
27*753557f6STomasz Sapeta  s.header_dir             = "ABI47_0_0react/bridging"
28*753557f6STomasz Sapeta  s.header_mappings_dir    = "react/bridging"
29*753557f6STomasz Sapeta  s.compiler_flags         = folly_compiler_flags
30*753557f6STomasz Sapeta  s.pod_target_xcconfig    = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\"",
31*753557f6STomasz Sapeta                               "USE_HEADERMAP" => "YES",
32*753557f6STomasz Sapeta                               "CLANG_CXX_LANGUAGE_STANDARD" => "c++17" }
33*753557f6STomasz Sapeta
34*753557f6STomasz Sapeta  s.dependency "RCT-Folly", folly_version
35*753557f6STomasz Sapeta  s.dependency "ABI47_0_0React-jsi", version
36*753557f6STomasz Sapetaend
37