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

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

  # Pods for EPOS

  pod 'IQKeyboardManagerSwift'
  pod 'FirebaseMessaging'
  pod 'FirebaseAppCheck'
  pod 'BetterSegmentedControl'
  pod 'DropDown'
  pod 'ActionSheetPicker-3.0'
  pod 'Toast-Swift'
  pod 'Stripe'
  pod 'FirebaseAnalytics'
  pod 'FirebaseCrashlytics'
  pod 'FirebasePerformance'
  pod 'FirebaseRemoteConfig'
  pod 'Charts'
  pod 'FormTextField'
  pod 'SDWebImage'
  pod 'SummerSlider'
  pod 'GrowingTextView'
  pod 'iRecordView'
  pod 'RangeSeekSlider'
  pod 'lottie-ios'
  pod 'StripeTerminal'
  pod 'Socket.IO-Client-Swift'

end

post_install do |installer|
    installer.pods_project.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0'
    end
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0'
            xcconfig_path = config.base_configuration_reference.real_path
            xcconfig = File.read(xcconfig_path)
            xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
            File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
        end
    end
end
