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

target 'WOKA' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!
  
  pod 'IQKeyboardManagerSwift', '~> 7.0.2'
  
  # GIF Animations
#  pod 'lottie-ios', '~> 4.4.3'
  
  #Network call
  pod 'Alamofire' , '~> 5.9.1'
  
  # Image Loading & Caching
#  pod 'SDWebImage' , '~> 5.19.4'
  
  # Google Ads
  pod 'Google-Mobile-Ads-SDK'
    
  #JwPlayer
  pod 'JWPlayerKit' , '~> 4.19.2'

  # Bottom line is for removing IPHONEOS_DEPLOYMENT_TARGET
  post_install do |installer|
    installer.generated_projects.each do |project|
      project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
          config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = 'NO'
          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
  end
end
