# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'

target 'BiometridOnApp' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for BiometridOnApp
  
  # Force Socket.IO to version 16.1.1 to match client requirements
  pod 'Socket.IO-Client-Swift', '~> 16.1.1'
  
  # Other dependencies
  pod 'Alamofire', '~> 5.0'
  pod 'Starscream', '~> 4.0'
  pod 'TrustKit', '~> 1.0'
  pod 'TinyConstraints', '~> 4.0'
  
  # Your internal framework (adjust path as needed)
  # pod 'BiometridStandard', :path => './'
  
end

# Post-install hook to ensure Swift version compatibility
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
      config.build_settings['SWIFT_VERSION'] = '5.0'
      
      # Ensure frameworks are signed properly
      config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
      config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
      config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
    end
  end
end
