Skip to content

Commit

Permalink
Introduce WillBeDeprecatedInNewArchitecture annotation (#39351)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #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: 6ad14aa56db6b3401afed456535617bcd2d57635
  • Loading branch information
mdvacca committed Sep 13, 2023
1 parent 9188d6d commit 3b2f35b
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 3b2f35b

Please sign in to comment.