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: 642080231
  • Loading branch information
Nobody authored and material-automation committed Jun 11, 2024
1 parent a44c46e commit 59495ab
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 11 deletions.
6 changes: 3 additions & 3 deletions components/ProgressView/src/MDCProgressView.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@

#import "MDCProgressView.h"

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

#include <tgmath.h>

#import "MDCPalettes.h"
#import "MaterialPalettes.h"
#import "MDCProgressGradientView.h"
#import "MDCProgressLayerView.h"

#import "MaterialProgressViewStrings.h"
#import "MaterialProgressViewStrings_table.h"
#import "MaterialMath.h"
#import <MDFInternationalization/MDFInternationalization.h>
#import "MDCMath.h"
#import <MDFInternationalization/MDFRTL.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#import "MDCProgressGradientView.h"

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

@interface MDCProgressGradientView ()
Expand Down
2 changes: 2 additions & 0 deletions components/ProgressView/src/private/MDCProgressLayerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#import "MDCProgressLayerView.h"

#import <CoreGraphics/CoreGraphics.h>

NS_ASSUME_NONNULL_BEGIN

/** The duration of each individual layer animation. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MaterialSnapshot.h"
#import "MDCProgressView.h"

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

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

/** Snapshot tests for MDCProgressView. */
@interface MDCProgressViewSnapshotTests : MDCSnapshotTestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

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

#import "MaterialProgressView.h"
#import "MaterialProgressView+Theming.h"
#import "MaterialColorScheme.h"
#import "MaterialContainerScheme.h"
#import "MDCProgressView.h"
#import "MDCProgressView+MaterialTheming.h"
#import "MDCSemanticColorScheme.h"
#import "MDCContainerScheme.h"

// The ratio by which to desaturate the progress tint color to obtain the default track tint color.
static const CGFloat MDCProgressViewTrackColorDesaturation = (CGFloat)0.3;
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 "MaterialProgressView.h"
#import "MDCProgressView.h"

@interface MDCProgressView ()
@property(nonatomic, strong) UIView *progressView;
Expand Down
3 changes: 2 additions & 1 deletion components/ProgressView/tests/unit/ProgressViewTests.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 "MaterialProgressView.h"
#import "MDCProgressView.h"

@interface MDCProgressView (ProgressViewTests)

Expand Down

0 comments on commit 59495ab

Please sign in to comment.