Introduce FrameworkAPI annotation to document APIs that are provided ONLY for frameworks (#38686)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38686

In this diff I'm introducing the FrameworkAPI annotation to document APIs that are provided ONLY for frameworks

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D47839411

fbshipit-source-id: 254a1f6cd42279478fba0ddb3f3736bb2b675bae
This commit is contained in:
David Vacca
2023-07-30 11:54:13 -07:00
committed by Facebook GitHub Bot
parent 17ebe6cd69
commit cbf9408dd0
@@ -0,0 +1,18 @@
/*
* 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
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@RequiresOptIn(
level = RequiresOptIn.Level.ERROR,
message =
"This API is provided only for React Native frameworks and not intended for general users. " +
"This API can change between minor versions in alignment with React Native frameworks " +
"and won't be considered a breaking change.")
annotation class FrameworkAPI