-
Notifications
You must be signed in to change notification settings - Fork 326
Expand file tree
/
Copy pathPodfile
More file actions
130 lines (113 loc) · 4.64 KB
/
Podfile
File metadata and controls
130 lines (113 loc) · 4.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
source 'https://cdn.cocoapods.org'
install! 'cocoapods', :deterministic_uuids => false
inhibit_all_warnings!
def core_vlc_pods
use_modular_headers!
pod 'VLCKit', '4.0.0a18'
pod 'VLCMediaLibraryKit', '0.14.0a4'
end
def shared_pods
use_modular_headers!
pod 'XKKeychain', :git => 'https://code.videolan.org/fkuehne/XKKeychain.git', :commit => '40abb8f1'
pod 'CocoaHTTPServer', :git => 'https://code.videolan.org/fkuehne/CocoaHTTPServer.git', :commit => '08f9b818'
pod 'AFNetworking', :git => 'https://code.videolan.org/fkuehne/AFNetworking.git', :commit => 'ee51009a' # add visionOS support
end
def ios_specific_pods
use_modular_headers!
pod 'OBSlider', :git => 'https://code.videolan.org/fkuehne/OBSlider.git', :commit => 'e60cddfe'
pod 'InAppSettingsKit', :git => 'https://github.com/Mikanbu/InAppSettingsKit.git', :commit => 'a429840' #tvOS fix
pod 'GoogleAPIClientForREST/Drive', '~> 1.2.1'
pod 'GoogleSignIn', '6.2.0'
pod 'GTMAppAuth', '~> 1.0'
pod 'ADAL', :git => 'https://code.videolan.org/fkuehne/azure-activedirectory-library-for-objc.git', :commit => '348e94df'
pod 'OneDriveSDK', :git => 'https://code.videolan.org/fkuehne/onedrive-sdk-ios.git', :commit => '810f82da'
pod 'MarqueeLabel', :git => 'https://code.videolan.org/fkuehne/MarqueeLabel.git', :commit => 'e289fa32'
pod 'ObjectiveDropboxOfficial'
pod 'PCloudSDKSwift'
pod 'box-ios-sdk-v2', :git => 'https://github.com/fkuehne/box-ios-sdk-v2.git', :commit => '08161e74' #has a our fixes
# debug
pod 'SwiftLint', '~> 0.50.3', :configurations => ['Debug']
end
target 'VLC-iOS' do
platform :ios, '12.0'
core_vlc_pods
shared_pods
ios_specific_pods
target 'VLC-iOSTests' do
inherit! :search_paths
end
end
target 'VLC-iOS-no-watch' do
platform :ios, '12.0'
core_vlc_pods
shared_pods
ios_specific_pods
end
target 'VLC-iOS-Screenshots' do
platform :ios, '12.0'
inherit! :search_paths
pod 'SimulatorStatusMagic'
end
target 'VLC-tvOS' do
platform :tvos, '12.0'
core_vlc_pods
shared_pods
pod 'GRKArrayDiff', :git => 'https://code.videolan.org/fkuehne/GRKArrayDiff.git'
pod 'MetaDataFetcherKit', '~>0.5.0'
# debug
pod 'SwiftLint', '~> 0.50.3', :configurations => ['Debug']
end
target 'VLC-visionOS' do
platform :visionos, '1.0'
core_vlc_pods
shared_pods
pod 'OBSlider', :git => 'https://code.videolan.org/fkuehne/OBSlider.git', :commit => 'e60cddfe'
pod 'MarqueeLabel', :git => 'https://code.videolan.org/fkuehne/MarqueeLabel.git', :commit => 'e289fa32'
end
target 'VLC-watchOS' do
platform :watchos, '9.0'
core_vlc_pods
# debug
pod 'SwiftLint', '~> 0.50.3', :configurations => ['Debug']
end
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# Read platform of target
platform = target.platform_name
# Apply per-platform Build Settings
case platform
when :ios
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
config.build_settings['ARCHS'] = 'arm64 x86_64'
config.build_settings['SUPPORTED_PLATFORMS'] = 'iphoneos iphonesimulator'
config.build_settings['TARGETED_DEVICE_FAMILY'] = '1,2' # iPhone and iPad
when :tvos
config.build_settings['TVOS_DEPLOYMENT_TARGET'] = '12.0'
config.build_settings['ARCHS'] = 'arm64 x86_64'
config.build_settings['SUPPORTED_PLATFORMS'] = 'appletvos appletvsimulator'
config.build_settings['TARGETED_DEVICE_FAMILY'] = '3' # Apple TV
when :visionos
config.build_settings['VISIONOS_DEPLOYMENT_TARGET'] = '1.0'
config.build_settings['ARCHS'] = 'arm64 x86_64'
config.build_settings['SUPPORTED_PLATFORMS'] = 'xros xrsimulator'
config.build_settings['TARGETED_DEVICE_FAMILY'] = '7' # visionOS
when :watchos
config.build_settings['WATCHOS_DEPLOYMENT_TARGET'] = '9.0'
# VLCKit only has arm64_32 arm64 for watchOS devices
config.build_settings['ARCHS'] = 'arm64_32 arm64 x86_64'
config.build_settings['EXCLUDED_ARCHS[sdk=watchos*]'] = 'armv7k'
config.build_settings['SUPPORTED_PLATFORMS'] = 'watchos watchsimulator'
config.build_settings['TARGETED_DEVICE_FAMILY'] = '4' # Apple Watch
end
# Always set SKIP_INSTALL and other global settings
config.build_settings['SKIP_INSTALL'] = 'YES'
config.build_settings['CLANG_CXX_LIBRARY'] = 'libc++'
# Patch out sqlite3 linker flag
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
new_xcconfig = xcconfig.sub('-l"sqlite3"', '')
File.open(xcconfig_path, "w") { |file| file << new_xcconfig }
end
end
end