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: 642291735
  • Loading branch information
Nobody authored and material-automation committed Jun 11, 2024
1 parent 70f7544 commit dc3dd5d
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions components/Ink/src/MDCInkGestureRecognizer.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#import "MDCInkGestureRecognizer.h"

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

static const CGFloat kInkGestureDefaultDragCancelDistance = 20;
Expand Down
2 changes: 2 additions & 0 deletions components/Ink/src/MDCInkTouchController.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#import "MDCInkTouchController.h"

#import <CoreGraphics/CoreGraphics.h>

#import "MDCInkGestureRecognizer.h"
#import "MDCInkTouchControllerDelegate.h"
#import "MDCInkView.h"
Expand Down
2 changes: 2 additions & 0 deletions components/Ink/src/MDCInkView.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#import "MDCInkView.h"

#import <CoreGraphics/CoreGraphics.h>

#import "private/MDCInkLayer.h"
#import "private/MDCLegacyInkLayer.h"
#import "MDCInkViewDelegate.h"
Expand Down
2 changes: 2 additions & 0 deletions components/Ink/src/private/MDCInkLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#import "MDCInkLayerDelegate.h"

#import <CoreGraphics/CoreGraphics.h>

static const CGFloat MDCInkLayerCommonDuration = (CGFloat)0.083;
static const CGFloat MDCInkLayerEndFadeOutDuration = (CGFloat)0.15;
static const CGFloat MDCInkLayerStartScalePositionDuration = (CGFloat)0.333;
Expand Down
3 changes: 2 additions & 1 deletion components/Ink/src/private/MDCLegacyInkLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
#import "MDCLegacyInkLayer.h"
#import "MDCLegacyInkLayer+Private.h"

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

#import "MaterialAvailability.h"
#import "MDCAvailability.h"
#import "MDCLegacyInkLayerDelegate.h"
#import "MDCLegacyInkLayerRippleDelegate.h"

Expand Down
11 changes: 7 additions & 4 deletions components/Ink/tests/snapshot/MDCInkViewSnapshotTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialSnapshot.h"
#import "MDCInkView.h"

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

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

/**
Creates a fake MDCInkView that has its traitCollection overridden.
Expand Down
1 change: 1 addition & 0 deletions components/Ink/tests/unit/MDCInkLayerTests.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
3 changes: 2 additions & 1 deletion components/Ink/tests/unit/MDCInkViewTests.m
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 "MaterialInk.h"
#import "MDCInkView.h"

#pragma mark - Tests

Expand Down
1 change: 1 addition & 0 deletions components/Ink/tests/unit/MDCLegacyInkLayerTests.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

0 comments on commit dc3dd5d

Please sign in to comment.