From 4fd44cdc11befe4ce73f1c13554f0e4d0c273f0c Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 14 Sep 2023 11:13:16 -0700 Subject: [PATCH] Introduce WillBeDeprecatedInNewArchitecture annotation (#39351) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39351 In this diff I'm introducing the new WillBeDeprecatedInNewArchitecture annotation, the goal of this annotation is to describe that a class or method will be deprecated when the new architecture of react native is fully rolled out in OSS. changelog: [Android] Introduce WillBeDeprecatedInNewArchitecture annotation Reviewed By: cortinico Differential Revision: D49068234 fbshipit-source-id: 4c5ce25b3fbcc2d7545f2000d931be893a661332 --- .../annotations/DeprecatedInNewArchitecture.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/DeprecatedInNewArchitecture.kt diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/DeprecatedInNewArchitecture.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/DeprecatedInNewArchitecture.kt new file mode 100644 index 00000000000..383cd53a995 --- /dev/null +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/DeprecatedInNewArchitecture.kt @@ -0,0 +1,16 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +package com.facebook.react.common.annotations + +/** + * Annotates a method or class that will be deprecated once the NewArchitecture is fully released in + * OSS. + */ +@Retention(AnnotationRetention.SOURCE) +@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) +annotation class DeprecatedInNewArchitecture()