1# Copyright (c) Meta Platforms, Inc. and affiliates. 2# 3# This source code is licensed under the MIT license found in the 4# LICENSE file in the root directory of this source tree. 5 6require "json" 7 8package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json"))) 9version = package['version'] 10 11 12 13Pod::Spec.new do |s| 14 s.name = "ABI49_0_0React-jsc" 15 s.version = version 16 s.summary = "JavaScriptCore engine for React Native" 17 s.homepage = "https://reactnative.dev/" 18 s.license = package["license"] 19 s.author = "Meta Platforms, Inc. and its affiliates" 20 s.platforms = { :ios => "12.4" } 21 s.source = { :path => "." } 22 s.source_files = "ABI49_0_0JSCRuntime.{cpp,h}" 23 s.exclude_files = "**/test/*" 24 s.framework = "JavaScriptCore" 25 26 s.dependency "ABI49_0_0React-jsi", version 27 28 s.subspec "Fabric" do |ss| 29 ss.pod_target_xcconfig = { "OTHER_CFLAGS" => "$(inherited) -DRN_FABRIC_ENABLED" } 30 end 31end 32