From 6f169c99507495abc932f7bf1fa81b4b2f7ca003 Mon Sep 17 00:00:00 2001 From: Andrew Overton Date: Tue, 9 Jun 2020 07:14:48 -0700 Subject: [PATCH] [TextControls] Update Podspec after TextControls changes PiperOrigin-RevId: 315477850 --- MaterialComponents.podspec | 57 +++++++++++++++++++ catalog/Podfile | 1 + .../TextFields}/MDCBaseTextFieldLayoutTests.m | 0 3 files changed, 58 insertions(+) rename components/{TextControls/tests/unit/BaseTextFields => private/TextControlsPrivate/tests/unit/TextFields}/MDCBaseTextFieldLayoutTests.m (100%) diff --git a/MaterialComponents.podspec b/MaterialComponents.podspec index 3a9460a0765..66287a8dfb5 100644 --- a/MaterialComponents.podspec +++ b/MaterialComponents.podspec @@ -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 = [ @@ -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| @@ -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" diff --git a/catalog/Podfile b/catalog/Podfile index e3e81a5d147..45f0d11b8e6 100644 --- a/catalog/Podfile +++ b/catalog/Podfile @@ -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', diff --git a/components/TextControls/tests/unit/BaseTextFields/MDCBaseTextFieldLayoutTests.m b/components/private/TextControlsPrivate/tests/unit/TextFields/MDCBaseTextFieldLayoutTests.m similarity index 100% rename from components/TextControls/tests/unit/BaseTextFields/MDCBaseTextFieldLayoutTests.m rename to components/private/TextControlsPrivate/tests/unit/TextFields/MDCBaseTextFieldLayoutTests.m