From 8bb590a78d4c2014802dd258381aac5146bd7a57 Mon Sep 17 00:00:00 2001 From: Nobody Date: Tue, 11 Jun 2024 14:51:48 -0700 Subject: [PATCH] Add explicit imports for CoreGraphics in files which use it. PiperOrigin-RevId: 642400931 --- components/Ripple/examples/RippleTypicalUseExample.m | 4 +++- .../supplemental/RippleExampleSupplemental.m | 2 ++ components/Ripple/src/MDCRippleTouchController.m | 3 +++ components/Ripple/src/MDCRippleView.m | 5 ++++- components/Ripple/src/private/MDCRippleLayer.m | 2 ++ .../tests/snapshot/MDCRippleViewSnapshotTests.m | 12 ++++++++---- .../snapshot/MDCStatefulRippleViewSnapshotTests.m | 8 ++++++-- components/Ripple/tests/unit/MDCRippleLayerTests.m | 1 + .../tests/unit/MDCRippleTouchControllerTests.m | 5 ++++- .../unit/MDCRippleViewAtTouchLocationDelegateTests.m | 5 ++++- components/Ripple/tests/unit/MDCRippleViewTests.m | 1 + ...DCRippleViewUsesSuperviewShadowLayerAsMaskTests.m | 3 ++- 12 files changed, 40 insertions(+), 11 deletions(-) diff --git a/components/Ripple/examples/RippleTypicalUseExample.m b/components/Ripple/examples/RippleTypicalUseExample.m index 258319a0429..c957a03d81f 100644 --- a/components/Ripple/examples/RippleTypicalUseExample.m +++ b/components/Ripple/examples/RippleTypicalUseExample.m @@ -12,9 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#import #import -#import "MaterialRipple.h" +#import "MDCRippleTouchController.h" +#import "MDCRippleTouchControllerDelegate.h" #import "supplemental/RippleExampleSupplemental.h" diff --git a/components/Ripple/examples/supplemental/RippleExampleSupplemental.m b/components/Ripple/examples/supplemental/RippleExampleSupplemental.m index 0b9f783c94b..aebee6b3251 100644 --- a/components/Ripple/examples/supplemental/RippleExampleSupplemental.m +++ b/components/Ripple/examples/supplemental/RippleExampleSupplemental.m @@ -19,6 +19,8 @@ #import "RippleExampleSupplemental.h" +#import + @implementation RippleSurfaces - (id)initWithFrame:(CGRect)frame { diff --git a/components/Ripple/src/MDCRippleTouchController.m b/components/Ripple/src/MDCRippleTouchController.m index 875d8fe244b..663019bb704 100644 --- a/components/Ripple/src/MDCRippleTouchController.m +++ b/components/Ripple/src/MDCRippleTouchController.m @@ -14,7 +14,10 @@ #import "MDCRippleTouchController.h" +#import + #import "MDCRippleTouchControllerDelegate.h" +#import "MDCRippleView.h" @implementation MDCRippleTouchController { BOOL _tapWentOutsideOfBounds; diff --git a/components/Ripple/src/MDCRippleView.m b/components/Ripple/src/MDCRippleView.m index 32124af81dc..96995256bba 100644 --- a/components/Ripple/src/MDCRippleView.m +++ b/components/Ripple/src/MDCRippleView.m @@ -15,8 +15,11 @@ #import "MDCRippleView.h" #import "private/MDCRippleLayer.h" -#import "MaterialAvailability.h" +#import + +#import "MDCAvailability.h" #import "MDCRippleViewDelegate.h" +#import "MDCRippleLayerDelegate.h" @interface MDCRippleView () diff --git a/components/Ripple/src/private/MDCRippleLayer.m b/components/Ripple/src/private/MDCRippleLayer.m index 548a89c1955..0ebae41d374 100644 --- a/components/Ripple/src/private/MDCRippleLayer.m +++ b/components/Ripple/src/private/MDCRippleLayer.m @@ -14,6 +14,8 @@ #import "MDCRippleLayer.h" +#import + #import "MDCRippleLayerDelegate.h" static const CGFloat kExpandRippleBeyondSurface = 10; diff --git a/components/Ripple/tests/snapshot/MDCRippleViewSnapshotTests.m b/components/Ripple/tests/snapshot/MDCRippleViewSnapshotTests.m index 58c9dbe3e47..66bbc7cc44c 100644 --- a/components/Ripple/tests/snapshot/MDCRippleViewSnapshotTests.m +++ b/components/Ripple/tests/snapshot/MDCRippleViewSnapshotTests.m @@ -12,10 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. -#import "MaterialAvailability.h" -#import "MaterialRipple.h" -#import "MaterialColor.h" -#import "MaterialSnapshot.h" +#import "MDCRippleView.h" + +#import + +#import "MDCAvailability.h" +#import "UIColor+MaterialDynamic.h" +#import "MDCSnapshotTestCase.h" +#import "UIView+MDCSnapshot.h" /** Creates a fake MDCRippleView that has its traitCollection overridden. diff --git a/components/Ripple/tests/snapshot/MDCStatefulRippleViewSnapshotTests.m b/components/Ripple/tests/snapshot/MDCStatefulRippleViewSnapshotTests.m index 1d7dcbef703..0bc3a9c96f3 100644 --- a/components/Ripple/tests/snapshot/MDCStatefulRippleViewSnapshotTests.m +++ b/components/Ripple/tests/snapshot/MDCStatefulRippleViewSnapshotTests.m @@ -12,8 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#import "MaterialRipple.h" -#import "MaterialSnapshot.h" +#import "MDCStatefulRippleView.h" + +#import + +#import "MDCSnapshotTestCase.h" +#import "UIView+MDCSnapshot.h" /** Snapshot tests for MDCStatefulRippleView. */ @interface MDCStatefulRippleViewSnapshotTests : MDCSnapshotTestCase diff --git a/components/Ripple/tests/unit/MDCRippleLayerTests.m b/components/Ripple/tests/unit/MDCRippleLayerTests.m index 59520720c24..cdfc85e2707 100644 --- a/components/Ripple/tests/unit/MDCRippleLayerTests.m +++ b/components/Ripple/tests/unit/MDCRippleLayerTests.m @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#import #import #pragma clang diagnostic push diff --git a/components/Ripple/tests/unit/MDCRippleTouchControllerTests.m b/components/Ripple/tests/unit/MDCRippleTouchControllerTests.m index f73cf8e58b0..ade1af6f377 100644 --- a/components/Ripple/tests/unit/MDCRippleTouchControllerTests.m +++ b/components/Ripple/tests/unit/MDCRippleTouchControllerTests.m @@ -14,9 +14,12 @@ #import +#import #import -#import "MaterialRipple.h" +#import "MDCRippleTouchController.h" +#import "MDCRippleTouchControllerDelegate.h" +#import "MDCRippleView.h" @interface FakeMDCRippleTouchControllerDelegate : NSObject @property(nonatomic, strong) MDCRippleTouchController *rippleTouchController; diff --git a/components/Ripple/tests/unit/MDCRippleViewAtTouchLocationDelegateTests.m b/components/Ripple/tests/unit/MDCRippleViewAtTouchLocationDelegateTests.m index 75c462d426d..a8c6dd98627 100644 --- a/components/Ripple/tests/unit/MDCRippleViewAtTouchLocationDelegateTests.m +++ b/components/Ripple/tests/unit/MDCRippleViewAtTouchLocationDelegateTests.m @@ -14,9 +14,12 @@ #import +#import #import -#import "MaterialRipple.h" +#import "MDCRippleTouchController.h" +#import "MDCRippleTouchControllerDelegate.h" +#import "MDCRippleView.h" @interface FakeMDCRippleViewAtTouchLocationDelegate : NSObject @property(nonatomic, strong) MDCRippleTouchController *rippleTouchController; diff --git a/components/Ripple/tests/unit/MDCRippleViewTests.m b/components/Ripple/tests/unit/MDCRippleViewTests.m index 563de68e9c1..8e9260bc694 100644 --- a/components/Ripple/tests/unit/MDCRippleViewTests.m +++ b/components/Ripple/tests/unit/MDCRippleViewTests.m @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#import #import #import "MDCRippleView.h" diff --git a/components/Ripple/tests/unit/MDCRippleViewUsesSuperviewShadowLayerAsMaskTests.m b/components/Ripple/tests/unit/MDCRippleViewUsesSuperviewShadowLayerAsMaskTests.m index caa1c2d1b83..fc6e5ca69c4 100644 --- a/components/Ripple/tests/unit/MDCRippleViewUsesSuperviewShadowLayerAsMaskTests.m +++ b/components/Ripple/tests/unit/MDCRippleViewUsesSuperviewShadowLayerAsMaskTests.m @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#import #import -#import "MaterialRipple.h" +#import "MDCRippleView.h" /** These tests demonstrate how a ripple view added as a subview can end up with an incorrect layer