forked from material-components/material-components-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
139 lines (130 loc) · 4.36 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
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
131
132
133
134
135
136
137
138
139
workspace 'MDCCatalog.xcworkspace'
project 'MDCCatalog.xcodeproj'
# TODO: Uncomment line below and switch from legacy build system when Cocoapods 1.6 goes out of beta
# install! 'cocoapods', :disable_input_output_paths => true
target "MDCCatalog" do
platform :ios, '9.0'
project 'MDCCatalog.xcodeproj'
pod 'MaterialComponentsExamples', :path => '../'
pod 'MaterialComponents', :path => '../', :testspecs => [
'ActionSheet/UnitTests',
'ActionSheet+Theming/UnitTests',
'ActivityIndicator/UnitTests',
'AnimationTiming/UnitTests',
'AppBar/UnitTests',
'AppBar+Theming/UnitTests',
'Banner/UnitTests',
'Banner+Theming/UnitTests',
'BottomAppBar/UnitTests',
'BottomNavigation/UnitTests',
'BottomNavigation+Theming/UnitTests',
'BottomSheet/UnitTests',
'ButtonBar/UnitTests',
'Buttons/UnitTests',
'Buttons+Theming/UnitTests',
'Cards/UnitTests',
'Cards+Theming/UnitTests',
'Chips/UnitTests',
'Chips+Theming/UnitTests',
'CollectionCells/UnitTests',
'CollectionLayoutAttributes/UnitTests',
'Collections/UnitTests',
'Dialogs/UnitTests',
'Dialogs+Theming/UnitTests',
'Elevation/UnitTests',
'FeatureHighlight/UnitTests',
'FlexibleHeader/UnitTests',
'HeaderStackView/UnitTests',
'Ink/UnitTests',
'LibraryInfo/UnitTests',
'List/UnitTests',
'List+Theming/UnitTests',
'MaskedTransition/UnitTests',
'NavigationBar/UnitTests',
'NavigationDrawer/UnitTests',
'OverlayWindow/UnitTests',
'PageControl/UnitTests',
'Palettes/UnitTests',
'private/Application/UnitTests',
'private/Color/UnitTests',
'private/Icons/UnitTests',
'private/KeyboardWatcher/UnitTests',
'private/Math/UnitTests',
'private/Overlay/UnitTests',
'private/ThumbTrack/UnitTests',
'private/UIMetrics/UnitTests',
'ProgressView/UnitTests',
'ProgressView+Theming/UnitTests',
'Ripple/UnitTests',
'schemes/Color/UnitTests',
'schemes/Container/UnitTests',
'schemes/Shape/UnitTests',
'schemes/Typography/UnitTests',
'ShadowElevations/UnitTests',
'ShadowLayer/UnitTests',
'ShapeLibrary/UnitTests',
'Shapes/UnitTests',
'Slider/UnitTests',
'Snackbar/UnitTests',
'Tabs/UnitTests',
'Tabs+Theming/UnitTests',
'TextFields/UnitTests',
'TextFields+ContainedInputView/UnitTests',
'TextFields+Theming/UnitTests',
'Themes/UnitTests',
'Typography/UnitTests',
]
pod 'MaterialComponentsBeta', :path => '../', :testspecs => [
'ActionSheet+ActionSheetThemer/UnitTests',
'ActionSheet+ColorThemer/UnitTests',
'BottomNavigation/UnitTests',
'ButtonBar+Theming/UnitTests',
'Tabs+TabBarView/UnitTests',
]
pod 'MaterialComponentsSnapshotTests', :path => '../', :testspecs => [
'SnapshotTests'
]
pod 'CatalogByConvention', "~> 2.5"
pod 'MaterialCatalog', :path => 'MaterialCatalog/'
use_frameworks!
end
target "MDCActionExtension" do
platform :ios, '9.0'
project 'MDCCatalog.xcodeproj'
pod 'MaterialComponentsExamples', :path => '../'
pod 'MaterialComponents', :path => '../'
pod 'MaterialComponentsBeta', :path => '../'
pod 'CatalogByConvention', "~> 2.5"
pod 'MaterialCatalog', :path => 'MaterialCatalog/'
use_frameworks!
end
target "MDCDragons" do
platform :ios, '9.0'
project 'MDCDragons.xcodeproj'
pod 'CatalogByConvention', "~> 2.5"
pod 'MaterialComponents', :path => '../'
pod 'MaterialComponentsBeta', :path => '../'
pod 'MaterialComponentsExamples', :path => '../'
use_frameworks!
end
post_install do |installer|
mdc_xcconfigs = []
target_support_files_path = File.dirname(installer.pods_project.path) + "/" + "Target Support Files"
subdirectories = ["MaterialComponents", "MaterialComponentsBeta", "MaterialComponentsExamples", "Pods-MDCCatalog"]
subdirectories.each do |subdirectory|
subdirectory_path = target_support_files_path + "/" + subdirectory
Dir.foreach(subdirectory_path) do |file|
if file.include? "xcconfig"
file_path = subdirectory_path + "/" + file
mdc_xcconfigs.push file_path
end
end
end
# Note the path is relative to the xcconfig file being modified.
# https://pewpewthespells.com/blog/xcconfig_guide.html
mdc_xcconfigs.each do |mdc_xcconfig|
new_xcconfig = File.read(mdc_xcconfig)
new_xcconfig << "\n#include \"../../../MaterialComponentsWarnings.xcconfig\""
File.write(mdc_xcconfig, new_xcconfig)
end
end