forked from microsoft/fluentui-apple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMicrosoftFluentUI.podspec
151 lines (124 loc) · 5.69 KB
/
MicrosoftFluentUI.podspec
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
140
141
142
143
144
145
146
147
148
149
150
151
Pod::Spec.new do |s|
s.name = 'MicrosoftFluentUI'
s.version = '0.1.16'
s.summary = 'Fluent UI is a set of reusable UI controls and tools'
s.homepage = "https://www.microsoft.com/design/fluent/#/"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Microsoft" => "[email protected]"}
s.source = { :git => "https://github.com/microsoft/fluentui-apple.git", :tag => "#{s.version}" }
s.swift_version = "5.0"
s.module_name = 'FluentUI'
# iOS
s.ios.deployment_target = "11.0"
s.subspec 'Calendar_ios' do |calendar_ios|
calendar_ios.platform = :ios
calendar_ios.dependency 'MicrosoftFluentUI/Presenters_ios'
calendar_ios.source_files = ["ios/FluentUI/Calendar/**/*.{swift,h}",
"ios/FluentUI/Date Time Pickers/**/*.{swift,h}"]
end
s.subspec 'Card_ios' do |card_ios|
card_ios.platform = :ios
card_ios.dependency 'MicrosoftFluentUI/Controls_ios'
card_ios.source_files = ["ios/FluentUI/Card/**/*.{swift,h}"]
end
s.subspec 'Controls_ios' do |controls_ios|
controls_ios.platform = :ios
controls_ios.dependency 'MicrosoftFluentUI/Core_ios'
controls_ios.source_files = ["ios/FluentUI/Badge Field/**/*.{swift,h}",
"ios/FluentUI/Controls/**/*.{swift,h}",
"ios/FluentUI/Navigation/**/*.{swift,h}",
"ios/FluentUI/People Picker/**/*.{swift,h}",
"ios/FluentUI/Table View/**/*.{swift,h}"]
end
s.subspec 'Core_ios' do |core_ios|
core_ios.platform = :ios
core_ios.resource_bundle = { 'FluentUIResources-ios' => ["apple/Resources/**/*.{json,xcassets}",
"ios/FluentUI/**/*.{storyboard,xib,xcassets,strings,stringsdict}"] }
core_ios.source_files = ["ios/FluentUI/Configuration/**/*.{swift,h}",
"ios/FluentUI/Core/**/*.{swift,h}",
"ios/FluentUI/Extensions/**/*.{swift,h}"]
end
s.subspec 'Drawer_ios' do |drawer_ios|
drawer_ios.platform = :ios
drawer_ios.dependency 'MicrosoftFluentUI/Controls_ios'
drawer_ios.source_files = ["ios/FluentUI/Drawer/**/*.{swift,h}"]
end
s.subspec 'HUD_ios' do |hud_ios|
hud_ios.platform = :ios
hud_ios.dependency 'MicrosoftFluentUI/Controls_ios'
hud_ios.source_files = ["ios/FluentUI/HUD/**/*.{swift,h}"]
end
s.subspec 'Notification_ios' do |notification_ios|
notification_ios.platform = :ios
notification_ios.dependency 'MicrosoftFluentUI/Controls_ios'
notification_ios.source_files = ["ios/FluentUI/Notification/**/*.{swift,h}"]
end
s.subspec 'PillButtonBar_ios' do |pillbuttonbar_ios|
pillbuttonbar_ios.platform = :ios
pillbuttonbar_ios.dependency 'MicrosoftFluentUI/Core_ios'
pillbuttonbar_ios.source_files = ["ios/FluentUI/Pill Button Bar/**/*.{swift,h}"]
end
s.subspec 'PopupMenu_ios' do |popupmenu_ios|
popupmenu_ios.platform = :ios
popupmenu_ios.dependency 'MicrosoftFluentUI/Drawer_ios'
popupmenu_ios.source_files = ["ios/FluentUI/Popup Menu/**/*.{swift,h}"]
end
s.subspec 'Presenters_ios' do |presenters_ios|
presenters_ios.platform = :ios
presenters_ios.dependency 'MicrosoftFluentUI/Controls_ios'
presenters_ios.source_files = ["ios/FluentUI/Presenters/**/*.{swift,h}"]
end
s.subspec 'Shimmer_ios' do |shimmer_ios|
shimmer_ios.platform = :ios
shimmer_ios.dependency 'MicrosoftFluentUI/Core_ios'
shimmer_ios.dependency 'MicrosoftFluentUI/Utilities_ios'
shimmer_ios.source_files = ["ios/FluentUI/Shimmer/**/*.{swift,h}"]
end
s.subspec 'TabBar_ios' do |tabbar_ios|
tabbar_ios.platform = :ios
tabbar_ios.dependency 'MicrosoftFluentUI/Controls_ios'
tabbar_ios.source_files = ["ios/FluentUI/Tab Bar/**/*.{swift,h}"]
end
s.subspec 'Tooltip_ios' do |tooltip_ios|
tooltip_ios.platform = :ios
tooltip_ios.dependency 'MicrosoftFluentUI/Controls_ios'
tooltip_ios.source_files = ["ios/FluentUI/Tooltip/**/*.{swift,h}"]
end
s.subspec 'Utilities_ios' do |utilities_ios|
utilities_ios.platform = :ios
utilities_ios.source_files = ["ios/FluentUI/Utilities/**/*.{swift,h}"]
end
# Mac
s.osx.deployment_target = "10.13"
s.subspec 'AvatarView_mac' do |avatarview_mac|
avatarview_mac.platform = :osx
avatarview_mac.dependency 'MicrosoftFluentUI/Core_mac'
avatarview_mac.source_files = ["macos/FluentUI/AvatarView/**/*.{swift,h}"]
end
s.subspec 'Button_mac' do |button_mac|
button_mac.platform = :osx
button_mac.dependency 'MicrosoftFluentUI/Core_mac'
button_mac.source_files = ["macos/FluentUI/Button/**/*.{swift,h}"]
end
s.subspec 'Core_mac' do |core_mac|
core_mac.platform = :osx
core_mac.resource_bundle = { 'FluentUIResources-macos' => ["apple/Resources/**/*.{json,xcassets}",
"macos/FluentUIResources-macos/**/*.{storyboard,xib,xcassets,strings,stringsdict}"] }
core_mac.source_files = ["macos/FluentUI/Core/**/*.{swift,h}"]
end
s.subspec 'DatePicker_mac' do |datepicker_mac|
datepicker_mac.platform = :osx
datepicker_mac.dependency 'MicrosoftFluentUI/Core_mac'
datepicker_mac.source_files = ["macos/FluentUI/DatePicker/**/*.{swift,h}"]
end
s.subspec 'Link_mac' do |link_mac|
link_mac.platform = :osx
link_mac.dependency 'MicrosoftFluentUI/Core_mac'
link_mac.source_files = ["macos/FluentUI/Link/**/*.{swift,h}"]
end
s.subspec 'Separator_mac' do |separator_mac|
separator_mac.platform = :osx
separator_mac.dependency 'MicrosoftFluentUI/Core_mac'
separator_mac.source_files = ["macos/FluentUI/Separator/**/*.{swift,h}"]
end
end