Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 363294413
  • Loading branch information
Jeff Verkoeyen authored and material-automation committed Mar 16, 2021
1 parent ee79f1c commit 1c14fb5
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 74 deletions.
70 changes: 4 additions & 66 deletions MaterialComponents.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,6 @@ Pod::Spec.new do |mdc|
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 "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/schemes/Container"

extension.test_spec 'UnitTests' do |unit_tests|
unit_tests.source_files = [
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/*.{h,m,swift}",
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/supplemental/*.{h,m,swift}"
]
unit_tests.resources = "components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/resources/*"
end
end

mdc.subspec "AppBar+ColorThemer" do |extension|
Expand Down Expand Up @@ -239,8 +231,11 @@ Pod::Spec.new do |mdc|

component.test_spec 'UnitTests' do |unit_tests|
unit_tests.source_files = [
"components/#{component.base_name}/tests/unit/*.m"
"components/#{component.base_name}/tests/unit/*.{h,m,swift}"
]
unit_tests.dependency "MaterialComponents/schemes/Container"
unit_tests.dependency "MaterialComponents/private/Color"
unit_tests.dependency "MaterialComponents/private/Math"
end
end

Expand All @@ -257,15 +252,6 @@ Pod::Spec.new do |mdc|
extension.dependency "MaterialComponents/Elevation"
extension.dependency "MaterialComponents/Typography"
extension.dependency "MaterialComponents/schemes/Container"

extension.test_spec 'UnitTests' do |unit_tests|
unit_tests.source_files = [
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/*.{h,m,swift}"
]
unit_tests.dependency "MaterialComponents/schemes/Container"
unit_tests.dependency "MaterialComponents/private/Color"
unit_tests.dependency "MaterialComponents/private/Math"
end
end

# BottomAppBar
Expand Down Expand Up @@ -515,14 +501,6 @@ Pod::Spec.new do |mdc|
extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}+TypographyThemer"
extension.dependency "MaterialComponents/ShadowElevations"
extension.dependency "MaterialComponents/schemes/Container"

extension.test_spec 'UnitTests' do |unit_tests|
unit_tests.source_files = [
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/*.{h,m,swift}",
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/supplemental/*.{h,m,swift}"
]
unit_tests.resources = "components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/resources/*"
end
end

# ButtonBar
Expand Down Expand Up @@ -584,14 +562,6 @@ Pod::Spec.new do |mdc|
]
extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/schemes/Container"

extension.test_spec 'UnitTests' do |unit_tests|
unit_tests.source_files = [
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/*.{h,m,swift}",
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/supplemental/*.{h,m,swift}"
]
unit_tests.resources = "components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/resources/*"
end
end

# Chips
Expand Down Expand Up @@ -635,14 +605,6 @@ Pod::Spec.new do |mdc|
extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/schemes/Container"
extension.dependency "MaterialComponents/Typography"

extension.test_spec 'UnitTests' do |unit_tests|
unit_tests.source_files = [
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/*.{h,m,swift}",
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/supplemental/*.{h,m,swift}"
]
unit_tests.resources = "components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/resources/*"
end
end

# CollectionCells
Expand Down Expand Up @@ -803,14 +765,6 @@ Pod::Spec.new do |mdc|
extension.dependency "MaterialComponents/ShadowElevations"
extension.dependency "MaterialComponents/schemes/Container"
extension.dependency "MaterialComponents/Buttons+Theming"

extension.test_spec 'UnitTests' do |unit_tests|
unit_tests.source_files = [
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/*.{h,m,swift}",
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/supplemental/*.{h,m,swift}"
]
unit_tests.resources = "components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/resources/*"
end
end

mdc.subspec "Elevation" do |component|
Expand Down Expand Up @@ -1031,14 +985,6 @@ Pod::Spec.new do |mdc|
]
extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/schemes/Container"

extension.test_spec 'UnitTests' do |unit_tests|
unit_tests.source_files = [
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/*.{h,m,swift}",
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/supplemental/*.{h,m,swift}"
]
unit_tests.resources = "components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/resources/*"
end
end

# NavigationBar
Expand Down Expand Up @@ -1826,14 +1772,6 @@ Pod::Spec.new do |mdc|
extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}+ColorThemer"
extension.dependency "MaterialComponents/schemes/Container"

extension.test_spec 'UnitTests' do |unit_tests|
unit_tests.source_files = [
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/*.{h,m,swift}",
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/supplemental/*.{h,m,swift}"
]
unit_tests.resources = "components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/resources/*"
end
end

# Themes
Expand Down
8 changes: 0 additions & 8 deletions catalog/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,27 @@ target "MDCCatalog" do
'ActivityIndicator/UnitTests',
'AnimationTiming/UnitTests',
'AppBar/UnitTests',
'AppBar+Theming/UnitTests',
'Banner/UnitTests',
'Banner+Theming/UnitTests',
'BottomAppBar/UnitTests',
'BottomNavigation/UnitTests',
'BottomNavigation+BottomNavigationController/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',
'NavigationBar/UnitTests',
'NavigationDrawer/UnitTests',
'OverlayWindow/UnitTests',
Expand Down Expand Up @@ -72,7 +65,6 @@ target "MDCCatalog" do
'Tabs+Theming/UnitTests',
'Tabs+TabBarView/UnitTests',
'TextFields/UnitTests',
'TextFields+Theming/UnitTests',
'TextControls+BaseTextAreas/UnitTests',
'TextControls+BaseTextFields/UnitTests',
'TextControls+FilledTextAreas/UnitTests',
Expand Down

0 comments on commit 1c14fb5

Please sign in to comment.