|
| 1 | +/* |
| 2 | + * Copyright 2026 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"). |
| 5 | + * You may not use this file except in compliance with the License. |
| 6 | + * A copy of the License is located at |
| 7 | + * |
| 8 | + * http://aws.amazon.com/apache2.0 |
| 9 | + * |
| 10 | + * or in the "license" file accompanying this file. This file is distributed |
| 11 | + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
| 12 | + * express or implied. See the License for the specific language governing |
| 13 | + * permissions and limitations under the License. |
| 14 | + */ |
| 15 | + |
| 16 | +package com.amplifyframework.annotations |
| 17 | + |
| 18 | +/** |
| 19 | + * An API marked with this annotation is experimental. It may be changed or removed in a future release without |
| 20 | + * following the standard deprecation cycle. |
| 21 | + * |
| 22 | + * Any usage of this API must be explicitly opted in with [OptIn] (e.g., `@OptIn(ExperimentalAmplifyApi::class)`) or |
| 23 | + * by annotating the consuming declaration with [ExperimentalAmplifyApi]. |
| 24 | + */ |
| 25 | +@MustBeDocumented |
| 26 | +@Retention(AnnotationRetention.BINARY) |
| 27 | +@Target( |
| 28 | + AnnotationTarget.CLASS, |
| 29 | + AnnotationTarget.TYPEALIAS, |
| 30 | + AnnotationTarget.FUNCTION, |
| 31 | + AnnotationTarget.PROPERTY, |
| 32 | + AnnotationTarget.FIELD, |
| 33 | + AnnotationTarget.CONSTRUCTOR |
| 34 | +) |
| 35 | +@RequiresOptIn( |
| 36 | + level = RequiresOptIn.Level.WARNING, |
| 37 | + message = "This API is experimental. It may be changed or removed without notice." |
| 38 | +) |
| 39 | +annotation class ExperimentalAmplifyApi |
0 commit comments