| 1 | require "json" |
| 2 | |
| 3 | package = JSON.parse(File.read(File.join(__dir__, "package.json"))) |
| 4 | new_arch_enabled = ENV["RCT_NEW_ARCH_ENABLED"] == "1" |
| 5 | |
| 6 | Pod::Spec.new do |s| |
| 7 | s.name = "T3SourceText" |
| 8 | s.version = package["version"] |
| 9 | s.summary = "Native selectable source text for T3 Code mobile." |
| 10 | s.description = "Fabric-backed styled source text with whole-document selection." |
| 11 | s.homepage = "https://t3tools.com" |
| 12 | s.license = { :type => "MIT", :file => "LICENSE" } |
| 13 | s.author = { "T3 Tools" => "hello@t3tools.com" } |
| 14 | s.platforms = { :ios => min_ios_version_supported } |
| 15 | s.source = { :path => "." } |
| 16 | s.source_files = "ios/**/*.{h,m,mm,cpp}" |
| 17 | |
| 18 | install_modules_dependencies(s) |
| 19 | |
| 20 | if ENV["USE_FRAMEWORKS"] != nil && new_arch_enabled |
| 21 | add_dependency(s, "React-FabricComponents", :additional_framework_paths => [ |
| 22 | "react/renderer/textlayoutmanager/platform/ios", |
| 23 | ]) |
| 24 | end |
| 25 | end |