Skip to content

Commit

Permalink
[TextControls] Update Podspec after TextControls changes
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 315477850
  • Loading branch information
andrewoverton authored and material-automation committed Jun 9, 2020
1 parent 2bc13bf commit 6f169c9
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
57 changes: 57 additions & 0 deletions MaterialComponents.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,35 @@ Pod::Spec.new do |mdc|
end
end

# TextControls+UnderlinedTextFields

mdc.subspec "TextControls+UnderlinedTextFields" do |component|
component.ios.deployment_target = '9.0'
component.public_header_files = "components/#{component.base_name.split('+')[0]}/src/#{component.base_name.split('+')[1]}/*.h"
component.source_files = [
"components/#{component.base_name.split('+')[0]}/src/#{component.base_name.split('+')[1]}/*.{h,m}",
"components/#{component.base_name.split('+')[0]}/src/#{component.base_name.split('+')[1]}/private/*.{h,m}"
]

component.dependency "MaterialComponents/Availability"
component.dependency "MaterialComponents/TextControls+BaseTextFields"
component.dependency "MaterialComponents/private/TextControlsPrivate+UnderlinedStyle"
end

# TextControls+UnderlinedTextFieldsTheming

mdc.subspec "TextControls+UnderlinedTextFieldsTheming" do |component|
component.ios.deployment_target = '9.0'
component.public_header_files = "components/#{component.base_name.split('+')[0]}/src/#{component.base_name.split('+')[1]}/*.h"
component.source_files = [
"components/#{component.base_name.split('+')[0]}/src/#{component.base_name.split('+')[1]}/*.{h,m}",
"components/#{component.base_name.split('+')[0]}/src/#{component.base_name.split('+')[1]}/private/*.{h,m}"
]

component.dependency "MaterialComponents/TextControls+UnderlinedTextFields"
component.dependency "MaterialComponents/schemes/Container"
end

mdc.subspec "TextFields+ColorThemer" do |extension|
extension.ios.deployment_target = '9.0'
extension.public_header_files = [
Expand Down Expand Up @@ -2068,6 +2097,7 @@ Pod::Spec.new do |mdc|
component.dependency "MaterialComponents/AnimationTiming"
component.dependency "MaterialComponents/private/Math"
component.dependency "MaterialComponents/private/TextControlsPrivate+Shared"
component.dependency "MaterialComponents/private/TextControlsPrivate+UnderlinedStyle"
end

private_spec.subspec "TextControlsPrivate+OutlinedStyle" do |component|
Expand All @@ -2081,6 +2111,33 @@ Pod::Spec.new do |mdc|
component.dependency "MaterialComponents/private/TextControlsPrivate+Shared"
end

private_spec.subspec "TextControlsPrivate+TextFields" do |component|
component.ios.deployment_target = '9.0'
component.public_header_files = "components/private/#{component.base_name.split('+')[0]}/src/#{component.base_name.split('+')[1]}/*.h"
component.source_files = [ "components/private/#{component.base_name.split('+')[0]}/src/#{component.base_name.split('+')[1]}/*.{h,m}"
]
component.dependency "MaterialComponents/private/Math"
component.dependency "MaterialComponents/private/TextControlsPrivate+Shared"

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

private_spec.subspec "TextControlsPrivate+UnderlinedStyle" do |component|
component.ios.deployment_target = '9.0'
component.public_header_files = "components/private/#{component.base_name.split('+')[0]}/src/#{component.base_name.split('+')[1]}/*.h"
component.source_files = [ "components/private/#{component.base_name.split('+')[0]}/src/#{component.base_name.split('+')[1]}/*.{h,m}"
]
component.dependency "MaterialComponents/Availability"
component.dependency "MaterialComponents/AnimationTiming"
component.dependency "MaterialComponents/private/Math"
component.dependency "MaterialComponents/private/TextControlsPrivate+Shared"
end

private_spec.subspec "ThumbTrack" do |component|
component.ios.deployment_target = '9.0'
component.public_header_files = "components/private/#{component.base_name}/src/*.h"
Expand Down
1 change: 1 addition & 0 deletions catalog/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ target "MDCCatalog" do
'private/KeyboardWatcher/UnitTests',
'private/Math/UnitTests',
'private/Overlay/UnitTests',
'private/TextControlsPrivate+TextFields/UnitTests',
'private/ThumbTrack/UnitTests',
'private/UIMetrics/UnitTests',
'ProgressView/UnitTests',
Expand Down

0 comments on commit 6f169c9

Please sign in to comment.