mirror of
https://github.com/react/react-native.git
synced 2026-09-28 13:23:09 +08:00
Exclude TinyMap and packAnimatedProps from the public C++ API (#56292)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56292 The TinyMap is a helper class under internal directory, not referenced anywhere in the snapshot, and considered unsafe (from the comment). It is not part of any module, so it is better to remove that from the snapshot. The `packAnimatedProps` method is used in `AnimationBackend` for translation from `AnimatedProps` to `folly::dynamic` and should not be used outside of React Native. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D98907855 fbshipit-source-id: e3a371cc088000a23f1ce1121fda808494979140
This commit is contained in:
committed by
meta-codesync[bot]
parent
de78906391
commit
654d64655a
@@ -306,17 +306,6 @@ struct pre_merge_jni_library {
|
||||
public int(*onload_func)(JNIEnv *, jclass);
|
||||
}
|
||||
|
||||
template <typename KeyT, typename ValueT>
|
||||
class TinyMap {
|
||||
public TinyMap::Iterator begin();
|
||||
public TinyMap::Iterator end();
|
||||
public TinyMap::Iterator find(KeyT key);
|
||||
public using Iterator = TinyMap::Pair*;
|
||||
public using Pair = std::pair<KeyT, ValueT>;
|
||||
public void erase(TinyMap::Iterator iterator);
|
||||
public void insert(TinyMap::Pair pair);
|
||||
}
|
||||
|
||||
union jvalue {
|
||||
public jboolean z;
|
||||
public jbyte b;
|
||||
@@ -11404,9 +11393,6 @@ struct facebook::react::dom::RNMeasureRect {
|
||||
}
|
||||
|
||||
|
||||
folly::dynamic facebook::react::animationbackend::packAnimatedProps(const facebook::react::AnimatedProps& animatedProps);
|
||||
|
||||
|
||||
static constexpr facebook::react::Tag facebook::react::animated::undefinedAnimatedNodeIdentifier;
|
||||
|
||||
|
||||
|
||||
@@ -306,17 +306,6 @@ struct pre_merge_jni_library {
|
||||
public int(*onload_func)(JNIEnv *, jclass);
|
||||
}
|
||||
|
||||
template <typename KeyT, typename ValueT>
|
||||
class TinyMap {
|
||||
public TinyMap::Iterator begin();
|
||||
public TinyMap::Iterator end();
|
||||
public TinyMap::Iterator find(KeyT key);
|
||||
public using Iterator = TinyMap::Pair*;
|
||||
public using Pair = std::pair<KeyT, ValueT>;
|
||||
public void erase(TinyMap::Iterator iterator);
|
||||
public void insert(TinyMap::Pair pair);
|
||||
}
|
||||
|
||||
union jvalue {
|
||||
public jboolean z;
|
||||
public jbyte b;
|
||||
@@ -11260,9 +11249,6 @@ struct facebook::react::dom::RNMeasureRect {
|
||||
}
|
||||
|
||||
|
||||
folly::dynamic facebook::react::animationbackend::packAnimatedProps(const facebook::react::AnimatedProps& animatedProps);
|
||||
|
||||
|
||||
static constexpr facebook::react::Tag facebook::react::animated::undefinedAnimatedNodeIdentifier;
|
||||
|
||||
|
||||
|
||||
@@ -3637,17 +3637,6 @@ struct YGValue {
|
||||
public float value;
|
||||
}
|
||||
|
||||
template <typename KeyT, typename ValueT>
|
||||
class TinyMap {
|
||||
public TinyMap::Iterator begin();
|
||||
public TinyMap::Iterator end();
|
||||
public TinyMap::Iterator find(KeyT key);
|
||||
public using Iterator = TinyMap::Pair*;
|
||||
public using Pair = std::pair<KeyT, ValueT>;
|
||||
public void erase(TinyMap::Iterator iterator);
|
||||
public void insert(TinyMap::Pair pair);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
struct RCTRequired {
|
||||
public RCTRequired& operator=(RCTRequired&&) = default;
|
||||
@@ -13686,9 +13675,6 @@ facebook::jsi::Value facebook::react::TurboModuleConvertUtils::convertObjCObject
|
||||
id facebook::react::TurboModuleConvertUtils::convertJSIValueToObjCObject(facebook::jsi::Runtime& runtime, const facebook::jsi::Value& value, const std::shared_ptr<facebook::react::CallInvoker>& jsInvoker, BOOL useNSNull = NO);
|
||||
|
||||
|
||||
folly::dynamic facebook::react::animationbackend::packAnimatedProps(const facebook::react::AnimatedProps& animatedProps);
|
||||
|
||||
|
||||
static const facebook::react::Color facebook::react::HostPlatformColor::UndefinedColor;
|
||||
|
||||
|
||||
|
||||
@@ -3637,17 +3637,6 @@ struct YGValue {
|
||||
public float value;
|
||||
}
|
||||
|
||||
template <typename KeyT, typename ValueT>
|
||||
class TinyMap {
|
||||
public TinyMap::Iterator begin();
|
||||
public TinyMap::Iterator end();
|
||||
public TinyMap::Iterator find(KeyT key);
|
||||
public using Iterator = TinyMap::Pair*;
|
||||
public using Pair = std::pair<KeyT, ValueT>;
|
||||
public void erase(TinyMap::Iterator iterator);
|
||||
public void insert(TinyMap::Pair pair);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
struct RCTRequired {
|
||||
public RCTRequired& operator=(RCTRequired&&) = default;
|
||||
@@ -13552,9 +13541,6 @@ facebook::jsi::Value facebook::react::TurboModuleConvertUtils::convertObjCObject
|
||||
id facebook::react::TurboModuleConvertUtils::convertJSIValueToObjCObject(facebook::jsi::Runtime& runtime, const facebook::jsi::Value& value, const std::shared_ptr<facebook::react::CallInvoker>& jsInvoker, BOOL useNSNull = NO);
|
||||
|
||||
|
||||
folly::dynamic facebook::react::animationbackend::packAnimatedProps(const facebook::react::AnimatedProps& animatedProps);
|
||||
|
||||
|
||||
static const facebook::react::Color facebook::react::HostPlatformColor::UndefinedColor;
|
||||
|
||||
|
||||
|
||||
@@ -16,17 +16,6 @@ struct YGValue {
|
||||
public float value;
|
||||
}
|
||||
|
||||
template <typename KeyT, typename ValueT>
|
||||
class TinyMap {
|
||||
public TinyMap::Iterator begin();
|
||||
public TinyMap::Iterator end();
|
||||
public TinyMap::Iterator find(KeyT key);
|
||||
public using Iterator = TinyMap::Pair*;
|
||||
public using Pair = std::pair<KeyT, ValueT>;
|
||||
public void erase(TinyMap::Iterator iterator);
|
||||
public void insert(TinyMap::Pair pair);
|
||||
}
|
||||
|
||||
|
||||
bool facebook::xplat::jsArgAsBool(const folly::dynamic& args, size_t n);
|
||||
double facebook::xplat::jsArgAsDouble(const folly::dynamic& args, size_t n);
|
||||
@@ -8462,9 +8451,6 @@ struct facebook::react::dom::RNMeasureRect {
|
||||
}
|
||||
|
||||
|
||||
folly::dynamic facebook::react::animationbackend::packAnimatedProps(const facebook::react::AnimatedProps& animatedProps);
|
||||
|
||||
|
||||
static constexpr facebook::react::Tag facebook::react::animated::undefinedAnimatedNodeIdentifier;
|
||||
|
||||
|
||||
|
||||
@@ -16,17 +16,6 @@ struct YGValue {
|
||||
public float value;
|
||||
}
|
||||
|
||||
template <typename KeyT, typename ValueT>
|
||||
class TinyMap {
|
||||
public TinyMap::Iterator begin();
|
||||
public TinyMap::Iterator end();
|
||||
public TinyMap::Iterator find(KeyT key);
|
||||
public using Iterator = TinyMap::Pair*;
|
||||
public using Pair = std::pair<KeyT, ValueT>;
|
||||
public void erase(TinyMap::Iterator iterator);
|
||||
public void insert(TinyMap::Pair pair);
|
||||
}
|
||||
|
||||
|
||||
bool facebook::xplat::jsArgAsBool(const folly::dynamic& args, size_t n);
|
||||
double facebook::xplat::jsArgAsDouble(const folly::dynamic& args, size_t n);
|
||||
@@ -8453,9 +8442,6 @@ struct facebook::react::dom::RNMeasureRect {
|
||||
}
|
||||
|
||||
|
||||
folly::dynamic facebook::react::animationbackend::packAnimatedProps(const facebook::react::AnimatedProps& animatedProps);
|
||||
|
||||
|
||||
static constexpr facebook::react::Tag facebook::react::animated::undefinedAnimatedNodeIdentifier;
|
||||
|
||||
|
||||
|
||||
@@ -11,6 +11,8 @@ exclude_symbols:
|
||||
- "NativeReactNativeFeatureFlags"
|
||||
- "UnstableLegacy"
|
||||
- "Experimental"
|
||||
- "TinyMap"
|
||||
- "packAnimatedProps"
|
||||
|
||||
platforms:
|
||||
ReactCommon:
|
||||
|
||||
Reference in New Issue
Block a user