Skip to content

Commit 2fffe37

Browse files
mateoguzmanauffoltzl
authored and
uffoltzl
committed
Make EventCategoryDef internal (facebook#50600)
Summary: This class can be internalized as part of the initiative to reduce the public API surface. I've checked there are [no relevant OSS usages](https://github.com/search?type=code&q=NOT+is%3Afork+NOT+org%3Afacebook+NOT+repo%3Areact-native-tvos%2Freact-native-tvos+NOT+repo%3Anuagoz%2Freact-native+NOT+repo%3A2lambda123%2Freact-native+NOT+repo%3Abeanchips%2Ffacebookreactnative+NOT+repo%3AfabOnReact%2Freact-native-notes+NOT+user%3Ahuntie+NOT+user%3Acortinico+NOT+repo%3AMaxdev18%2Fpowersync_app+NOT+repo%3Acarter-0%2Finstagram-decompiled+NOT+repo%3Am0mosenpai%2Finstadamn+NOT+repo%3AA-Star100%2FA-Star100-AUG2-2024+NOT+repo%3Alclnrd%2Fdetox-scrollview-reproductible+NOT+repo%3ADionisisChytiris%2FWorldWiseTrivia_Main+NOT+repo%3Apast3l%2Fhi2+NOT+repo%3AoneDotpy%2FCaribouQuest+NOT+repo%3Abejayoharen%2Fdailytodo+NOT+repo%3Amolangning%2Freversing-discord+NOT+repo%3AScottPrzy%2Freact-native+NOT+repo%3Agabrieldonadel%2Freact-native-visionos+NOT+repo%3AGabriel2308%2FTestes-Soft+NOT+repo%3Adawnzs03%2FflakyBuild+NOT+repo%3Acga2351%2Fcode+NOT+repo%3Astreeg%2Ftcc+NOT+repo%3Asoftware-mansion-labs%2Freact-native-swiftui+NOT+repo%3Apkcsecurity%2Fdecompiled-lightbulb+com.facebook.react.uimanager.events.EventCategoryDef). ## Changelog: [INTERNAL] - Make com.facebook.react.uimanager.events.EventCategoryDef internal Pull Request resolved: facebook#50600 Test Plan: ```bash yarn test-android yarn android ``` Reviewed By: cortinico Differential Revision: D72746853 Pulled By: arushikesarwani94 fbshipit-source-id: d74847d89b3cfc3d68ff43a0ca31abb59aefa575
1 parent 604fa5d commit 2fffe37

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

packages/react-native/ReactAndroid/api/ReactAndroid.api

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5062,23 +5062,6 @@ public abstract interface class com/facebook/react/uimanager/events/Event$EventA
50625062
public abstract fun match (ILjava/lang/String;)Z
50635063
}
50645064

5065-
public abstract interface annotation class com/facebook/react/uimanager/events/EventCategoryDef : java/lang/annotation/Annotation {
5066-
public static final field CONTINUOUS I
5067-
public static final field CONTINUOUS_END I
5068-
public static final field CONTINUOUS_START I
5069-
public static final field Companion Lcom/facebook/react/uimanager/events/EventCategoryDef$Companion;
5070-
public static final field DISCRETE I
5071-
public static final field UNSPECIFIED I
5072-
}
5073-
5074-
public final class com/facebook/react/uimanager/events/EventCategoryDef$Companion {
5075-
public static final field CONTINUOUS I
5076-
public static final field CONTINUOUS_END I
5077-
public static final field CONTINUOUS_START I
5078-
public static final field DISCRETE I
5079-
public static final field UNSPECIFIED I
5080-
}
5081-
50825065
public abstract interface class com/facebook/react/uimanager/events/EventDispatcher {
50835066
public abstract fun addBatchEventDispatchedListener (Lcom/facebook/react/uimanager/events/BatchEventDispatchedListener;)V
50845067
public abstract fun addListener (Lcom/facebook/react/uimanager/events/EventDispatcherListener;)V

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventCategoryDef.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,25 @@ import androidx.annotation.IntDef
2222
EventCategoryDef.DISCRETE,
2323
EventCategoryDef.CONTINUOUS])
2424
@Retention(AnnotationRetention.SOURCE)
25-
public annotation class EventCategoryDef {
26-
public companion object {
25+
internal annotation class EventCategoryDef {
26+
companion object {
2727
/** Start of a continuous event. To be used with touchStart. */
28-
public const val CONTINUOUS_START: Int = 0
28+
const val CONTINUOUS_START: Int = 0
2929

3030
/** End of a continuous event. To be used with touchEnd. */
31-
public const val CONTINUOUS_END: Int = 1
31+
const val CONTINUOUS_END: Int = 1
3232

3333
/**
3434
* Priority for this event will be determined from other events in the queue. If it is triggered
3535
* by continuous event, its priority will be default. If it is not triggered by continuous
3636
* event, its priority will be discrete.
3737
*/
38-
public const val UNSPECIFIED: Int = 2
38+
const val UNSPECIFIED: Int = 2
3939

4040
/** Forces discrete type for the event. Regardless if continuous event is ongoing. */
41-
public const val DISCRETE: Int = 3
41+
const val DISCRETE: Int = 3
4242

4343
/** Forces continuous type for the event. Regardless if continuous event isn't ongoing. */
44-
public const val CONTINUOUS: Int = 4
44+
const val CONTINUOUS: Int = 4
4545
}
4646
}

0 commit comments

Comments
 (0)