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
This commit is contained in:
David Vacca
2023-09-14 11:13:16 -07:00
committed by Facebook GitHub Bot
parent da8616ec69
commit 4fd44cdc11
@@ -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()