Skip to content

Commit ddd4fa7

Browse files
committed
Add switch subspec, slider dependency to podspec
Summary: This commit adds the subspec for MDCSwitch to the podspec. It also adds the ThumbTrack as a dependency for MDCSlider as "pod lib lint" was complaining about not being able to build the Slider due to it missing that header file. Test Plan: 1. Run "pod lib lint --verbose --private material-components-ios.podspec" 2. Observe everything builds and there is only one warning Reviewers: #material_components_ios_owners, junius Reviewed By: #material_components_ios_owners, junius Projects: #material_components_ios Differential Revision: http://codereview.cc/D90
1 parent 92f9d63 commit ddd4fa7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

material-components-ios.podspec

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Pod::Spec.new do |s|
7878
ss.public_header_files = 'components/Slider/src/*.h'
7979
ss.source_files = 'components/Slider/src/*.{h,m}', 'components/Slider/src/private/*.{h,m}'
8080
ss.header_mappings_dir = 'components/Slider/src/*'
81+
ss.dependency 'material-components-ios/private/ThumbTrack'
8182
end
8283

8384
s.subspec 'SpritedAnimationView' do |ss|
@@ -86,6 +87,16 @@ Pod::Spec.new do |s|
8687
ss.header_mappings_dir = 'components/SpritedAnimationView/src/*'
8788
end
8889

90+
s.subspec 'Switch' do |ss|
91+
ss.public_header_files = 'components/Switch/src/*.h'
92+
ss.source_files = 'components/Slider/src/*.{h,m}'
93+
ss.header_mappings_dir = 'components/Switch/src/*'
94+
ss.resource_bundles = {
95+
'MaterialSwitch' => ['components/Switch/src/MaterialSwitch.bundle/*']
96+
}
97+
ss.dependency 'material-components-ios/private/ThumbTrack'
98+
end
99+
89100
s.subspec 'Typography' do |ss|
90101
ss.public_header_files = 'Typography/src/*.h'
91102
ss.source_files = 'Typography/src/*.{h,m}', 'Typography/src/Private/*.{h,m}'

0 commit comments

Comments
 (0)