install! 'cocoapods', 
  :disable_input_output_paths => true,
  :generate_multiple_pod_projects => true,
  :warn_for_multiple_pod_sources => false
  
platform :ios, '9.0'
inhibit_all_warnings!

require 'bd_pod_extentions'
# plugin 'cocoapods-bytedance-transform'
# plugin 'cocoapods-unit-test'
source 'https://cdn.cocoapods.org'
#source 'https://github.com/volcengine/volcengine-specs.git'
bd_use_app("thirdParty","public")

target "ObjCExample" do
  pod 'RangersAppLog',
#    '6.16.7-rc.0',
    :path => '../',
    :subspecs => [
#      'Host/SG',
#      'Host/VA',
      'Host/CN',
#      'CAID',
      'Core',
      'Unique',
      'Log',
      'Picker',
      'UITracker',
#      'Location',
#      'Encryptor/SM2',
      'Tracer',
      'ET',
      'Filter',
      'ASA',
      'CBridge',
      'VolMetaSecML',
      'DeviceOrientation',
      'Exception',
      'Exposure',
      'DevTools',
#      'Encryptor',
      'ClientABTest',
      'OneID',
      'Game',
      'ALinkDoubleSend'
    ],
    :testspecs => [
      'Tests',
    ],
    :inhibit_warnings => false
  
  # UI Compatibility Test
  pod 'IGListKit', '4.0.0'
#  pod 'SensorsAnalyticsSDK'
#  pod 'VolMetaSecML', '4.3.0.5-bugfix'

end

def update_deployment_config(config = nil)
  return if config.nil?
  config.build_settings['ENABLE_BITCODE'] = 'YES'
  if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 9.0
    config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
  end
end

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    update_deployment_config(config)
  end
  
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      update_deployment_config(config)
    end
  end
  ## for generate_multiple_pod_projects = true
  installer.generated_projects.each do |project|
    project.build_configurations.each do |config|
      update_deployment_config(config)
    end
    
    project.targets.each do |target|
      target.build_configurations.each do |config|
        update_deployment_config(config)
      end
    end
  end

end

