Organize Podfile to avoid repeting the same dependencies among different targets
(cherry picked from commit c24e7cf9)
Showing
source 'https://github.com/CocoaPods/Specs.git' | source 'https://github.com/CocoaPods/Specs.git' | ||
install! 'cocoapods', :deterministic_uuids => false | install! 'cocoapods', :deterministic_uuids => false | ||
inhibit_all_warnings! | inhibit_all_warnings! | ||
target 'VLC-iOS' do | def shared_pods | ||
platform :ios, '9.0' | pod 'XKKeychain', '~>1.0' | ||
pod 'box-ios-sdk-v2', :git => 'git://github.com/fkuehne/box-ios-sdk-v2.git' #has a logout function added | |||
pod 'upnpx', '~>1.4.0' | |||
pod 'CocoaHTTPServer', :git => 'git://github.com/fkuehne/CocoaHTTPServer.git' # has our fixes | |||
pod 'VLC-WhiteRaccoon' | |||
pod 'VLC-LiveSDK', '5.7.0x' | |||
pod 'ObjectiveDropboxOfficial', :git => 'git://github.com/carolanitz/dropbox-sdk-obj-c.git' #update ios platform version | |||
end | |||
pod 'OBSlider', '1.1.0' | def iOS_pods | ||
pod 'InAppSettingsKit', :git => 'git://github.com/fkuehne/InAppSettingsKit.git', :commit => '415ea6bb' #tvOS fix | pod 'OBSlider', '1.1.0' | ||
pod 'upnpx', '~>1.4.0' | pod 'InAppSettingsKit', :git => 'git://github.com/fkuehne/InAppSettingsKit.git', :commit => '415ea6bb' #tvOS fix | ||
pod 'HockeySDK', '~>5.1.2', :subspecs => ['CrashOnlyLib'] | pod 'HockeySDK', '~>5.1.2', :subspecs => ['CrashOnlyLib'] | ||
pod 'XKKeychain', '~>1.0' | pod 'RESideMenu', '~>4.0.7' | ||
pod 'box-ios-sdk-v2', :git => 'git://github.com/fkuehne/box-ios-sdk-v2.git' #has a logout function added | pod 'PAPasscode', '~>1.0' | ||
pod 'CocoaHTTPServer', :git => 'git://github.com/fkuehne/CocoaHTTPServer.git' # has our fixes | pod 'GoogleAPIClient/Drive' | ||
pod 'RESideMenu', '~>4.0.7' | pod 'VLC-LXReorderableCollectionViewFlowLayout', '0.1.3v' | ||
pod 'PAPasscode', '~>1.0' | pod 'MediaLibraryKit-prod' | ||
pod 'GoogleAPIClient/Drive' | pod 'MobileVLCKit', '3.0.2' | ||
pod 'VLC-LXReorderableCollectionViewFlowLayout', '0.1.3v' | pod 'GTMAppAuth' | ||
pod 'VLC-WhiteRaccoon' | |||
pod 'VLC-LiveSDK', '5.7.0x' | |||
pod 'MediaLibraryKit-prod' | |||
pod 'MobileVLCKit', '3.0.2' | |||
pod 'GTMAppAuth' | |||
pod 'ObjectiveDropboxOfficial', :git => 'git://github.com/carolanitz/dropbox-sdk-obj-c.git' #update ios platform version | |||
end | end | ||
target 'VLC-iOS-no-watch' do | target 'VLC-iOS' do | ||
platform :ios, '9.0' | platform :ios, '9.0' | ||
shared_pods | |||
iOS_pods | |||
end | |||
pod 'OBSlider', '1.1.0' | target 'VLC-iOS-no-watch' do | ||
pod 'InAppSettingsKit', :git => 'git://github.com/fkuehne/InAppSettingsKit.git', :commit => '415ea6bb' #tvOS fix | platform :ios, '9.0' | ||
pod 'upnpx', '~>1.4.0' | shared_pods | ||
pod 'HockeySDK', '~>5.1.2', :subspecs => ['CrashOnlyLib'] | iOS_pods | ||
pod 'XKKeychain', '~>1.0' | |||
pod 'box-ios-sdk-v2', :git => 'git://github.com/fkuehne/box-ios-sdk-v2.git' #has a logout function added | |||
pod 'CocoaHTTPServer', :git => 'git://github.com/fkuehne/CocoaHTTPServer.git' # has our fixes | |||
pod 'RESideMenu', '~>4.0.7' | |||
pod 'PAPasscode', '~>1.0' | |||
pod 'GoogleAPIClient/Drive' | |||
pod 'VLC-LXReorderableCollectionViewFlowLayout', '0.1.3v' | |||
pod 'VLC-WhiteRaccoon' | |||
pod 'VLC-LiveSDK', '5.7.0x' | |||
pod 'MediaLibraryKit-prod' | |||
pod 'MobileVLCKit', '3.0.2' | |||
pod 'ObjectiveDropboxOfficial', :git => 'git://github.com/carolanitz/dropbox-sdk-obj-c.git' #update ios platform version | |||
pod 'GTMAppAuth' | |||
end | end | ||
target 'VLC-tvOS' do | target 'VLC-tvOS' do | ||
platform :tvos, '10.2' | platform :tvos, '10.2' | ||
pod 'XKKeychain', '~>1.0' | shared_pods | ||
pod 'box-ios-sdk-v2', :git => 'git://github.com/fkuehne/box-ios-sdk-v2.git' #has tvOS support added | pod 'MetaDataFetcherKit', '~>0.3.1' | ||
pod 'upnpx', '~>1.4.0' | pod "OROpenSubtitleDownloader", :git => 'https://github.com/orta/OROpenSubtitleDownloader.git', :commit => '0509eac2' | ||
pod 'CocoaHTTPServer', :git => 'git://github.com/fkuehne/CocoaHTTPServer.git' # has our fixes | pod 'GRKArrayDiff', '~> 2.1' | ||
pod 'MetaDataFetcherKit', '~>0.1.8' | pod 'HockeySDK-tvOS', '~>5.0.0' | ||
pod "OROpenSubtitleDownloader", :git => 'https://github.com/orta/OROpenSubtitleDownloader.git', :commit => '0509eac2' | pod 'TVVLCKit', '3.0.2' | ||
pod 'GRKArrayDiff', '~> 2.1' | |||
pod 'VLC-WhiteRaccoon' | |||
pod 'VLC-LiveSDK', '5.7.0x' | |||
pod 'ObjectiveDropboxOfficial', :git => 'git://github.com/carolanitz/dropbox-sdk-obj-c.git' #update ios platform version | |||
pod 'HockeySDK-tvOS', '~>5.0.0' | |||
pod 'TVVLCKit', '3.0.2' | |||
end | end | ||
target 'VLC-watchOS-Extension' do | target 'VLC-watchOS-Extension' do | ||
platform :watchos, '2.0' | platform :watchos, '2.0' | ||
pod 'MediaLibraryKit-unstable' | |||
pod 'MediaLibraryKit-prod' | |||
end | end | ||
post_install do |installer_representation| | post_install do |installer_representation| | ||
installer_representation.pods_project.targets.each do |target| | installer_representation.pods_project.targets.each do |target| | ||
if target.name == 'VLC-watchOS-Extension' | if target.name == 'VLC-watchOS-Extension' | ||
installer_representation.pods_project.build_configurations.each do |config| | installer_representation.pods_project.build_configurations.each do |config| | ||
config.build_settings['SKIP_INSTALL'] = 'YES' | config.build_settings['SKIP_INSTALL'] = 'YES' | ||
... | @@ -91,7 +69,5 @@ post_install do |installer_representation| | ... | @@ -91,7 +69,5 @@ post_install do |installer_representation| |
config.build_settings['CLANG_CXX_LIBRARY'] = 'libc++' | config.build_settings['CLANG_CXX_LIBRARY'] = 'libc++' | ||
end | end | ||
end | end | ||
end | end | ||
end | end |
Please register or sign in to comment