platform :ios, '9.3'
use_frameworks!

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/brion/OGVKit-Specs.git'

target 'TheChan' do
    pod 'Alamofire', '~> 4.0'
    pod 'Kingfisher'
    pod 'Fuzi', '~> 2.0.0'
    pod 'RealmSwift'
    pod 'IQKeyboardManagerSwift'
    pod 'Fabric'
    pod 'Crashlytics'
    pod 'CCBottomRefreshControl'
    pod 'Texture'
    pod 'TUSafariActivity', '~> 1.0'
    pod 'DZNEmptyDataSet'
    pod 'EasyTipView', '~> 1.0.2'
    pod 'Bugsnag'
    pod 'FDFullscreenPopGesture', :git => 'https://github.com/forkingdog/FDFullscreenPopGesture'
    pod 'OGVKit', :path => '~/Development/OGVKit' #'0.5pre'
    pod 'YYText', '~> 1.0.7'
end

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == 'EasyTipView'
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '3.2'
            end
        end
        target.build_configurations.each do |config|
            config.build_settings['ENABLE_BITCODE'] = 'NO'
            config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'USE_ALLOCA', 'OPUS_BUILD']
        end
    end
end
