Skip to content

Commit

Permalink
Add explicit imports for CoreGraphics in files which use it.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 642400931
  • Loading branch information
Nobody authored and material-automation committed Jun 11, 2024
1 parent e2c6ee0 commit 8bb590a
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 11 deletions.
4 changes: 3 additions & 1 deletion components/Ripple/examples/RippleTypicalUseExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import <CoreGraphics/CoreGraphics.h>
#import <UIKit/UIKit.h>

#import "MaterialRipple.h"
#import "MDCRippleTouchController.h"
#import "MDCRippleTouchControllerDelegate.h"

#import "supplemental/RippleExampleSupplemental.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#import "RippleExampleSupplemental.h"

#import <CoreGraphics/CoreGraphics.h>

@implementation RippleSurfaces

- (id)initWithFrame:(CGRect)frame {
Expand Down
3 changes: 3 additions & 0 deletions components/Ripple/src/MDCRippleTouchController.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@

#import "MDCRippleTouchController.h"

#import <CoreGraphics/CoreGraphics.h>

#import "MDCRippleTouchControllerDelegate.h"
#import "MDCRippleView.h"

@implementation MDCRippleTouchController {
BOOL _tapWentOutsideOfBounds;
Expand Down
5 changes: 4 additions & 1 deletion components/Ripple/src/MDCRippleView.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
#import "MDCRippleView.h"
#import "private/MDCRippleLayer.h"

#import "MaterialAvailability.h"
#import <CoreGraphics/CoreGraphics.h>

#import "MDCAvailability.h"
#import "MDCRippleViewDelegate.h"
#import "MDCRippleLayerDelegate.h"

@interface MDCRippleView () <CALayerDelegate, MDCRippleLayerDelegate>

Expand Down
2 changes: 2 additions & 0 deletions components/Ripple/src/private/MDCRippleLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#import "MDCRippleLayer.h"

#import <CoreGraphics/CoreGraphics.h>

#import "MDCRippleLayerDelegate.h"

static const CGFloat kExpandRippleBeyondSurface = 10;
Expand Down
12 changes: 8 additions & 4 deletions components/Ripple/tests/snapshot/MDCRippleViewSnapshotTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 <CoreGraphics/CoreGraphics.h>

#import "MDCAvailability.h"
#import "UIColor+MaterialDynamic.h"
#import "MDCSnapshotTestCase.h"
#import "UIView+MDCSnapshot.h"

/**
Creates a fake MDCRippleView that has its traitCollection overridden.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <CoreGraphics/CoreGraphics.h>

#import "MDCSnapshotTestCase.h"
#import "UIView+MDCSnapshot.h"

/** Snapshot tests for MDCStatefulRippleView. */
@interface MDCStatefulRippleViewSnapshotTests : MDCSnapshotTestCase
Expand Down
1 change: 1 addition & 0 deletions components/Ripple/tests/unit/MDCRippleLayerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import <CoreGraphics/CoreGraphics.h>
#import <XCTest/XCTest.h>

#pragma clang diagnostic push
Expand Down
5 changes: 4 additions & 1 deletion components/Ripple/tests/unit/MDCRippleTouchControllerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@

#import <XCTest/XCTest.h>

#import <CoreGraphics/CoreGraphics.h>
#import <UIKit/UIGestureRecognizerSubclass.h>

#import "MaterialRipple.h"
#import "MDCRippleTouchController.h"
#import "MDCRippleTouchControllerDelegate.h"
#import "MDCRippleView.h"

@interface FakeMDCRippleTouchControllerDelegate : NSObject <MDCRippleTouchControllerDelegate>
@property(nonatomic, strong) MDCRippleTouchController *rippleTouchController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@

#import <XCTest/XCTest.h>

#import <CoreGraphics/CoreGraphics.h>
#import <UIKit/UIGestureRecognizerSubclass.h>

#import "MaterialRipple.h"
#import "MDCRippleTouchController.h"
#import "MDCRippleTouchControllerDelegate.h"
#import "MDCRippleView.h"

@interface FakeMDCRippleViewAtTouchLocationDelegate : NSObject <MDCRippleTouchControllerDelegate>
@property(nonatomic, strong) MDCRippleTouchController *rippleTouchController;
Expand Down
1 change: 1 addition & 0 deletions components/Ripple/tests/unit/MDCRippleViewTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import <CoreGraphics/CoreGraphics.h>
#import <XCTest/XCTest.h>

#import "MDCRippleView.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import <CoreGraphics/CoreGraphics.h>
#import <XCTest/XCTest.h>

#import "MaterialRipple.h"
#import "MDCRippleView.h"

/**
These tests demonstrate how a ripple view added as a subview can end up with an incorrect layer
Expand Down

0 comments on commit 8bb590a

Please sign in to comment.