require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Pod::Spec.new do |s| s.name = "react-native-thermal-printer" s.version = package["version"] s.summary = "React Native Thermal Printer Library" s.description = <<-DESC React Native library for thermal printing with support for ESC/POS, CPCL, TSPL protocols. Supports LAN/TCP, Bluetooth SPP, and BLE connections. DESC s.homepage = "https://github.com/finan-me/react-native-thermal-printer" s.license = "MIT" s.authors = { "Finan" => "support@finan.vn" } s.platforms = { :ios => "13.0" } s.source = { :git => "https://github.com/finan-me/react-native-thermal-printer.git", :tag => "#{s.version}" } s.source_files = "ios/**/*.{h,c,cc,cpp,m,mm,swift}" s.requires_arc = true s.dependency "React" s.dependency "React-Core" # Enable modular headers for Swift/Objective-C interop s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'SWIFT_EMIT_LOC_STRINGS' => 'YES', 'SWIFT_VERSION' => '5.0' } # Disable Hermes if not using New Architecture s.compiler_flags = '-DRCT_NEW_ARCH_ENABLED=0' end