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

Commit a0f2d04

Browse files
Jeff Verkoeyenmaterial-automation
Jeff Verkoeyen
authored andcommitted
Annotate all libraries and APIs as To Be Deprecated.
PiperOrigin-RevId: 457604477
1 parent 5d624e0 commit a0f2d04

11 files changed

+55
-0
lines changed

src/CATransaction+MotionAnimator.h

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#import <Foundation/Foundation.h>
1818
#import <QuartzCore/QuartzCore.h>
1919

20+
API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
21+
ios(12, API_TO_BE_DEPRECATED))
22+
2023
@interface CATransaction (MotionAnimator)
2124

2225
/**
@@ -37,3 +40,5 @@
3740
+ (void)mdm_setTimeScaleFactor:(nullable NSNumber *)timeScaleFactor;
3841

3942
@end
43+
44+
API_DEPRECATED_END

src/MDMAnimatableKeyPaths.h

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#import <Availability.h>
1818
#import <Foundation/Foundation.h>
1919

20+
API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
21+
ios(12, API_TO_BE_DEPRECATED))
22+
2023
// This macro is introduced in Xcode 9.
2124
#ifndef CF_TYPED_ENUM // What follows is backwards compat for Xcode 8 and below.
2225
#if __has_attribute(swift_wrapper)
@@ -268,3 +271,5 @@ FOUNDATION_EXPORT MDMAnimatableKeyPath MDMKeyPathY NS_SWIFT_NAME(y);
268271
Additive animation supported: Yes.
269272
*/
270273
FOUNDATION_EXPORT MDMAnimatableKeyPath MDMKeyPathZ NS_SWIFT_NAME(z);
274+
275+
API_DEPRECATED_END

src/MDMCoreAnimationTraceable.h

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
#import <UIKit/UIKit.h>
1818

19+
API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
20+
ios(12, API_TO_BE_DEPRECATED))
21+
1922
/**
2023
An object conforming to this protocol allows registration of tracers for the purposes of debugging
2124
Core Animation animations.
@@ -28,3 +31,5 @@
2831
- (void)addCoreAnimationTracer:(nonnull void (^)(CALayer * _Nonnull, CAAnimation * _Nonnull))tracer;
2932

3033
@end
34+
35+
API_DEPRECATED_END

src/MDMMotionAnimator.h

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#import "MDMAnimatableKeyPaths.h"
2727
#import "MDMCoreAnimationTraceable.h"
2828

29+
API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
30+
ios(12, API_TO_BE_DEPRECATED))
31+
2932
/**
3033
An animator adds Core Animation animations to a layer using animation traits.
3134
*/
@@ -380,3 +383,5 @@ NS_SWIFT_NAME(MotionAnimator)
380383
__deprecated_msg("No longer needed for implicit animations of headless layers.");
381384

382385
@end
386+
387+
API_DEPRECATED_END

src/private/CABasicAnimation+MotionAnimator.h

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
#import <MotionInterchange/MotionInterchange.h>
2525
#endif
2626

27+
API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
28+
ios(12, API_TO_BE_DEPRECATED))
29+
2730
// Returns a basic animation configured with the provided traits and scale factor.
2831
FOUNDATION_EXPORT
2932
CABasicAnimation *MDMAnimationFromTraits(MDMAnimationTraits *traits, CGFloat timeScaleFactor);
@@ -38,3 +41,5 @@ FOUNDATION_EXPORT BOOL MDMCanAnimationBeAdditive(NSString *keyPath, id toValue);
3841
// Not all animation value types support being additive. If an animation's value type was not
3942
// supported, the animation's values will not be modified.
4043
FOUNDATION_EXPORT void MDMConfigureAnimation(CABasicAnimation *animation, MDMAnimationTraits *traits);
44+
45+
API_DEPRECATED_END

src/private/CAMediaTimingFunction+MotionAnimator.h

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
#import <CoreGraphics/CoreGraphics.h>
1919
#import <QuartzCore/QuartzCore.h>
2020

21+
API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
22+
ios(12, API_TO_BE_DEPRECATED))
23+
2124
// Returns a timing function with the given control points.
2225
FOUNDATION_EXPORT
2326
CAMediaTimingFunction* MDMTimingFunctionWithControlPoints(CGFloat controlPoints[4]);
27+
28+
API_DEPRECATED_END

src/private/MDMAnimationRegistrar.h

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#import <Foundation/Foundation.h>
1818
#import <QuartzCore/QuartzCore.h>
1919

20+
API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
21+
ios(12, API_TO_BE_DEPRECATED))
22+
2023
// Tracks and manipulates animations that have been added to a layer.
2124
@interface MDMAnimationRegistrar : NSObject
2225

@@ -36,3 +39,5 @@
3639
- (void)removeAllAnimations;
3740

3841
@end
42+
43+
API_DEPRECATED_END

src/private/MDMBlockAnimations.h

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#import <Foundation/Foundation.h>
1818
#import <QuartzCore/QuartzCore.h>
1919

20+
API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
21+
ios(12, API_TO_BE_DEPRECATED))
22+
2023
@interface MDMImplicitAction: NSObject
2124
@property(nonatomic, strong, readonly) id initialModelValue;
2225
@property(nonatomic, readonly) BOOL hadPresentationLayer;
@@ -26,3 +29,5 @@
2629
@end
2730

2831
NSArray<MDMImplicitAction *> *MDMAnimateImplicitly(void (^animations)(void));
32+
33+
API_DEPRECATED_END

src/private/MDMDragCoefficient.h

+5
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,10 @@
1717
#import <Foundation/Foundation.h>
1818
#import <CoreGraphics/CoreGraphics.h>
1919

20+
API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
21+
ios(12, API_TO_BE_DEPRECATED))
22+
2023
// Returns the simulator drag coefficient when being run in the simulator, or 1.0 otherwise.
2124
FOUNDATION_EXTERN CGFloat MDMSimulatorAnimationDragCoefficient(void);
25+
26+
API_DEPRECATED_END

src/private/MDMRegisteredAnimation.h

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#import <Foundation/Foundation.h>
1818
#import <QuartzCore/QuartzCore.h>
1919

20+
API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
21+
ios(12, API_TO_BE_DEPRECATED))
22+
2023
@interface MDMRegisteredAnimation : NSObject
2124

2225
- (instancetype)initWithKey:(NSString *)key animation:(CABasicAnimation *)animation;
@@ -26,3 +29,5 @@
2629
@property(nonatomic, strong, readonly) CABasicAnimation *animation;
2730

2831
@end
32+
33+
API_DEPRECATED_END

src/private/MDMUIKitValueCoercion.h

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
#import <Foundation/Foundation.h>
1818

19+
API_DEPRECATED_BEGIN("Use standard UIKit/CALayer animation APIs instead.",
20+
ios(12, API_TO_BE_DEPRECATED))
21+
1922
// Coerces the following UIKit/CoreGraphics values to Core Animation values:
2023
//
2124
// - UIBezierPath -> CGPath
@@ -24,3 +27,5 @@
2427
//
2528
// @param values All values of this array must be the same type.
2629
FOUNDATION_EXPORT NSArray* MDMCoerceUIKitValuesToCoreAnimationValues(NSArray *values);
30+
31+
API_DEPRECATED_END

0 commit comments

Comments
 (0)