Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Annotate all libraries and APIs as To Be Deprecated.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 457604477
  • Loading branch information
Jeff Verkoeyen authored and material-automation committed Jun 28, 2022
1 parent 0651c10 commit 8354740
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CAMediaTimingFunction+MDMTimingCurve.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

#import "MDMTimingCurve.h"

API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
ios(12, API_TO_BE_DEPRECATED))

// A CAMediaTimingFunction is a timing curve - we simply define its conformity to our protocol here.
@interface CAMediaTimingFunction () <MDMTimingCurve>
@end
Expand All @@ -42,3 +45,4 @@

@end

API_DEPRECATED_END
5 changes: 5 additions & 0 deletions src/MDMAnimationTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#import "MDMSubclassingRestricted.h"
#import "MDMTimingCurve.h"

API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
ios(12, API_TO_BE_DEPRECATED))

/**
A generic representation of animation traits.
*/
Expand Down Expand Up @@ -156,3 +159,5 @@ MDM_SUBCLASSING_RESTRICTED
- (nonnull instancetype)initWithMotionTiming:(MDMMotionTiming)timing;

@end

API_DEPRECATED_END
5 changes: 5 additions & 0 deletions src/MDMMotionCurve.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>

API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
ios(12, API_TO_BE_DEPRECATED))

/** The possible kinds of motion curves that can be used to describe an animation. */
typedef NS_ENUM(NSUInteger, MDMMotionCurveType) {
/** The value will be instantly set with no animation. */
Expand Down Expand Up @@ -184,3 +187,5 @@ typedef NS_ENUM(NSUInteger, MDMSpringMotionCurveDataIndex) {
#define MDMModalMovementTiming { \
.delay = 0.000, .duration = 0.500, .curve = _MDMSpring(3, 1000, 500) \
}

API_DEPRECATED_END
5 changes: 5 additions & 0 deletions src/MDMMotionRepetition.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#import <CoreGraphics/CoreGraphics.h>
#import <Foundation/Foundation.h>

API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
ios(12, API_TO_BE_DEPRECATED))

/**
The possible kinds of repetition that can be used to describe an animation.
*/
Expand Down Expand Up @@ -68,3 +71,5 @@ typedef struct MDMMotionRepetition MDMMotionRepetition;
.amount = 0, \
.autoreverses = false \
}

API_DEPRECATED_END
5 changes: 5 additions & 0 deletions src/MDMMotionTiming.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#import "MDMMotionCurve.h"
#import "MDMMotionRepetition.h"

API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
ios(12, API_TO_BE_DEPRECATED))

/**
A representation of timing for an animation.
*/
Expand All @@ -46,3 +49,5 @@ struct MDMMotionTiming {

} NS_SWIFT_NAME(MotionTiming);
typedef struct MDMMotionTiming MDMMotionTiming;

API_DEPRECATED_END
4 changes: 4 additions & 0 deletions src/MDMRepetition.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#import "MDMRepetitionTraits.h"
#import "MDMSubclassingRestricted.h"

API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
ios(12, API_TO_BE_DEPRECATED))

/**
Represents repetition that repeats a specific number of times.
*/
Expand Down Expand Up @@ -60,3 +63,4 @@ MDM_SUBCLASSING_RESTRICTED

@end

API_DEPRECATED_END
4 changes: 4 additions & 0 deletions src/MDMRepetitionOverTime.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#import "MDMRepetitionTraits.h"
#import "MDMSubclassingRestricted.h"

API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
ios(12, API_TO_BE_DEPRECATED))

/**
Represents repetition that repeats until a specific duration has passed.
*/
Expand Down Expand Up @@ -55,3 +58,4 @@ MDM_SUBCLASSING_RESTRICTED

@end

API_DEPRECATED_END
4 changes: 4 additions & 0 deletions src/MDMRepetitionTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

#import <Foundation/Foundation.h>

API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
ios(12, API_TO_BE_DEPRECATED))

/**
A generalized representation of a repetition traits.
*/
Expand All @@ -28,3 +31,4 @@

@end

API_DEPRECATED_END
5 changes: 5 additions & 0 deletions src/MDMSpringTimingCurve.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#import "MDMSubclassingRestricted.h"
#import "MDMTimingCurve.h"

API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
ios(12, API_TO_BE_DEPRECATED))

/**
A timing curve that represents the motion of a single-dimensional attached spring.
*/
Expand Down Expand Up @@ -95,3 +98,5 @@ MDM_SUBCLASSING_RESTRICTED
- (nonnull instancetype)init NS_UNAVAILABLE;

@end

API_DEPRECATED_END
5 changes: 5 additions & 0 deletions src/MDMSpringTimingCurveGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#import "MDMSubclassingRestricted.h"
#import "MDMTimingCurve.h"

API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
ios(12, API_TO_BE_DEPRECATED))

@class MDMSpringTimingCurve;

/**
Expand Down Expand Up @@ -91,3 +94,5 @@ MDM_SUBCLASSING_RESTRICTED
- (nonnull instancetype)init NS_UNAVAILABLE;

@end

API_DEPRECATED_END
5 changes: 5 additions & 0 deletions src/MDMTimingCurve.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>

API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
ios(12, API_TO_BE_DEPRECATED))

/**
A generalized representation of a timing curve.
*/
@protocol MDMTimingCurve <NSObject, NSCopying>
@end

API_DEPRECATED_END

0 comments on commit 8354740

Please sign in to comment.