source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/castlabs/Specs.git'
source 'https://castlabs:fyMEr3t6@delivery-platform.broadpeak.tv/ios/broadpeak/specs.git'

VERSION = File.read('./../../VERSION')
IOS_PLATFORM_VERSION = File.read('./../../configs/platform-version-ios')
TVOS_PLATFORM_VERSION = File.read('./../../configs/platform-version-tvos')
BROADPEAK_IOS_VERSION = File.read('./../../configs/deps-versions').lines.find { |line| line.include?('SmartLib-v3/Generic') }.split(' ').last.strip
BROADPEAK_TVOS_VERSION = File.read('./../../configs/deps-versions').lines.find { |line| line.include?('SmartLib-v3/Generic+tvOS') }.split(' ').last.strip
use_frameworks!

# Pods for BroadpeakDemo
pod 'PRESTOplay', VERSION
pod 'CastlabsApple', VERSION
pod 'CastlabsBroadpeak', VERSION

target 'BroadpeakDemo' do
  platform :ios, IOS_PLATFORM_VERSION

  pod 'SmartLib-v3/Generic', BROADPEAK_IOS_VERSION
end

target 'BroadpeakDemoTV' do
  platform :tvos, TVOS_PLATFORM_VERSION

  pod 'SmartLib-v3/Generic+tvOS', BROADPEAK_TVOS_VERSION
end
