From 54e0b69e7e325b667ef4b69eab0bfa123ce8e428 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Fri, 24 Jan 2025 10:22:23 -0800 Subject: [PATCH] Stable API - Make AnimatedNodeWithUpdateableConfig internal (#48900) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48900 I've verified that this interface is not used externally, so I'm making it internal. 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%3Apvinis%2Freact-native---investigation+NOT+repo%3Abeanchips%2Ffacebookreactnative+NOT+repo%3AfabOnReact%2Freact-native-notes+NOT+user%3Ahuntie+NOT+repo%3Amolangning%2Freversing-discord+com.facebook.react.animated.AnimatedNodeWithUpdateableConfig+ Changelog: [Android] [Removed] - Stable API - Make `AnimatedNodeWithUpdateableConfig` internal as it was not used in OSS Reviewed By: tdn120, mdvacca Differential Revision: D68562055 fbshipit-source-id: 0f06c22dc096efabce9fb937f099775effbff3f6 --- packages/react-native/ReactAndroid/api/ReactAndroid.api | 4 ---- .../react/animated/AnimatedNodeWithUpdateableConfig.kt | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 2ca2680741b978..f695a7cda486f4 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -460,10 +460,6 @@ public abstract interface class com/facebook/react/animated/AnimatedNodeValueLis public abstract fun onValueUpdate (D)V } -public abstract interface class com/facebook/react/animated/AnimatedNodeWithUpdateableConfig { - public abstract fun onUpdateConfig (Lcom/facebook/react/bridge/ReadableMap;)V -} - public final class com/facebook/react/animated/InterpolationAnimatedNode : com/facebook/react/animated/ValueAnimatedNode { public static final field Companion Lcom/facebook/react/animated/InterpolationAnimatedNode$Companion; public static final field EXTRAPOLATE_TYPE_CLAMP Ljava/lang/String; diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNodeWithUpdateableConfig.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNodeWithUpdateableConfig.kt index bd5c8dff0a8de4..073c04a63a4616 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNodeWithUpdateableConfig.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNodeWithUpdateableConfig.kt @@ -10,6 +10,6 @@ package com.facebook.react.animated import com.facebook.react.bridge.ReadableMap /** Indicates that AnimatedNode is able to receive native config updates. */ -public fun interface AnimatedNodeWithUpdateableConfig { - public fun onUpdateConfig(config: ReadableMap?) +internal fun interface AnimatedNodeWithUpdateableConfig { + fun onUpdateConfig(config: ReadableMap?) }