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

target 'fashwire' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for fashwire
  pod 'MarkusUtil', path: '~/CustomPod/MarkusUtil/' # local path to 'MarkusUtil'
  pod 'Alamofire', '~> 4.9.1'
  pod 'MBProgressHUD'
  pod 'YLProgressBar'
  pod 'BRYXBanner'
  pod 'ViewDeck'
  pod 'CHTCollectionViewWaterfallLayout/Swift'
  pod 'MDCSwipeToChoose'
  pod 'SDWebImage'
  pod 'UIActivityIndicator-for-SDWebImage'
  pod 'CollapsibleTableSectionViewController'
  pod 'JPVideoPlayer'
#  pod 'FBSDKLoginKit', '~> 11.1.0'
  pod 'GoogleSignIn'
  pod 'ESPullToRefresh'
  pod 'SwiftGifOrigin'
  pod 'Firebase/Core' 
  pod 'YPImagePicker','~> 5.2.1'
  pod 'SCLAlertView'
  pod 'Flurry-iOS-SDK/FlurrySDK' #Analytics Pod
  pod 'GooglePlaces'
  # add the Firebase pod for Google Analytics
  pod 'Firebase/Analytics'
  pod 'Firebase/Crashlytics'
  pod 'FBSDKCoreKit’
  pod 'FBSDKLoginKit'
  pod 'FBSDKShareKit'
#  pod 'FacebookSDK'
#  pod 'FacebookSDK/LoginKit'
#  pod 'FacebookSDK/ShareKit'
#  pod 'FacebookSDK/PlacesKit'
#
#  pod 'FBSDKMessengerShareKit'
#  # add pods for any other desired Firebase products
  # https://firebase.google.com/docs/ios/setup#available-pods
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
        end
        
#        if target.name == 'CollapsibleTableSectionViewController'
#            target.build_configurations.each do |config|
#                config.build_settings['SWIFT_VERSION'] = '3'
#            end
#        end
        # post hooker for MarkusUtil
        if target.name == 'MarkusUtil'
            target.build_configurations.each do |config|
                config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'No'
                if config.name == 'Debug'
                    config.build_settings['OTHER_SWIFT_FLAGS'] = '${inherited} -D MARKUSUTIL_DEBUG'
                    else
                      config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
                    config.build_settings['OTHER_SWIFT_FLAGS'] = '${inherited}'
                end
            end
        end
    end
end
