forked from material-components/material-components-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MaterialComponentsAlpha.podspec
77 lines (63 loc) · 3.85 KB
/
MaterialComponentsAlpha.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
Pod::Spec.new do |mdc|
mdc.name = "MaterialComponentsAlpha"
mdc.version = "64.0.0"
mdc.authors = "The Material Components authors."
mdc.summary = "A collection of stand-alone alpha UI libraries that are not yet guaranteed to be ready for general production use. Use with caution."
mdc.homepage = "https://github.com/material-components/material-components-ios"
mdc.license = "Apache 2.0"
mdc.source = { :git => "https://github.com/material-components/material-components-ios.git", :tag => "v#{mdc.version}" }
mdc.platform = :ios
mdc.requires_arc = true
mdc.ios.deployment_target = '8.0'
# See MaterialComponents.podspec for the subspec structure and template.
# ActionSheet
mdc.subspec "ActionSheet" do |component|
component.ios.deployment_target = '8.0'
component.public_header_files = "components/#{component.base_name}/src/*.h"
component.source_files = "components/#{component.base_name}/src/*.{h,m}", "components/#{component.base_name}/src/private/*.{h,m}"
component.dependency "MaterialComponents/BottomSheet"
component.dependency "MaterialComponents/Ink"
component.dependency "MaterialComponents/Typography"
component.test_spec 'tests' do |tests|
tests.test_spec 'unit' do |unit_tests|
unit_tests.source_files = "components/#{component.base_name}/tests/unit/*.{h,m,swift}", "components/#{component.base_name}/tests/unit/supplemental/*.{h,m,swift}"
end
end
end
mdc.subspec "ActionSheet+ColorThemer" do |extension|
extension.ios.deployment_target = '8.0'
extension.public_header_files = "components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.h"
extension.source_files = "components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.{h,m}", "components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/private/*.{h,m}"
extension.dependency "MaterialComponentsAlpha/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/schemes/Color"
end
mdc.subspec "ActionSheet+TypographyThemer" do |extension|
extension.ios.deployment_target = '8.0'
extension.public_header_files = "components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.h"
extension.source_files = "components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.{h,m}", "components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/private/*.{h,m}"
extension.dependency "MaterialComponentsAlpha/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/schemes/Typography"
end
# NavigationDrawer
mdc.subspec "NavigationDrawer" do |component|
component.ios.deployment_target = '8.0'
component.public_header_files = "components/#{component.base_name}/src/*.h"
component.source_files = "components/#{component.base_name}/src/*.{h,m}", "components/#{component.base_name}/src/private/*.{h,m}"
component.dependency "MaterialComponents/ShadowLayer"
component.dependency "MaterialComponents/private/UIMetrics"
component.test_spec 'tests' do |tests|
tests.test_spec 'unit' do |unit_tests|
unit_tests.source_files = "components/#{component.base_name}/tests/unit/*.{h,m,swift}", "components/#{component.base_name}/tests/unit/supplemental/*.{h,m,swift}"
end
end
end
mdc.subspec "private" do |private_spec|
# CocoaPods requires at least one file to show up in a subspec, so we depend on the fake
# "Alpha" component as a baseline.
private_spec.subspec "Alpha" do |component|
component.ios.deployment_target = '8.0'
component.public_header_files = "components/private/#{component.base_name}/src/*.h"
component.source_files = "components/private/#{component.base_name}/src/*.{h,m}"
end
end
end