require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Pod::Spec.new do |s| s.name = "NitroDeviceInfo" s.version = package["version"] s.summary = package["description"] s.homepage = package["homepage"] s.license = package["license"] s.authors = package["author"] s.platforms = { :ios => "15.1" } s.source = { :git => "https://github.com/l2hyunwoo/react-native-nitro-device-info.git", :tag => "#{package["name"]}@#{s.version}" } s.swift_version = '5.9' s.source_files = [ "ios/**/*.{swift}", "ios/**/*.{m,mm}", ] s.resource_bundles = { 'NitroDeviceInfo_privacy' => ['ios/PrivacyInfo.xcprivacy'] } load 'nitrogen/generated/ios/NitroDeviceInfo+autolinking.rb' add_nitrogen_files(s) # Same React Native wiring as the Nitro template. Without it the pod links only # NitroModules, and under `use_frameworks! :linkage => :dynamic` the JSI symbols # (exported by hermesvm) stay undefined when NitroDeviceInfo.framework links. s.dependency 'React-jsi' s.dependency 'React-callinvoker' install_modules_dependencies(s) end