diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation.kt index 304b83018b2..bd546ad8947 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import android.view.View @@ -27,6 +29,9 @@ import com.facebook.react.uimanager.IllegalViewOperationException * order to animate layout when a valid configuration has been supplied by the application. */ @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) internal abstract class AbstractLayoutAnimation { var interpolator: Interpolator? = null var delayMs: Int = 0 diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/AnimatedPropertyType.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/AnimatedPropertyType.kt index 45422babcc9..dfc89311074 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/AnimatedPropertyType.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/AnimatedPropertyType.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import com.facebook.react.common.annotations.internal.LegacyArchitecture @@ -15,6 +17,9 @@ import com.facebook.react.common.annotations.internal.LegacyArchitectureLogLevel * creation. */ @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) internal enum class AnimatedPropertyType { OPACITY, SCALE_X, diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation.kt index 4b30d60c367..d525d9e906b 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/BaseLayoutAnimation.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import android.view.View @@ -17,6 +19,9 @@ import com.facebook.react.uimanager.IllegalViewOperationException /** Class responsible for default layout animation, i.e animation of view creation and deletion. */ @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) internal abstract class BaseLayoutAnimation : AbstractLayoutAnimation() { abstract fun isReverse(): Boolean diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/InterpolatorType.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/InterpolatorType.kt index 86e5c444e01..8ffc0889147 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/InterpolatorType.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/InterpolatorType.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import com.facebook.react.common.annotations.internal.LegacyArchitecture @@ -14,6 +16,9 @@ import com.facebook.react.common.annotations.internal.LegacyArchitectureLogLevel * Enum representing the different interpolators that can be used in layout animation configuration. */ @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) internal enum class InterpolatorType { LINEAR, EASE_IN, diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationController.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationController.kt index a09b1b7f38c..8c7d1fde6a6 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationController.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationController.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import android.util.SparseArray @@ -29,6 +31,9 @@ import javax.annotation.concurrent.NotThreadSafe */ @NotThreadSafe @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) public open class LayoutAnimationController { private val layoutCreateAnimation: AbstractLayoutAnimation = LayoutCreateAnimation() private val layoutUpdateAnimation: AbstractLayoutAnimation = LayoutUpdateAnimation() diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationListener.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationListener.kt index 49c33897e02..daa1662d1c5 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationListener.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationListener.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import com.facebook.react.common.annotations.internal.LegacyArchitecture @@ -12,6 +14,9 @@ import com.facebook.react.common.annotations.internal.LegacyArchitectureLogLevel /** Listener invoked when a layout animation has completed. */ @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) public fun interface LayoutAnimationListener { public fun onAnimationEnd() } diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationType.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationType.kt index 07941fba26d..344e97c8780 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationType.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationType.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import com.facebook.react.common.annotations.internal.LegacyArchitecture @@ -15,6 +17,9 @@ import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger * Enum representing the different animation type that can be specified in layout animation config. */ @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) internal enum class LayoutAnimationType { CREATE, UPDATE, diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutCreateAnimation.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutCreateAnimation.kt index 065eedd230c..fe15acd5c22 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutCreateAnimation.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutCreateAnimation.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import com.facebook.react.common.annotations.internal.LegacyArchitecture diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutDeleteAnimation.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutDeleteAnimation.kt index 971063965c5..95852b0cf8e 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutDeleteAnimation.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutDeleteAnimation.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import com.facebook.react.common.annotations.internal.LegacyArchitecture @@ -16,6 +18,9 @@ import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger * config was supplied for the layout animation of DELETE type. */ @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) internal class LayoutDeleteAnimation : BaseLayoutAnimation() { override fun isReverse(): Boolean = true diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutHandlingAnimation.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutHandlingAnimation.kt index 94be5baaaa5..fb0e7ad3a1c 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutHandlingAnimation.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutHandlingAnimation.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import com.facebook.react.common.annotations.internal.LegacyArchitecture @@ -12,6 +14,9 @@ import com.facebook.react.common.annotations.internal.LegacyArchitectureLogLevel /** Interface for an animation type that takes care of updating the view layout. */ @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) internal interface LayoutHandlingAnimation { /** * Notifies the animation of a layout update in case one occurs during the animation. This avoids diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutUpdateAnimation.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutUpdateAnimation.kt index 3e8a4505c9e..5d238015a4d 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutUpdateAnimation.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutUpdateAnimation.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import android.view.View @@ -19,6 +21,9 @@ import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger * was supplied for the layout animation of UPDATE type. */ @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) internal class LayoutUpdateAnimation : AbstractLayoutAnimation() { override fun isValid(): Boolean = durationMs > 0 diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/OpacityAnimation.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/OpacityAnimation.kt index 5354652293e..4b15217b815 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/OpacityAnimation.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/OpacityAnimation.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import android.view.View @@ -21,6 +23,9 @@ import java.lang.ref.WeakReference * optimize rendering performances. */ @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) internal class OpacityAnimation(view: View, private val startOpacity: Float, endOpacity: Float) : Animation() { private val viewRef = WeakReference(view) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/PositionAndSizeAnimation.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/PositionAndSizeAnimation.kt index 77a5f17ed34..ee8efb8531e 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/PositionAndSizeAnimation.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/PositionAndSizeAnimation.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import android.view.View @@ -22,6 +24,9 @@ import java.lang.ref.WeakReference * ScaleAnimation and TranslateAnimation. */ @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) internal class PositionAndSizeAnimation(view: View, x: Int, y: Int, width: Int, height: Int) : Animation(), LayoutHandlingAnimation { private val viewRef = WeakReference(view) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/SimpleSpringInterpolator.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/SimpleSpringInterpolator.kt index e494455e2cd..92ca8e73920 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/SimpleSpringInterpolator.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/SimpleSpringInterpolator.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import android.view.animation.Interpolator @@ -19,6 +21,9 @@ import kotlin.math.sin /** Simple spring interpolator */ // TODO(7613736): Improve spring interpolator with friction and damping variable support @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) +@Deprecated( + message = "This class is part of Legacy Architecture and will be removed in a future release", + level = DeprecationLevel.WARNING) internal class SimpleSpringInterpolator @JvmOverloads constructor(springDamping: Float = FACTOR) : Interpolator { private val _springDamping: Float = springDamping diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimationTest.kt b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimationTest.kt index 780e57e1ddd..93664100824 100644 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimationTest.kt +++ b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimationTest.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import android.view.View diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/InterpolatorTypeTest.kt b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/InterpolatorTypeTest.kt index 58690e01e0a..494cf94b8bd 100644 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/InterpolatorTypeTest.kt +++ b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/InterpolatorTypeTest.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import java.util.Locale diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/OpacityAnimationTest.kt b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/OpacityAnimationTest.kt index 8c25ee4c86c..45ef6dd5e03 100644 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/OpacityAnimationTest.kt +++ b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/OpacityAnimationTest.kt @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +@file:Suppress("DEPRECATION") + package com.facebook.react.uimanager.layoutanimation import android.view.View