mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
23 lines
755 B
Java
23 lines
755 B
Java
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* <p>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.proguard.annotations;
|
|
|
|
import static java.lang.annotation.RetentionPolicy.CLASS;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* Add this annotation to a class, method, or field to instruct Proguard to not strip it out.
|
|
*
|
|
* <p>This is useful for methods called via reflection that could appear as unused to Proguard.
|
|
*/
|
|
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR})
|
|
@Retention(CLASS)
|
|
public @interface DoNotStrip {}
|