-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathPodfile
82 lines (64 loc) · 1.9 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
source 'https://github.com/CocoaPods/Specs.git'
inhibit_all_warnings!
$project_name = 'Chanify'
$ios_version = '14.0'
$osx_version = '11.0'
$watchos_version = '7.0'
platform :ios, $ios_version
target 'iOS' do
platform :ios, $ios_version
pod 'FMDB'
pod 'JLRoutes'
pod 'Masonry'
pod 'Protobuf'
end
target 'OSX' do
platform :osx, $osx_version
pod 'FMDB'
pod 'JLRoutes'
pod 'Masonry'
pod 'Protobuf'
end
target 'NotificationServiceIOS' do
platform :ios, $ios_version
pod 'FMDB'
pod 'Protobuf'
end
target 'WidgetsExtension' do
platform :ios, $ios_version
pod 'FMDB'
pod 'Protobuf'
end
target 'WidgetIntents' do
platform :ios, $ios_version
pod 'FMDB'
end
target 'Watch Extension' do
platform :watchos, $watchos_version
pod 'FMDB'
pod 'Protobuf'
end
target 'WatchNotificationService' do
platform :watchos, $watchos_version
pod 'FMDB'
pod 'Protobuf'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED'] = 'YES'
if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < $ios_version.to_f
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $ios_version
end
if config.build_settings['MACOSX_DEPLOYMENT_TARGET'].to_f < $osx_version.to_f
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = $osx_version
end
if config.build_settings['WATCHOS_DEPLOYMENT_TARGET'].to_f < $watchos_version.to_f
config.build_settings['WATCHOS_DEPLOYMENT_TARGET'] = $watchos_version
end
end
end
# Install acknowledgements
FileUtils.cp_r('Pods/Target Support Files/Pods-iOS/Pods-iOS-acknowledgements.plist', 'iOS/Resources/Settings.bundle/Acknowledgements.plist', :remove_destination => true)
FileUtils.cp_r('Pods/Target Support Files/Pods-OSX/Pods-OSX-acknowledgements.plist', 'OSX/Resources/Acknowledgements.plist', :remove_destination => true)
end