forked from Awful/Awful.app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
63 lines (50 loc) · 1.77 KB
/
Podfile
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
source 'https://cdn.cocoapods.org/'
platform :ios, '9.0'
project 'Xcode/Awful'
use_frameworks!
inhibit_all_warnings!
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
install! 'cocoapods', :generate_multiple_pod_projects => true
target 'Awful' do
pod 'FLAnimatedImage'
pod 'KVOController'
pod 'MRProgress/Overlay'
# Fixes a compile error; I'm happy to pin to some subsequent tagged version if that ever happens.
pod 'PSMenuItem', :git => 'https://github.com/steipete/PSMenuItem', :commit => '489dbb1c42f8c2c43ac04f0a34faf9aea3b7aa79'
pod 'PullToRefresher', '3.2' # 3.3 breaks custom refresher views
target :AwfulTests
end
target :Smilies do
pod 'FLAnimatedImage'
target :SmiliesTests
end
target :SmilieExtractor do
pod 'FLAnimatedImage'
end
post_install do |installer|
extension_safe_pods = %w[FLAnimatedImage]
swift_4_2_pods = %w[PullToRefresher]
installer.pod_target_subprojects.each do |subproj|
if extension_safe_pods.include?(subproj.project_name.to_s)
subproj.build_configurations.each do |config|
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'YES'
end
end
if swift_4_2_pods.include?(subproj.project_name.to_s)
subproj.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.2'
end
end
end
deployment_target = installer.pods_project.build_configurations.first.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
installer.pod_target_subprojects.each do |subproj|
subproj.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
end
subproj.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end
end