Søren Gjesse | 591455a | 2025-02-06 16:46:39 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2025 The Android Open Source Project |
| 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 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | // *********************************************************************************** |
| 18 | // MAINTAINED AND TESTED IN THE R8 REPO. PLEASE MAKE CHANGES THERE AND REPLICATE. |
| 19 | // *********************************************************************************** |
| 20 | |
Søren Gjesse | 43a1678 | 2025-02-24 09:19:24 +0100 | [diff] [blame] | 21 | package androidx.annotation.keep |
Søren Gjesse | 591455a | 2025-02-06 16:46:39 +0100 | [diff] [blame] | 22 | |
Søren Gjesse | 43a1678 | 2025-02-24 09:19:24 +0100 | [diff] [blame] | 23 | import kotlin.annotation.Retention |
| 24 | import kotlin.annotation.Target |
Søren Gjesse | 591455a | 2025-02-06 16:46:39 +0100 | [diff] [blame] | 25 | |
| 26 | /** |
| 27 | * Mark that an item must be fully removed from the residual program. |
| 28 | * |
| 29 | * <p>Being removed from the program means that the item declaration is not present at all in the |
| 30 | * residual program. For example, inlined functions are not considered removed. If content of the |
| 31 | * item is allowed to be in the residual, use {@link CheckOptimizedOut}. |
| 32 | * |
| 33 | * <p>A class is removed if all of its members are removed and no references to the class remain. |
| 34 | */ |
Søren Gjesse | 43a1678 | 2025-02-24 09:19:24 +0100 | [diff] [blame] | 35 | @Retention(AnnotationRetention.BINARY) |
| 36 | @Target( |
Søren Gjesse | b2f03c7 | 2025-03-19 15:10:23 +0100 | [diff] [blame^] | 37 | AnnotationTarget.TYPE, |
| 38 | AnnotationTarget.FIELD, |
| 39 | AnnotationTarget.FUNCTION, |
| 40 | AnnotationTarget.CONSTRUCTOR, |
Søren Gjesse | 43a1678 | 2025-02-24 09:19:24 +0100 | [diff] [blame] | 41 | ) |
Søren Gjesse | f1d79d5 | 2025-02-24 12:17:45 +0100 | [diff] [blame] | 42 | public annotation class CheckRemoved(val description: String = "") |