Skip to content

Commit bdf01be

Browse files
fabriziocuccifacebook-github-bot
authored andcommitted
Migrate com.facebook.proguard.annotations.KeepGettersAndSetters to Kotlin (facebook#47703)
Summary: Pull Request resolved: facebook#47703 As per title. Changelog: [Internal] Reviewed By: javache Differential Revision: D66094514 fbshipit-source-id: 85d6cceaba7445f624461a880c2bc9c05b440f53
1 parent 4da6ed5 commit bdf01be

File tree

2 files changed

+24
-27
lines changed

2 files changed

+24
-27
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/proguard/annotations/KeepGettersAndSetters.java

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
package com.facebook.proguard.annotations
9+
10+
import kotlin.annotation.AnnotationRetention
11+
import kotlin.annotation.AnnotationTarget
12+
13+
/**
14+
* Add this annotation to a class, to keep all "void set*(***)" and get* methods.
15+
*
16+
* This is useful for classes that are controlled by animator-like classes that control various
17+
* properties with reflection.
18+
*
19+
* **NOTE:** This is *not* needed for Views because their getters and setters are automatically kept
20+
* by the default Android SDK ProGuard config.
21+
*/
22+
@Target(AnnotationTarget.CLASS)
23+
@Retention(AnnotationRetention.BINARY)
24+
public annotation class KeepGettersAndSetters

0 commit comments

Comments
 (0)