From 4d91fdb7e22a1851038b6aeebd992fea1f23fda0 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Fri, 18 Aug 2023 14:17:55 +1000 Subject: [PATCH 01/10] Sort dependencies alphabetically in `Podfile` So it's easier to find them in the `third-party-podspec` folder --- ios-xcframework/Podfile | 24 ++++++++++++------------ ios-xcframework/Podfile.lock | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ios-xcframework/Podfile b/ios-xcframework/Podfile index 7b4d486551..5e52f9bd20 100644 --- a/ios-xcframework/Podfile +++ b/ios-xcframework/Podfile @@ -18,22 +18,22 @@ puts "[Gutenberg] Installing pods with Hermes #{HERMES_ENABLED ? 'enabled' : 'di # # See https://github.com/wordpress-mobile/gutenberg-mobile/issues/5025 DEPENDENCIES = %w[ - react-native-safe-area - react-native-safe-area-context - react-native-video - react-native-webview - RNSVG - react-native-slider BVLinearGradient - react-native-get-random-values - react-native-blur - RNScreens - RNReanimated - RNGestureHandler - RNCMaskedView RNCClipboard + RNCMaskedView RNFastImage + RNGestureHandler + RNReanimated + RNSVG + RNScreens React-jsc + react-native-blur + react-native-get-random-values + react-native-safe-area + react-native-safe-area-context + react-native-slider + react-native-video + react-native-webview ].freeze def gutenberg_dependencies diff --git a/ios-xcframework/Podfile.lock b/ios-xcframework/Podfile.lock index 446a52084d..796de1567b 100644 --- a/ios-xcframework/Podfile.lock +++ b/ios-xcframework/Podfile.lock @@ -674,6 +674,6 @@ SPEC CHECKSUMS: WordPress-Aztec-iOS: 7d11d598f14c82c727c08b56bd35fbeb7dafb504 Yoga: f7decafdc5e8c125e6fa0da38a687e35238420fa -PODFILE CHECKSUM: 1caec69a3de9c6e37113c8eb5dbdb2d2b52c5108 +PODFILE CHECKSUM: e57cfb15c9f14803b34e0d6ec43599b66f6d5a0c COCOAPODS: 1.12.1 From 60b80953fd735c49253f1d21cb6ef3fd350379c4 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Fri, 18 Aug 2023 14:24:19 +1000 Subject: [PATCH 02/10] Removed custom `podspec.json` for deps not used in `Podfile` I run `bundle exec pod install` to verify these removals didn't result in any change in the `Podfile.lock`, which they didn't. --- .../DoubleConversion.podspec.json | 26 - .../FBLazyVector.podspec.json | 19 - .../FBReactNativeSpec.podspec.json | 45 - .../FBReactNativeSpec-generated.mm | 1964 ------------- .../FBReactNativeSpec/FBReactNativeSpec.h | 2426 ----------------- third-party-podspecs/RCT-Folly.podspec.json | 161 -- third-party-podspecs/RCTRequired.podspec.json | 19 - .../RCTTypeSafety.podspec.json | 35 - .../React-Codegen.podspec.json | 33 - third-party-podspecs/React-Core.podspec.json | 176 -- .../React-CoreModules.podspec.json | 49 - .../React-RCTActionSheet.podspec.json | 30 - .../React-RCTAnimation.podspec.json | 50 - .../React-RCTAppDelegate.podspec.json | 35 - .../React-RCTBlob.podspec.json | 54 - .../React-RCTImage.podspec.json | 54 - .../React-RCTLinking.podspec.json | 45 - .../React-RCTNetwork.podspec.json | 51 - .../React-RCTPushNotification.podspec.json | 49 - .../React-RCTSettings.podspec.json | 51 - .../React-RCTText.podspec.json | 30 - .../React-RCTVibration.podspec.json | 49 - .../React-callinvoker.podspec.json | 19 - .../React-cxxreact.podspec.json | 53 - .../React-graphics.podspec.json | 37 - .../React-hermes.podspec.json | 55 - third-party-podspecs/React-jsi.podspec.json | 34 - .../React-jsiexecutor.podspec.json | 40 - .../React-jsinspector.podspec.json | 19 - .../React-logger.podspec.json | 27 - .../React-perflogger.podspec.json | 19 - .../React-runtimeexecutor.podspec.json | 24 - third-party-podspecs/React.podspec.json | 62 - third-party-podspecs/ReactCommon.podspec.json | 100 - third-party-podspecs/Yoga.podspec.json | 37 - third-party-podspecs/boost.podspec.json | 23 - third-party-podspecs/glog.podspec.json | 42 - .../hermes-engine.podspec.json | 46 - 38 files changed, 6088 deletions(-) delete mode 100644 third-party-podspecs/DoubleConversion.podspec.json delete mode 100644 third-party-podspecs/FBLazyVector.podspec.json delete mode 100644 third-party-podspecs/FBReactNativeSpec/FBReactNativeSpec.podspec.json delete mode 100644 third-party-podspecs/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm delete mode 100644 third-party-podspecs/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h delete mode 100644 third-party-podspecs/RCT-Folly.podspec.json delete mode 100644 third-party-podspecs/RCTRequired.podspec.json delete mode 100644 third-party-podspecs/RCTTypeSafety.podspec.json delete mode 100644 third-party-podspecs/React-Codegen.podspec.json delete mode 100644 third-party-podspecs/React-Core.podspec.json delete mode 100644 third-party-podspecs/React-CoreModules.podspec.json delete mode 100644 third-party-podspecs/React-RCTActionSheet.podspec.json delete mode 100644 third-party-podspecs/React-RCTAnimation.podspec.json delete mode 100644 third-party-podspecs/React-RCTAppDelegate.podspec.json delete mode 100644 third-party-podspecs/React-RCTBlob.podspec.json delete mode 100644 third-party-podspecs/React-RCTImage.podspec.json delete mode 100644 third-party-podspecs/React-RCTLinking.podspec.json delete mode 100644 third-party-podspecs/React-RCTNetwork.podspec.json delete mode 100644 third-party-podspecs/React-RCTPushNotification.podspec.json delete mode 100644 third-party-podspecs/React-RCTSettings.podspec.json delete mode 100644 third-party-podspecs/React-RCTText.podspec.json delete mode 100644 third-party-podspecs/React-RCTVibration.podspec.json delete mode 100644 third-party-podspecs/React-callinvoker.podspec.json delete mode 100644 third-party-podspecs/React-cxxreact.podspec.json delete mode 100644 third-party-podspecs/React-graphics.podspec.json delete mode 100644 third-party-podspecs/React-hermes.podspec.json delete mode 100644 third-party-podspecs/React-jsi.podspec.json delete mode 100644 third-party-podspecs/React-jsiexecutor.podspec.json delete mode 100644 third-party-podspecs/React-jsinspector.podspec.json delete mode 100644 third-party-podspecs/React-logger.podspec.json delete mode 100644 third-party-podspecs/React-perflogger.podspec.json delete mode 100644 third-party-podspecs/React-runtimeexecutor.podspec.json delete mode 100644 third-party-podspecs/React.podspec.json delete mode 100644 third-party-podspecs/ReactCommon.podspec.json delete mode 100644 third-party-podspecs/Yoga.podspec.json delete mode 100644 third-party-podspecs/boost.podspec.json delete mode 100644 third-party-podspecs/glog.podspec.json delete mode 100644 third-party-podspecs/hermes-engine.podspec.json diff --git a/third-party-podspecs/DoubleConversion.podspec.json b/third-party-podspecs/DoubleConversion.podspec.json deleted file mode 100644 index 36e668886c..0000000000 --- a/third-party-podspecs/DoubleConversion.podspec.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "DoubleConversion", - "version": "1.1.6", - "license": { - "type": "MIT" - }, - "homepage": "https://github.com/google/double-conversion", - "summary": "Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles", - "authors": "Google", - "prepare_command": "mv src double-conversion", - "source": { - "git": "https://github.com/google/double-conversion.git", - "tag": "v1.1.6" - }, - "module_name": "DoubleConversion", - "header_dir": "double-conversion", - "source_files": "double-conversion/*.{h,cc}", - "compiler_flags": "-Wno-unreachable-code", - "user_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/DoubleConversion\"" - }, - "platforms": { - "ios": "12.4" - }, - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/FBLazyVector.podspec.json b/third-party-podspecs/FBLazyVector.podspec.json deleted file mode 100644 index e54111b313..0000000000 --- a/third-party-podspecs/FBLazyVector.podspec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "FBLazyVector", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "**/*.{c,h,m,mm,cpp}", - "header_dir": "FBLazyVector", - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/FBLazyVector\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/FBReactNativeSpec/FBReactNativeSpec.podspec.json b/third-party-podspecs/FBReactNativeSpec/FBReactNativeSpec.podspec.json deleted file mode 100644 index 51b27a4f3d..0000000000 --- a/third-party-podspecs/FBReactNativeSpec/FBReactNativeSpec.podspec.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "FBReactNativeSpec", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-nullability-completeness", - "source": { - "git": "https://github.com/wordpress-mobile/gutenberg-mobile.git", - "commit": "f4d2319badc5adf70223a346278881273b08eaf0", - "submodules": "true" - }, - "header_dir": "FBReactNativeSpec", - "pod_target_xcconfig": { - "USE_HEADERMAP": "YES", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/RCT-Folly\"" - }, - "dependencies": { - "RCT-Folly": [ - "2021.07.22.00" - ], - "RCTRequired": [ - "0.71.11" - ], - "RCTTypeSafety": [ - "0.71.11" - ], - "React-Core": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ], - "ReactCommon/turbomodule/core": [ - "0.71.11" - ] - }, - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary.", - "source_files": "third-party-podspecs/FBReactNativeSpec/**/*.{c,h,m,mm,cpp}" -} diff --git a/third-party-podspecs/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm b/third-party-podspecs/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm deleted file mode 100644 index 5b05347d69..0000000000 --- a/third-party-podspecs/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm +++ /dev/null @@ -1,1964 +0,0 @@ -/** - * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). - * - * Do not edit this file as changes may cause incorrect behavior and will be lost - * once the code is regenerated. - * - * @generated by codegen project: GenerateModuleObjCpp - * - * We create an umbrella header (and corresponding implementation) here since - * Cxx compilation in BUCK has a limitation: source-code producing genrule()s - * must have a single output. More files => more genrule()s => slower builds. - */ - -#import "FBReactNativeSpec.h" - - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_isReduceMotionEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "isReduceMotionEnabled", @selector(isReduceMotionEnabled:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_isTouchExplorationEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "isTouchExplorationEnabled", @selector(isTouchExplorationEnabled:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_isAccessibilityServiceEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "isAccessibilityServiceEnabled", @selector(isAccessibilityServiceEnabled:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_setAccessibilityFocus(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAccessibilityFocus", @selector(setAccessibilityFocus:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_announceForAccessibility(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "announceForAccessibility", @selector(announceForAccessibility:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityInfoSpecJSI_getRecommendedTimeoutMillis(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getRecommendedTimeoutMillis", @selector(getRecommendedTimeoutMillis:onSuccess:), args, count); - } - - NativeAccessibilityInfoSpecJSI::NativeAccessibilityInfoSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["isReduceMotionEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoSpecJSI_isReduceMotionEnabled}; - - - methodMap_["isTouchExplorationEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoSpecJSI_isTouchExplorationEnabled}; - - - methodMap_["isAccessibilityServiceEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoSpecJSI_isAccessibilityServiceEnabled}; - - - methodMap_["setAccessibilityFocus"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoSpecJSI_setAccessibilityFocus}; - - - methodMap_["announceForAccessibility"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoSpecJSI_announceForAccessibility}; - - - methodMap_["getRecommendedTimeoutMillis"] = MethodMetadata {2, __hostFunction_NativeAccessibilityInfoSpecJSI_getRecommendedTimeoutMillis}; - - } - } // namespace react -} // namespace facebook -@implementation RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers) -+ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions) -+ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentBoldTextState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentBoldTextState", @selector(getCurrentBoldTextState:onError:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentGrayscaleState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentGrayscaleState", @selector(getCurrentGrayscaleState:onError:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentInvertColorsState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentInvertColorsState", @selector(getCurrentInvertColorsState:onError:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentReduceMotionState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentReduceMotionState", @selector(getCurrentReduceMotionState:onError:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentPrefersCrossFadeTransitionsState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentPrefersCrossFadeTransitionsState", @selector(getCurrentPrefersCrossFadeTransitionsState:onError:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentReduceTransparencyState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentReduceTransparencyState", @selector(getCurrentReduceTransparencyState:onError:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentVoiceOverState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentVoiceOverState", @selector(getCurrentVoiceOverState:onError:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_setAccessibilityContentSizeMultipliers(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAccessibilityContentSizeMultipliers", @selector(setAccessibilityContentSizeMultipliers:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_setAccessibilityFocus(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAccessibilityFocus", @selector(setAccessibilityFocus:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_announceForAccessibility(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "announceForAccessibility", @selector(announceForAccessibility:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAccessibilityManagerSpecJSI_announceForAccessibilityWithOptions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "announceForAccessibilityWithOptions", @selector(announceForAccessibilityWithOptions:options:), args, count); - } - - NativeAccessibilityManagerSpecJSI::NativeAccessibilityManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["getCurrentBoldTextState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentBoldTextState}; - - - methodMap_["getCurrentGrayscaleState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentGrayscaleState}; - - - methodMap_["getCurrentInvertColorsState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentInvertColorsState}; - - - methodMap_["getCurrentReduceMotionState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentReduceMotionState}; - - - methodMap_["getCurrentPrefersCrossFadeTransitionsState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentPrefersCrossFadeTransitionsState}; - - - methodMap_["getCurrentReduceTransparencyState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentReduceTransparencyState}; - - - methodMap_["getCurrentVoiceOverState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentVoiceOverState}; - - - methodMap_["setAccessibilityContentSizeMultipliers"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerSpecJSI_setAccessibilityContentSizeMultipliers}; - setMethodArgConversionSelector(@"setAccessibilityContentSizeMultipliers", 0, @"JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:"); - - methodMap_["setAccessibilityFocus"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerSpecJSI_setAccessibilityFocus}; - - - methodMap_["announceForAccessibility"] = MethodMetadata {1, __hostFunction_NativeAccessibilityManagerSpecJSI_announceForAccessibility}; - - - methodMap_["announceForAccessibilityWithOptions"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_announceForAccessibilityWithOptions}; - setMethodArgConversionSelector(@"announceForAccessibilityWithOptions", 1, @"JS_NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions:"); - } - } // namespace react -} // namespace facebook -@implementation RCTCxxConvert (NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions) -+ (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions) -+ (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeActionSheetManagerSpecJSI_showActionSheetWithOptions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "showActionSheetWithOptions", @selector(showActionSheetWithOptions:callback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeActionSheetManagerSpecJSI_showShareActionSheetWithOptions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "showShareActionSheetWithOptions", @selector(showShareActionSheetWithOptions:failureCallback:successCallback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeActionSheetManagerSpecJSI_dismissActionSheet(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dismissActionSheet", @selector(dismissActionSheet), args, count); - } - - NativeActionSheetManagerSpecJSI::NativeActionSheetManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["showActionSheetWithOptions"] = MethodMetadata {2, __hostFunction_NativeActionSheetManagerSpecJSI_showActionSheetWithOptions}; - setMethodArgConversionSelector(@"showActionSheetWithOptions", 0, @"JS_NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions:"); - - methodMap_["showShareActionSheetWithOptions"] = MethodMetadata {3, __hostFunction_NativeActionSheetManagerSpecJSI_showShareActionSheetWithOptions}; - setMethodArgConversionSelector(@"showShareActionSheetWithOptions", 0, @"JS_NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions:"); - - methodMap_["dismissActionSheet"] = MethodMetadata {0, __hostFunction_NativeActionSheetManagerSpecJSI_dismissActionSheet}; - - } - } // namespace react -} // namespace facebook -@implementation RCTCxxConvert (NativeAlertManager_Args) -+ (RCTManagedPointer *)JS_NativeAlertManager_Args:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeAlertManagerSpecJSI_alertWithArgs(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "alertWithArgs", @selector(alertWithArgs:callback:), args, count); - } - - NativeAlertManagerSpecJSI::NativeAlertManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["alertWithArgs"] = MethodMetadata {2, __hostFunction_NativeAlertManagerSpecJSI_alertWithArgs}; - setMethodArgConversionSelector(@"alertWithArgs", 0, @"JS_NativeAlertManager_Args:"); - } - } // namespace react -} // namespace facebook -@implementation RCTCxxConvert (NativeAnimatedModule_EventMapping) -+ (RCTManagedPointer *)JS_NativeAnimatedModule_EventMapping:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_startOperationBatch(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startOperationBatch", @selector(startOperationBatch), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_finishOperationBatch(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "finishOperationBatch", @selector(finishOperationBatch), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_createAnimatedNode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "createAnimatedNode", @selector(createAnimatedNode:config:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_updateAnimatedNodeConfig(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "updateAnimatedNodeConfig", @selector(updateAnimatedNodeConfig:config:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_getValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getValue", @selector(getValue:saveValueCallback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_startListeningToAnimatedNodeValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startListeningToAnimatedNodeValue", @selector(startListeningToAnimatedNodeValue:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_stopListeningToAnimatedNodeValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "stopListeningToAnimatedNodeValue", @selector(stopListeningToAnimatedNodeValue:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_connectAnimatedNodes(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "connectAnimatedNodes", @selector(connectAnimatedNodes:childTag:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_disconnectAnimatedNodes(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "disconnectAnimatedNodes", @selector(disconnectAnimatedNodes:childTag:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_startAnimatingNode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startAnimatingNode", @selector(startAnimatingNode:nodeTag:config:endCallback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_stopAnimation(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "stopAnimation", @selector(stopAnimation:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_setAnimatedNodeValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAnimatedNodeValue", @selector(setAnimatedNodeValue:value:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_setAnimatedNodeOffset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAnimatedNodeOffset", @selector(setAnimatedNodeOffset:offset:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_flattenAnimatedNodeOffset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "flattenAnimatedNodeOffset", @selector(flattenAnimatedNodeOffset:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_extractAnimatedNodeOffset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "extractAnimatedNodeOffset", @selector(extractAnimatedNodeOffset:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_connectAnimatedNodeToView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "connectAnimatedNodeToView", @selector(connectAnimatedNodeToView:viewTag:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_disconnectAnimatedNodeFromView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "disconnectAnimatedNodeFromView", @selector(disconnectAnimatedNodeFromView:viewTag:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_restoreDefaultValues(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "restoreDefaultValues", @selector(restoreDefaultValues:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_dropAnimatedNode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dropAnimatedNode", @selector(dropAnimatedNode:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_addAnimatedEventToView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addAnimatedEventToView", @selector(addAnimatedEventToView:eventName:eventMapping:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_removeAnimatedEventFromView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeAnimatedEventFromView", @selector(removeAnimatedEventFromView:eventName:animatedNodeTag:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedModuleSpecJSI_queueAndExecuteBatchedOperations(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "queueAndExecuteBatchedOperations", @selector(queueAndExecuteBatchedOperations:), args, count); - } - - NativeAnimatedModuleSpecJSI::NativeAnimatedModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["startOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedModuleSpecJSI_startOperationBatch}; - - - methodMap_["finishOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedModuleSpecJSI_finishOperationBatch}; - - - methodMap_["createAnimatedNode"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_createAnimatedNode}; - - - methodMap_["updateAnimatedNodeConfig"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_updateAnimatedNodeConfig}; - - - methodMap_["getValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_getValue}; - - - methodMap_["startListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_startListeningToAnimatedNodeValue}; - - - methodMap_["stopListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_stopListeningToAnimatedNodeValue}; - - - methodMap_["connectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_connectAnimatedNodes}; - - - methodMap_["disconnectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_disconnectAnimatedNodes}; - - - methodMap_["startAnimatingNode"] = MethodMetadata {4, __hostFunction_NativeAnimatedModuleSpecJSI_startAnimatingNode}; - - - methodMap_["stopAnimation"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_stopAnimation}; - - - methodMap_["setAnimatedNodeValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_setAnimatedNodeValue}; - - - methodMap_["setAnimatedNodeOffset"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_setAnimatedNodeOffset}; - - - methodMap_["flattenAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_flattenAnimatedNodeOffset}; - - - methodMap_["extractAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_extractAnimatedNodeOffset}; - - - methodMap_["connectAnimatedNodeToView"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_connectAnimatedNodeToView}; - - - methodMap_["disconnectAnimatedNodeFromView"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_disconnectAnimatedNodeFromView}; - - - methodMap_["restoreDefaultValues"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_restoreDefaultValues}; - - - methodMap_["dropAnimatedNode"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_dropAnimatedNode}; - - - methodMap_["addAnimatedEventToView"] = MethodMetadata {3, __hostFunction_NativeAnimatedModuleSpecJSI_addAnimatedEventToView}; - setMethodArgConversionSelector(@"addAnimatedEventToView", 2, @"JS_NativeAnimatedModule_EventMapping:"); - - methodMap_["removeAnimatedEventFromView"] = MethodMetadata {3, __hostFunction_NativeAnimatedModuleSpecJSI_removeAnimatedEventFromView}; - - - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_addListener}; - - - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_removeListeners}; - - - methodMap_["queueAndExecuteBatchedOperations"] = MethodMetadata {1, __hostFunction_NativeAnimatedModuleSpecJSI_queueAndExecuteBatchedOperations}; - - } - } // namespace react -} // namespace facebook -@implementation RCTCxxConvert (NativeAnimatedTurboModule_EventMapping) -+ (RCTManagedPointer *)JS_NativeAnimatedTurboModule_EventMapping:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_startOperationBatch(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startOperationBatch", @selector(startOperationBatch), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_finishOperationBatch(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "finishOperationBatch", @selector(finishOperationBatch), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_createAnimatedNode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "createAnimatedNode", @selector(createAnimatedNode:config:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_updateAnimatedNodeConfig(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "updateAnimatedNodeConfig", @selector(updateAnimatedNodeConfig:config:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_getValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getValue", @selector(getValue:saveValueCallback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_startListeningToAnimatedNodeValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startListeningToAnimatedNodeValue", @selector(startListeningToAnimatedNodeValue:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_stopListeningToAnimatedNodeValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "stopListeningToAnimatedNodeValue", @selector(stopListeningToAnimatedNodeValue:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_connectAnimatedNodes(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "connectAnimatedNodes", @selector(connectAnimatedNodes:childTag:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_disconnectAnimatedNodes(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "disconnectAnimatedNodes", @selector(disconnectAnimatedNodes:childTag:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_startAnimatingNode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startAnimatingNode", @selector(startAnimatingNode:nodeTag:config:endCallback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_stopAnimation(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "stopAnimation", @selector(stopAnimation:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_setAnimatedNodeValue(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAnimatedNodeValue", @selector(setAnimatedNodeValue:value:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_setAnimatedNodeOffset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setAnimatedNodeOffset", @selector(setAnimatedNodeOffset:offset:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_flattenAnimatedNodeOffset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "flattenAnimatedNodeOffset", @selector(flattenAnimatedNodeOffset:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_extractAnimatedNodeOffset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "extractAnimatedNodeOffset", @selector(extractAnimatedNodeOffset:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_connectAnimatedNodeToView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "connectAnimatedNodeToView", @selector(connectAnimatedNodeToView:viewTag:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_disconnectAnimatedNodeFromView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "disconnectAnimatedNodeFromView", @selector(disconnectAnimatedNodeFromView:viewTag:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_restoreDefaultValues(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "restoreDefaultValues", @selector(restoreDefaultValues:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_dropAnimatedNode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dropAnimatedNode", @selector(dropAnimatedNode:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_addAnimatedEventToView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addAnimatedEventToView", @selector(addAnimatedEventToView:eventName:eventMapping:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_removeAnimatedEventFromView(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeAnimatedEventFromView", @selector(removeAnimatedEventFromView:eventName:animatedNodeTag:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimatedTurboModuleSpecJSI_queueAndExecuteBatchedOperations(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "queueAndExecuteBatchedOperations", @selector(queueAndExecuteBatchedOperations:), args, count); - } - - NativeAnimatedTurboModuleSpecJSI::NativeAnimatedTurboModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["startOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedTurboModuleSpecJSI_startOperationBatch}; - - - methodMap_["finishOperationBatch"] = MethodMetadata {0, __hostFunction_NativeAnimatedTurboModuleSpecJSI_finishOperationBatch}; - - - methodMap_["createAnimatedNode"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_createAnimatedNode}; - - - methodMap_["updateAnimatedNodeConfig"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_updateAnimatedNodeConfig}; - - - methodMap_["getValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_getValue}; - - - methodMap_["startListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_startListeningToAnimatedNodeValue}; - - - methodMap_["stopListeningToAnimatedNodeValue"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_stopListeningToAnimatedNodeValue}; - - - methodMap_["connectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_connectAnimatedNodes}; - - - methodMap_["disconnectAnimatedNodes"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_disconnectAnimatedNodes}; - - - methodMap_["startAnimatingNode"] = MethodMetadata {4, __hostFunction_NativeAnimatedTurboModuleSpecJSI_startAnimatingNode}; - - - methodMap_["stopAnimation"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_stopAnimation}; - - - methodMap_["setAnimatedNodeValue"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_setAnimatedNodeValue}; - - - methodMap_["setAnimatedNodeOffset"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_setAnimatedNodeOffset}; - - - methodMap_["flattenAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_flattenAnimatedNodeOffset}; - - - methodMap_["extractAnimatedNodeOffset"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_extractAnimatedNodeOffset}; - - - methodMap_["connectAnimatedNodeToView"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_connectAnimatedNodeToView}; - - - methodMap_["disconnectAnimatedNodeFromView"] = MethodMetadata {2, __hostFunction_NativeAnimatedTurboModuleSpecJSI_disconnectAnimatedNodeFromView}; - - - methodMap_["restoreDefaultValues"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_restoreDefaultValues}; - - - methodMap_["dropAnimatedNode"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_dropAnimatedNode}; - - - methodMap_["addAnimatedEventToView"] = MethodMetadata {3, __hostFunction_NativeAnimatedTurboModuleSpecJSI_addAnimatedEventToView}; - setMethodArgConversionSelector(@"addAnimatedEventToView", 2, @"JS_NativeAnimatedTurboModule_EventMapping:"); - - methodMap_["removeAnimatedEventFromView"] = MethodMetadata {3, __hostFunction_NativeAnimatedTurboModuleSpecJSI_removeAnimatedEventFromView}; - - - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_addListener}; - - - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_removeListeners}; - - - methodMap_["queueAndExecuteBatchedOperations"] = MethodMetadata {1, __hostFunction_NativeAnimatedTurboModuleSpecJSI_queueAndExecuteBatchedOperations}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeAnimationsDebugModuleSpecJSI_startRecordingFps(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startRecordingFps", @selector(startRecordingFps), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAnimationsDebugModuleSpecJSI_stopRecordingFps(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "stopRecordingFps", @selector(stopRecordingFps:), args, count); - } - - NativeAnimationsDebugModuleSpecJSI::NativeAnimationsDebugModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["startRecordingFps"] = MethodMetadata {0, __hostFunction_NativeAnimationsDebugModuleSpecJSI_startRecordingFps}; - - - methodMap_["stopRecordingFps"] = MethodMetadata {1, __hostFunction_NativeAnimationsDebugModuleSpecJSI_stopRecordingFps}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeAppStateSpecJSI_getCurrentAppState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getCurrentAppState", @selector(getCurrentAppState:error:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAppStateSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAppStateSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAppStateSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); - } - - NativeAppStateSpecJSI::NativeAppStateSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["getCurrentAppState"] = MethodMetadata {2, __hostFunction_NativeAppStateSpecJSI_getCurrentAppState}; - - - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAppStateSpecJSI_addListener}; - - - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAppStateSpecJSI_removeListeners}; - - - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeAppStateSpecJSI_getConstants}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeAppearanceSpecJSI_getColorScheme(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, StringKind, "getColorScheme", @selector(getColorScheme), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAppearanceSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeAppearanceSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); - } - - NativeAppearanceSpecJSI::NativeAppearanceSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["getColorScheme"] = MethodMetadata {0, __hostFunction_NativeAppearanceSpecJSI_getColorScheme}; - - - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeAppearanceSpecJSI_addListener}; - - - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeAppearanceSpecJSI_removeListeners}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_addNetworkingHandler(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addNetworkingHandler", @selector(addNetworkingHandler), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_addWebSocketHandler(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addWebSocketHandler", @selector(addWebSocketHandler:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_removeWebSocketHandler(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeWebSocketHandler", @selector(removeWebSocketHandler:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_sendOverSocket(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "sendOverSocket", @selector(sendOverSocket:socketID:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_createFromParts(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "createFromParts", @selector(createFromParts:withId:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_release(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "release", @selector(release:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeBlobModuleSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); - } - - NativeBlobModuleSpecJSI::NativeBlobModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["addNetworkingHandler"] = MethodMetadata {0, __hostFunction_NativeBlobModuleSpecJSI_addNetworkingHandler}; - - - methodMap_["addWebSocketHandler"] = MethodMetadata {1, __hostFunction_NativeBlobModuleSpecJSI_addWebSocketHandler}; - - - methodMap_["removeWebSocketHandler"] = MethodMetadata {1, __hostFunction_NativeBlobModuleSpecJSI_removeWebSocketHandler}; - - - methodMap_["sendOverSocket"] = MethodMetadata {2, __hostFunction_NativeBlobModuleSpecJSI_sendOverSocket}; - - - methodMap_["createFromParts"] = MethodMetadata {2, __hostFunction_NativeBlobModuleSpecJSI_createFromParts}; - - - methodMap_["release"] = MethodMetadata {1, __hostFunction_NativeBlobModuleSpecJSI_release}; - - - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeBlobModuleSpecJSI_getConstants}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeBugReportingSpecJSI_startReportAProblemFlow(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "startReportAProblemFlow", @selector(startReportAProblemFlow), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeBugReportingSpecJSI_setExtraData(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setExtraData", @selector(setExtraData:extraFiles:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeBugReportingSpecJSI_setCategoryID(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setCategoryID", @selector(setCategoryID:), args, count); - } - - NativeBugReportingSpecJSI::NativeBugReportingSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["startReportAProblemFlow"] = MethodMetadata {0, __hostFunction_NativeBugReportingSpecJSI_startReportAProblemFlow}; - - - methodMap_["setExtraData"] = MethodMetadata {2, __hostFunction_NativeBugReportingSpecJSI_setExtraData}; - - - methodMap_["setCategoryID"] = MethodMetadata {1, __hostFunction_NativeBugReportingSpecJSI_setCategoryID}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeClipboardSpecJSI_getString(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getString", @selector(getString:reject:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeClipboardSpecJSI_setString(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setString", @selector(setString:), args, count); - } - - NativeClipboardSpecJSI::NativeClipboardSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["getString"] = MethodMetadata {0, __hostFunction_NativeClipboardSpecJSI_getString}; - - - methodMap_["setString"] = MethodMetadata {1, __hostFunction_NativeClipboardSpecJSI_setString}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeDevLoadingViewSpecJSI_showMessage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "showMessage", @selector(showMessage:withColor:withBackgroundColor:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevLoadingViewSpecJSI_hide(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "hide", @selector(hide), args, count); - } - - NativeDevLoadingViewSpecJSI::NativeDevLoadingViewSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["showMessage"] = MethodMetadata {3, __hostFunction_NativeDevLoadingViewSpecJSI_showMessage}; - - - methodMap_["hide"] = MethodMetadata {0, __hostFunction_NativeDevLoadingViewSpecJSI_hide}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeDevMenuSpecJSI_show(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "show", @selector(show), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevMenuSpecJSI_reload(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reload", @selector(reload), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevMenuSpecJSI_debugRemotely(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "debugRemotely", @selector(debugRemotely:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevMenuSpecJSI_setProfilingEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setProfilingEnabled", @selector(setProfilingEnabled:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevMenuSpecJSI_setHotLoadingEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setHotLoadingEnabled", @selector(setHotLoadingEnabled:), args, count); - } - - NativeDevMenuSpecJSI::NativeDevMenuSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["show"] = MethodMetadata {0, __hostFunction_NativeDevMenuSpecJSI_show}; - - - methodMap_["reload"] = MethodMetadata {0, __hostFunction_NativeDevMenuSpecJSI_reload}; - - - methodMap_["debugRemotely"] = MethodMetadata {1, __hostFunction_NativeDevMenuSpecJSI_debugRemotely}; - - - methodMap_["setProfilingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevMenuSpecJSI_setProfilingEnabled}; - - - methodMap_["setHotLoadingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevMenuSpecJSI_setHotLoadingEnabled}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_reload(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reload", @selector(reload), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_reloadWithReason(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reloadWithReason", @selector(reloadWithReason:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_onFastRefresh(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "onFastRefresh", @selector(onFastRefresh), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_setHotLoadingEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setHotLoadingEnabled", @selector(setHotLoadingEnabled:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_setIsDebuggingRemotely(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setIsDebuggingRemotely", @selector(setIsDebuggingRemotely:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_setProfilingEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setProfilingEnabled", @selector(setProfilingEnabled:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_toggleElementInspector(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "toggleElementInspector", @selector(toggleElementInspector), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_addMenuItem(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addMenuItem", @selector(addMenuItem:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeDevSettingsSpecJSI_setIsShakeToShowDevMenuEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setIsShakeToShowDevMenuEnabled", @selector(setIsShakeToShowDevMenuEnabled:), args, count); - } - - NativeDevSettingsSpecJSI::NativeDevSettingsSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["reload"] = MethodMetadata {0, __hostFunction_NativeDevSettingsSpecJSI_reload}; - - - methodMap_["reloadWithReason"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_reloadWithReason}; - - - methodMap_["onFastRefresh"] = MethodMetadata {0, __hostFunction_NativeDevSettingsSpecJSI_onFastRefresh}; - - - methodMap_["setHotLoadingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_setHotLoadingEnabled}; - - - methodMap_["setIsDebuggingRemotely"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_setIsDebuggingRemotely}; - - - methodMap_["setProfilingEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_setProfilingEnabled}; - - - methodMap_["toggleElementInspector"] = MethodMetadata {0, __hostFunction_NativeDevSettingsSpecJSI_toggleElementInspector}; - - - methodMap_["addMenuItem"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_addMenuItem}; - - - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_addListener}; - - - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_removeListeners}; - - - methodMap_["setIsShakeToShowDevMenuEnabled"] = MethodMetadata {1, __hostFunction_NativeDevSettingsSpecJSI_setIsShakeToShowDevMenuEnabled}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeDevSplitBundleLoaderSpecJSI_loadBundle(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "loadBundle", @selector(loadBundle:resolve:reject:), args, count); - } - - NativeDevSplitBundleLoaderSpecJSI::NativeDevSplitBundleLoaderSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["loadBundle"] = MethodMetadata {1, __hostFunction_NativeDevSplitBundleLoaderSpecJSI_loadBundle}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeDeviceEventManagerSpecJSI_invokeDefaultBackPressHandler(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "invokeDefaultBackPressHandler", @selector(invokeDefaultBackPressHandler), args, count); - } - - NativeDeviceEventManagerSpecJSI::NativeDeviceEventManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["invokeDefaultBackPressHandler"] = MethodMetadata {0, __hostFunction_NativeDeviceEventManagerSpecJSI_invokeDefaultBackPressHandler}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeDeviceInfoSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); - } - - NativeDeviceInfoSpecJSI::NativeDeviceInfoSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDeviceInfoSpecJSI_getConstants}; - - } - } // namespace react -} // namespace facebook -@implementation RCTCxxConvert (NativeExceptionsManager_StackFrame) -+ (RCTManagedPointer *)JS_NativeExceptionsManager_StackFrame:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativeExceptionsManager_ExceptionData) -+ (RCTManagedPointer *)JS_NativeExceptionsManager_ExceptionData:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeExceptionsManagerSpecJSI_reportFatalException(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reportFatalException", @selector(reportFatalException:stack:exceptionId:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeExceptionsManagerSpecJSI_reportSoftException(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reportSoftException", @selector(reportSoftException:stack:exceptionId:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeExceptionsManagerSpecJSI_reportException(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "reportException", @selector(reportException:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeExceptionsManagerSpecJSI_updateExceptionMessage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "updateExceptionMessage", @selector(updateExceptionMessage:stack:exceptionId:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeExceptionsManagerSpecJSI_dismissRedbox(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dismissRedbox", @selector(dismissRedbox), args, count); - } - - NativeExceptionsManagerSpecJSI::NativeExceptionsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["reportFatalException"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerSpecJSI_reportFatalException}; - - - methodMap_["reportSoftException"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerSpecJSI_reportSoftException}; - - - methodMap_["reportException"] = MethodMetadata {1, __hostFunction_NativeExceptionsManagerSpecJSI_reportException}; - setMethodArgConversionSelector(@"reportException", 0, @"JS_NativeExceptionsManager_ExceptionData:"); - - methodMap_["updateExceptionMessage"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerSpecJSI_updateExceptionMessage}; - - - methodMap_["dismissRedbox"] = MethodMetadata {0, __hostFunction_NativeExceptionsManagerSpecJSI_dismissRedbox}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeFileReaderModuleSpecJSI_readAsDataURL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "readAsDataURL", @selector(readAsDataURL:resolve:reject:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeFileReaderModuleSpecJSI_readAsText(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "readAsText", @selector(readAsText:encoding:resolve:reject:), args, count); - } - - NativeFileReaderModuleSpecJSI::NativeFileReaderModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["readAsDataURL"] = MethodMetadata {1, __hostFunction_NativeFileReaderModuleSpecJSI_readAsDataURL}; - - - methodMap_["readAsText"] = MethodMetadata {2, __hostFunction_NativeFileReaderModuleSpecJSI_readAsText}; - - } - } // namespace react -} // namespace facebook -@implementation RCTCxxConvert (NativeFrameRateLogger_SpecSetGlobalOptionsOptions) -+ (RCTManagedPointer *)JS_NativeFrameRateLogger_SpecSetGlobalOptionsOptions:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeFrameRateLoggerSpecJSI_setGlobalOptions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setGlobalOptions", @selector(setGlobalOptions:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeFrameRateLoggerSpecJSI_setContext(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setContext", @selector(setContext:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeFrameRateLoggerSpecJSI_beginScroll(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "beginScroll", @selector(beginScroll), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeFrameRateLoggerSpecJSI_endScroll(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "endScroll", @selector(endScroll), args, count); - } - - NativeFrameRateLoggerSpecJSI::NativeFrameRateLoggerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["setGlobalOptions"] = MethodMetadata {1, __hostFunction_NativeFrameRateLoggerSpecJSI_setGlobalOptions}; - setMethodArgConversionSelector(@"setGlobalOptions", 0, @"JS_NativeFrameRateLogger_SpecSetGlobalOptionsOptions:"); - - methodMap_["setContext"] = MethodMetadata {1, __hostFunction_NativeFrameRateLoggerSpecJSI_setContext}; - - - methodMap_["beginScroll"] = MethodMetadata {0, __hostFunction_NativeFrameRateLoggerSpecJSI_beginScroll}; - - - methodMap_["endScroll"] = MethodMetadata {0, __hostFunction_NativeFrameRateLoggerSpecJSI_endScroll}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeHeadlessJsTaskSupportSpecJSI_notifyTaskFinished(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "notifyTaskFinished", @selector(notifyTaskFinished:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeHeadlessJsTaskSupportSpecJSI_notifyTaskRetry(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "notifyTaskRetry", @selector(notifyTaskRetry:resolve:reject:), args, count); - } - - NativeHeadlessJsTaskSupportSpecJSI::NativeHeadlessJsTaskSupportSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["notifyTaskFinished"] = MethodMetadata {1, __hostFunction_NativeHeadlessJsTaskSupportSpecJSI_notifyTaskFinished}; - - - methodMap_["notifyTaskRetry"] = MethodMetadata {1, __hostFunction_NativeHeadlessJsTaskSupportSpecJSI_notifyTaskRetry}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeI18nManagerSpecJSI_allowRTL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "allowRTL", @selector(allowRTL:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeI18nManagerSpecJSI_forceRTL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "forceRTL", @selector(forceRTL:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeI18nManagerSpecJSI_swapLeftAndRightInRTL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "swapLeftAndRightInRTL", @selector(swapLeftAndRightInRTL:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeI18nManagerSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); - } - - NativeI18nManagerSpecJSI::NativeI18nManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["allowRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerSpecJSI_allowRTL}; - - - methodMap_["forceRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerSpecJSI_forceRTL}; - - - methodMap_["swapLeftAndRightInRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerSpecJSI_swapLeftAndRightInRTL}; - - - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeI18nManagerSpecJSI_getConstants}; - - } - } // namespace react -} // namespace facebook -@implementation RCTCxxConvert (NativeImageEditor_OptionsOffset) -+ (RCTManagedPointer *)JS_NativeImageEditor_OptionsOffset:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativeImageEditor_OptionsSize) -+ (RCTManagedPointer *)JS_NativeImageEditor_OptionsSize:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativeImageEditor_OptionsDisplaySize) -+ (RCTManagedPointer *)JS_NativeImageEditor_OptionsDisplaySize:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativeImageEditor_Options) -+ (RCTManagedPointer *)JS_NativeImageEditor_Options:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeImageEditorSpecJSI_cropImage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "cropImage", @selector(cropImage:cropData:successCallback:errorCallback:), args, count); - } - - NativeImageEditorSpecJSI::NativeImageEditorSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["cropImage"] = MethodMetadata {4, __hostFunction_NativeImageEditorSpecJSI_cropImage}; - setMethodArgConversionSelector(@"cropImage", 1, @"JS_NativeImageEditor_Options:"); - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeImageLoaderIOSSpecJSI_getSize(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getSize", @selector(getSize:resolve:reject:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeImageLoaderIOSSpecJSI_getSizeWithHeaders(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getSizeWithHeaders", @selector(getSizeWithHeaders:headers:resolve:reject:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeImageLoaderIOSSpecJSI_prefetchImage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "prefetchImage", @selector(prefetchImage:resolve:reject:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeImageLoaderIOSSpecJSI_prefetchImageWithMetadata(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "prefetchImageWithMetadata", @selector(prefetchImageWithMetadata:queryRootName:rootTag:resolve:reject:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeImageLoaderIOSSpecJSI_queryCache(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "queryCache", @selector(queryCache:resolve:reject:), args, count); - } - - NativeImageLoaderIOSSpecJSI::NativeImageLoaderIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["getSize"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSSpecJSI_getSize}; - - - methodMap_["getSizeWithHeaders"] = MethodMetadata {2, __hostFunction_NativeImageLoaderIOSSpecJSI_getSizeWithHeaders}; - - - methodMap_["prefetchImage"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSSpecJSI_prefetchImage}; - - - methodMap_["prefetchImageWithMetadata"] = MethodMetadata {3, __hostFunction_NativeImageLoaderIOSSpecJSI_prefetchImageWithMetadata}; - - - methodMap_["queryCache"] = MethodMetadata {1, __hostFunction_NativeImageLoaderIOSSpecJSI_queryCache}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeImageStoreIOSSpecJSI_getBase64ForTag(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getBase64ForTag", @selector(getBase64ForTag:successCallback:errorCallback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeImageStoreIOSSpecJSI_hasImageForTag(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "hasImageForTag", @selector(hasImageForTag:callback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeImageStoreIOSSpecJSI_removeImageForTag(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeImageForTag", @selector(removeImageForTag:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeImageStoreIOSSpecJSI_addImageFromBase64(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addImageFromBase64", @selector(addImageFromBase64:successCallback:errorCallback:), args, count); - } - - NativeImageStoreIOSSpecJSI::NativeImageStoreIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["getBase64ForTag"] = MethodMetadata {3, __hostFunction_NativeImageStoreIOSSpecJSI_getBase64ForTag}; - - - methodMap_["hasImageForTag"] = MethodMetadata {2, __hostFunction_NativeImageStoreIOSSpecJSI_hasImageForTag}; - - - methodMap_["removeImageForTag"] = MethodMetadata {1, __hostFunction_NativeImageStoreIOSSpecJSI_removeImageForTag}; - - - methodMap_["addImageFromBase64"] = MethodMetadata {3, __hostFunction_NativeImageStoreIOSSpecJSI_addImageFromBase64}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeJSCHeapCaptureSpecJSI_captureComplete(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "captureComplete", @selector(captureComplete:error:), args, count); - } - - NativeJSCHeapCaptureSpecJSI::NativeJSCHeapCaptureSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["captureComplete"] = MethodMetadata {2, __hostFunction_NativeJSCHeapCaptureSpecJSI_captureComplete}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeJSCSamplingProfilerSpecJSI_operationComplete(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "operationComplete", @selector(operationComplete:result:error:), args, count); - } - - NativeJSCSamplingProfilerSpecJSI::NativeJSCSamplingProfilerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["operationComplete"] = MethodMetadata {3, __hostFunction_NativeJSCSamplingProfilerSpecJSI_operationComplete}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeKeyboardObserverSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeKeyboardObserverSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); - } - - NativeKeyboardObserverSpecJSI::NativeKeyboardObserverSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeKeyboardObserverSpecJSI_addListener}; - - - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeKeyboardObserverSpecJSI_removeListeners}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeLinkingManagerSpecJSI_getInitialURL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getInitialURL", @selector(getInitialURL:reject:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeLinkingManagerSpecJSI_canOpenURL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "canOpenURL", @selector(canOpenURL:resolve:reject:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeLinkingManagerSpecJSI_openURL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "openURL", @selector(openURL:resolve:reject:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeLinkingManagerSpecJSI_openSettings(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "openSettings", @selector(openSettings:reject:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeLinkingManagerSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeLinkingManagerSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); - } - - NativeLinkingManagerSpecJSI::NativeLinkingManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["getInitialURL"] = MethodMetadata {0, __hostFunction_NativeLinkingManagerSpecJSI_getInitialURL}; - - - methodMap_["canOpenURL"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerSpecJSI_canOpenURL}; - - - methodMap_["openURL"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerSpecJSI_openURL}; - - - methodMap_["openSettings"] = MethodMetadata {0, __hostFunction_NativeLinkingManagerSpecJSI_openSettings}; - - - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerSpecJSI_addListener}; - - - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeLinkingManagerSpecJSI_removeListeners}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeLogBoxSpecJSI_show(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "show", @selector(show), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeLogBoxSpecJSI_hide(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "hide", @selector(hide), args, count); - } - - NativeLogBoxSpecJSI::NativeLogBoxSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["show"] = MethodMetadata {0, __hostFunction_NativeLogBoxSpecJSI_show}; - - - methodMap_["hide"] = MethodMetadata {0, __hostFunction_NativeLogBoxSpecJSI_hide}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeModalManagerSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeModalManagerSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); - } - - NativeModalManagerSpecJSI::NativeModalManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeModalManagerSpecJSI_addListener}; - - - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeModalManagerSpecJSI_removeListeners}; - - } - } // namespace react -} // namespace facebook -@implementation RCTCxxConvert (NativeNetworkingIOS_SpecSendRequestQuery) -+ (RCTManagedPointer *)JS_NativeNetworkingIOS_SpecSendRequestQuery:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeNetworkingIOSSpecJSI_sendRequest(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "sendRequest", @selector(sendRequest:callback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeNetworkingIOSSpecJSI_abortRequest(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "abortRequest", @selector(abortRequest:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeNetworkingIOSSpecJSI_clearCookies(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "clearCookies", @selector(clearCookies:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeNetworkingIOSSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeNetworkingIOSSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); - } - - NativeNetworkingIOSSpecJSI::NativeNetworkingIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["sendRequest"] = MethodMetadata {2, __hostFunction_NativeNetworkingIOSSpecJSI_sendRequest}; - setMethodArgConversionSelector(@"sendRequest", 0, @"JS_NativeNetworkingIOS_SpecSendRequestQuery:"); - - methodMap_["abortRequest"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSSpecJSI_abortRequest}; - - - methodMap_["clearCookies"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSSpecJSI_clearCookies}; - - - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSSpecJSI_addListener}; - - - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeNetworkingIOSSpecJSI_removeListeners}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativePlatformConstantsIOSSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); - } - - NativePlatformConstantsIOSSpecJSI::NativePlatformConstantsIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsIOSSpecJSI_getConstants}; - - } - } // namespace react -} // namespace facebook -@implementation RCTCxxConvert (NativePushNotificationManagerIOS_SpecRequestPermissionsPermission) -+ (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_SpecRequestPermissionsPermission:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -@implementation RCTCxxConvert (NativePushNotificationManagerIOS_Notification) -+ (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_Notification:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_onFinishRemoteNotification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "onFinishRemoteNotification", @selector(onFinishRemoteNotification:fetchResult:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_setApplicationIconBadgeNumber(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setApplicationIconBadgeNumber", @selector(setApplicationIconBadgeNumber:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_getApplicationIconBadgeNumber(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getApplicationIconBadgeNumber", @selector(getApplicationIconBadgeNumber:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_requestPermissions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "requestPermissions", @selector(requestPermissions:resolve:reject:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_abandonPermissions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "abandonPermissions", @selector(abandonPermissions), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_checkPermissions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "checkPermissions", @selector(checkPermissions:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_presentLocalNotification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "presentLocalNotification", @selector(presentLocalNotification:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_scheduleLocalNotification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "scheduleLocalNotification", @selector(scheduleLocalNotification:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_cancelAllLocalNotifications(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "cancelAllLocalNotifications", @selector(cancelAllLocalNotifications), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_cancelLocalNotifications(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "cancelLocalNotifications", @selector(cancelLocalNotifications:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_getInitialNotification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "getInitialNotification", @selector(getInitialNotification:reject:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_getScheduledLocalNotifications(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getScheduledLocalNotifications", @selector(getScheduledLocalNotifications:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeAllDeliveredNotifications(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeAllDeliveredNotifications", @selector(removeAllDeliveredNotifications), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeDeliveredNotifications(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeDeliveredNotifications", @selector(removeDeliveredNotifications:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_getDeliveredNotifications(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getDeliveredNotifications", @selector(getDeliveredNotifications:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_getAuthorizationStatus(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getAuthorizationStatus", @selector(getAuthorizationStatus:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); - } - - NativePushNotificationManagerIOSSpecJSI::NativePushNotificationManagerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["onFinishRemoteNotification"] = MethodMetadata {2, __hostFunction_NativePushNotificationManagerIOSSpecJSI_onFinishRemoteNotification}; - - - methodMap_["setApplicationIconBadgeNumber"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_setApplicationIconBadgeNumber}; - - - methodMap_["getApplicationIconBadgeNumber"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_getApplicationIconBadgeNumber}; - - - methodMap_["requestPermissions"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_requestPermissions}; - setMethodArgConversionSelector(@"requestPermissions", 0, @"JS_NativePushNotificationManagerIOS_SpecRequestPermissionsPermission:"); - - methodMap_["abandonPermissions"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSSpecJSI_abandonPermissions}; - - - methodMap_["checkPermissions"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_checkPermissions}; - - - methodMap_["presentLocalNotification"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_presentLocalNotification}; - setMethodArgConversionSelector(@"presentLocalNotification", 0, @"JS_NativePushNotificationManagerIOS_Notification:"); - - methodMap_["scheduleLocalNotification"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_scheduleLocalNotification}; - setMethodArgConversionSelector(@"scheduleLocalNotification", 0, @"JS_NativePushNotificationManagerIOS_Notification:"); - - methodMap_["cancelAllLocalNotifications"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSSpecJSI_cancelAllLocalNotifications}; - - - methodMap_["cancelLocalNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_cancelLocalNotifications}; - - - methodMap_["getInitialNotification"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSSpecJSI_getInitialNotification}; - - - methodMap_["getScheduledLocalNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_getScheduledLocalNotifications}; - - - methodMap_["removeAllDeliveredNotifications"] = MethodMetadata {0, __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeAllDeliveredNotifications}; - - - methodMap_["removeDeliveredNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeDeliveredNotifications}; - - - methodMap_["getDeliveredNotifications"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_getDeliveredNotifications}; - - - methodMap_["getAuthorizationStatus"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_getAuthorizationStatus}; - - - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_addListener}; - - - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativePushNotificationManagerIOSSpecJSI_removeListeners}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeRedBoxSpecJSI_setExtraData(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setExtraData", @selector(setExtraData:forIdentifier:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeRedBoxSpecJSI_dismiss(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "dismiss", @selector(dismiss), args, count); - } - - NativeRedBoxSpecJSI::NativeRedBoxSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["setExtraData"] = MethodMetadata {2, __hostFunction_NativeRedBoxSpecJSI_setExtraData}; - - - methodMap_["dismiss"] = MethodMetadata {0, __hostFunction_NativeRedBoxSpecJSI_dismiss}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeSegmentFetcherSpecJSI_fetchSegment(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "fetchSegment", @selector(fetchSegment:options:callback:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeSegmentFetcherSpecJSI_getSegment(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getSegment", @selector(getSegment:options:callback:), args, count); - } - - NativeSegmentFetcherSpecJSI::NativeSegmentFetcherSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["fetchSegment"] = MethodMetadata {3, __hostFunction_NativeSegmentFetcherSpecJSI_fetchSegment}; - - - methodMap_["getSegment"] = MethodMetadata {3, __hostFunction_NativeSegmentFetcherSpecJSI_getSegment}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeSettingsManagerSpecJSI_setValues(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setValues", @selector(setValues:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeSettingsManagerSpecJSI_deleteValues(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "deleteValues", @selector(deleteValues:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeSettingsManagerSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); - } - - NativeSettingsManagerSpecJSI::NativeSettingsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["setValues"] = MethodMetadata {1, __hostFunction_NativeSettingsManagerSpecJSI_setValues}; - - - methodMap_["deleteValues"] = MethodMetadata {1, __hostFunction_NativeSettingsManagerSpecJSI_deleteValues}; - - - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSettingsManagerSpecJSI_getConstants}; - - } - } // namespace react -} // namespace facebook -@implementation RCTCxxConvert (NativeShareModule_SpecShareContent) -+ (RCTManagedPointer *)JS_NativeShareModule_SpecShareContent:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeShareModuleSpecJSI_share(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, PromiseKind, "share", @selector(share:dialogTitle:resolve:reject:), args, count); - } - - NativeShareModuleSpecJSI::NativeShareModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["share"] = MethodMetadata {2, __hostFunction_NativeShareModuleSpecJSI_share}; - setMethodArgConversionSelector(@"share", 0, @"JS_NativeShareModule_SpecShareContent:"); - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeSoundManagerSpecJSI_playTouchSound(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "playTouchSound", @selector(playTouchSound), args, count); - } - - NativeSoundManagerSpecJSI::NativeSoundManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["playTouchSound"] = MethodMetadata {0, __hostFunction_NativeSoundManagerSpecJSI_playTouchSound}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeSourceCodeSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); - } - - NativeSourceCodeSpecJSI::NativeSourceCodeSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSourceCodeSpecJSI_getConstants}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_getHeight(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "getHeight", @selector(getHeight:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_setNetworkActivityIndicatorVisible(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setNetworkActivityIndicatorVisible", @selector(setNetworkActivityIndicatorVisible:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_setStyle(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setStyle", @selector(setStyle:animated:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_setHidden(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setHidden", @selector(setHidden:withAnimation:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeStatusBarManagerIOSSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count); - } - - NativeStatusBarManagerIOSSpecJSI::NativeStatusBarManagerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["getHeight"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSSpecJSI_getHeight}; - - - methodMap_["setNetworkActivityIndicatorVisible"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSSpecJSI_setNetworkActivityIndicatorVisible}; - - - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSSpecJSI_addListener}; - - - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeStatusBarManagerIOSSpecJSI_removeListeners}; - - - methodMap_["setStyle"] = MethodMetadata {2, __hostFunction_NativeStatusBarManagerIOSSpecJSI_setStyle}; - - - methodMap_["setHidden"] = MethodMetadata {2, __hostFunction_NativeStatusBarManagerIOSSpecJSI_setHidden}; - - - methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeStatusBarManagerIOSSpecJSI_getConstants}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeTimingSpecJSI_createTimer(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "createTimer", @selector(createTimer:duration:jsSchedulingTime:repeats:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeTimingSpecJSI_deleteTimer(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "deleteTimer", @selector(deleteTimer:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeTimingSpecJSI_setSendIdleEvents(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "setSendIdleEvents", @selector(setSendIdleEvents:), args, count); - } - - NativeTimingSpecJSI::NativeTimingSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["createTimer"] = MethodMetadata {4, __hostFunction_NativeTimingSpecJSI_createTimer}; - - - methodMap_["deleteTimer"] = MethodMetadata {1, __hostFunction_NativeTimingSpecJSI_deleteTimer}; - - - methodMap_["setSendIdleEvents"] = MethodMetadata {1, __hostFunction_NativeTimingSpecJSI_setSendIdleEvents}; - - } - } // namespace react -} // namespace facebook - -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeVibrationSpecJSI_vibrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "vibrate", @selector(vibrate:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeVibrationSpecJSI_vibrateByPattern(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "vibrateByPattern", @selector(vibrateByPattern:repeat:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeVibrationSpecJSI_cancel(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "cancel", @selector(cancel), args, count); - } - - NativeVibrationSpecJSI::NativeVibrationSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["vibrate"] = MethodMetadata {1, __hostFunction_NativeVibrationSpecJSI_vibrate}; - - - methodMap_["vibrateByPattern"] = MethodMetadata {2, __hostFunction_NativeVibrationSpecJSI_vibrateByPattern}; - - - methodMap_["cancel"] = MethodMetadata {0, __hostFunction_NativeVibrationSpecJSI_cancel}; - - } - } // namespace react -} // namespace facebook -@implementation RCTCxxConvert (NativeWebSocketModule_SpecConnectOptions) -+ (RCTManagedPointer *)JS_NativeWebSocketModule_SpecConnectOptions:(id)json -{ - return facebook::react::managedPointer(json); -} -@end -namespace facebook { - namespace react { - - static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_connect(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "connect", @selector(connect:protocols:options:socketID:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_send(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "send", @selector(send:forSocketID:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_sendBinary(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "sendBinary", @selector(sendBinary:forSocketID:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_ping(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "ping", @selector(ping:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_close(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "close", @selector(close:reason:socketID:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count); - } - - static facebook::jsi::Value __hostFunction_NativeWebSocketModuleSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) { - return static_cast(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count); - } - - NativeWebSocketModuleSpecJSI::NativeWebSocketModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms) - : ObjCTurboModule(params) { - - methodMap_["connect"] = MethodMetadata {4, __hostFunction_NativeWebSocketModuleSpecJSI_connect}; - setMethodArgConversionSelector(@"connect", 2, @"JS_NativeWebSocketModule_SpecConnectOptions:"); - - methodMap_["send"] = MethodMetadata {2, __hostFunction_NativeWebSocketModuleSpecJSI_send}; - - - methodMap_["sendBinary"] = MethodMetadata {2, __hostFunction_NativeWebSocketModuleSpecJSI_sendBinary}; - - - methodMap_["ping"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleSpecJSI_ping}; - - - methodMap_["close"] = MethodMetadata {3, __hostFunction_NativeWebSocketModuleSpecJSI_close}; - - - methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleSpecJSI_addListener}; - - - methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeWebSocketModuleSpecJSI_removeListeners}; - - } - } // namespace react -} // namespace facebook diff --git a/third-party-podspecs/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h b/third-party-podspecs/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h deleted file mode 100644 index aaac8c3b3d..0000000000 --- a/third-party-podspecs/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +++ /dev/null @@ -1,2426 +0,0 @@ -/** - * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). - * - * Do not edit this file as changes may cause incorrect behavior and will be lost - * once the code is regenerated. - * - * @generated by codegen project: GenerateModuleObjCpp - * - * We create an umbrella header (and corresponding implementation) here since - * Cxx compilation in BUCK has a limitation: source-code producing genrule()s - * must have a single output. More files => more genrule()s => slower builds. - */ - -#ifndef __cplusplus -#error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm. -#endif -#import -#import -#import -#import -#import -#import -#import -#import -#import -#import - - -@protocol NativeAccessibilityInfoSpec - -- (void)isReduceMotionEnabled:(RCTResponseSenderBlock)onSuccess; -- (void)isTouchExplorationEnabled:(RCTResponseSenderBlock)onSuccess; -- (void)isAccessibilityServiceEnabled:(RCTResponseSenderBlock)onSuccess; -- (void)setAccessibilityFocus:(double)reactTag; -- (void)announceForAccessibility:(NSString *)announcement; -- (void)getRecommendedTimeoutMillis:(double)mSec - onSuccess:(RCTResponseSenderBlock)onSuccess; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeAccessibilityInfo' - */ - class JSI_EXPORT NativeAccessibilityInfoSpecJSI : public ObjCTurboModule { - public: - NativeAccessibilityInfoSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeAccessibilityManager { - struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers { - std::optional extraSmall() const; - std::optional small() const; - std::optional medium() const; - std::optional large() const; - std::optional extraLarge() const; - std::optional extraExtraLarge() const; - std::optional extraExtraExtraLarge() const; - std::optional accessibilityMedium() const; - std::optional accessibilityLarge() const; - std::optional accessibilityExtraLarge() const; - std::optional accessibilityExtraExtraLarge() const; - std::optional accessibilityExtraExtraExtraLarge() const; - - SpecSetAccessibilityContentSizeMultipliersJSMultipliers(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers) -+ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json; -@end -namespace JS { - namespace NativeAccessibilityManager { - struct SpecAnnounceForAccessibilityWithOptionsOptions { - std::optional queue() const; - - SpecAnnounceForAccessibilityWithOptionsOptions(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions) -+ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions:(id)json; -@end -@protocol NativeAccessibilityManagerSpec - -- (void)getCurrentBoldTextState:(RCTResponseSenderBlock)onSuccess - onError:(RCTResponseSenderBlock)onError; -- (void)getCurrentGrayscaleState:(RCTResponseSenderBlock)onSuccess - onError:(RCTResponseSenderBlock)onError; -- (void)getCurrentInvertColorsState:(RCTResponseSenderBlock)onSuccess - onError:(RCTResponseSenderBlock)onError; -- (void)getCurrentReduceMotionState:(RCTResponseSenderBlock)onSuccess - onError:(RCTResponseSenderBlock)onError; -- (void)getCurrentPrefersCrossFadeTransitionsState:(RCTResponseSenderBlock)onSuccess - onError:(RCTResponseSenderBlock)onError; -- (void)getCurrentReduceTransparencyState:(RCTResponseSenderBlock)onSuccess - onError:(RCTResponseSenderBlock)onError; -- (void)getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess - onError:(RCTResponseSenderBlock)onError; -- (void)setAccessibilityContentSizeMultipliers:(JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers &)JSMultipliers; -- (void)setAccessibilityFocus:(double)reactTag; -- (void)announceForAccessibility:(NSString *)announcement; -- (void)announceForAccessibilityWithOptions:(NSString *)announcement - options:(JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions &)options; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeAccessibilityManager' - */ - class JSI_EXPORT NativeAccessibilityManagerSpecJSI : public ObjCTurboModule { - public: - NativeAccessibilityManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeActionSheetManager { - struct SpecShowActionSheetWithOptionsOptions { - NSString *title() const; - NSString *message() const; - std::optional> options() const; - std::optional> destructiveButtonIndices() const; - std::optional cancelButtonIndex() const; - std::optional anchor() const; - std::optional tintColor() const; - std::optional cancelButtonTintColor() const; - NSString *userInterfaceStyle() const; - std::optional> disabledButtonIndices() const; - - SpecShowActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions) -+ (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowActionSheetWithOptionsOptions:(id)json; -@end -namespace JS { - namespace NativeActionSheetManager { - struct SpecShowShareActionSheetWithOptionsOptions { - NSString *message() const; - NSString *url() const; - NSString *subject() const; - std::optional anchor() const; - std::optional tintColor() const; - std::optional cancelButtonTintColor() const; - std::optional> excludedActivityTypes() const; - NSString *userInterfaceStyle() const; - - SpecShowShareActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions) -+ (RCTManagedPointer *)JS_NativeActionSheetManager_SpecShowShareActionSheetWithOptionsOptions:(id)json; -@end -@protocol NativeActionSheetManagerSpec - -- (void)showActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions &)options - callback:(RCTResponseSenderBlock)callback; -- (void)showShareActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions &)options - failureCallback:(RCTResponseSenderBlock)failureCallback - successCallback:(RCTResponseSenderBlock)successCallback; -- (void)dismissActionSheet; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeActionSheetManager' - */ - class JSI_EXPORT NativeActionSheetManagerSpecJSI : public ObjCTurboModule { - public: - NativeActionSheetManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeAlertManager { - struct Args { - NSString *title() const; - NSString *message() const; - std::optional >> buttons() const; - NSString *type() const; - NSString *defaultValue() const; - NSString *cancelButtonKey() const; - NSString *destructiveButtonKey() const; - NSString *preferredButtonKey() const; - NSString *keyboardType() const; - NSString *userInterfaceStyle() const; - - Args(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAlertManager_Args) -+ (RCTManagedPointer *)JS_NativeAlertManager_Args:(id)json; -@end -@protocol NativeAlertManagerSpec - -- (void)alertWithArgs:(JS::NativeAlertManager::Args &)args - callback:(RCTResponseSenderBlock)callback; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeAlertManager' - */ - class JSI_EXPORT NativeAlertManagerSpecJSI : public ObjCTurboModule { - public: - NativeAlertManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeAnimatedModule { - struct EventMapping { - facebook::react::LazyVector nativeEventPath() const; - std::optional animatedValueTag() const; - - EventMapping(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAnimatedModule_EventMapping) -+ (RCTManagedPointer *)JS_NativeAnimatedModule_EventMapping:(id)json; -@end -@protocol NativeAnimatedModuleSpec - -- (void)startOperationBatch; -- (void)finishOperationBatch; -- (void)createAnimatedNode:(double)tag - config:(NSDictionary *)config; -- (void)updateAnimatedNodeConfig:(double)tag - config:(NSDictionary *)config; -- (void)getValue:(double)tag -saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; -- (void)startListeningToAnimatedNodeValue:(double)tag; -- (void)stopListeningToAnimatedNodeValue:(double)tag; -- (void)connectAnimatedNodes:(double)parentTag - childTag:(double)childTag; -- (void)disconnectAnimatedNodes:(double)parentTag - childTag:(double)childTag; -- (void)startAnimatingNode:(double)animationId - nodeTag:(double)nodeTag - config:(NSDictionary *)config - endCallback:(RCTResponseSenderBlock)endCallback; -- (void)stopAnimation:(double)animationId; -- (void)setAnimatedNodeValue:(double)nodeTag - value:(double)value; -- (void)setAnimatedNodeOffset:(double)nodeTag - offset:(double)offset; -- (void)flattenAnimatedNodeOffset:(double)nodeTag; -- (void)extractAnimatedNodeOffset:(double)nodeTag; -- (void)connectAnimatedNodeToView:(double)nodeTag - viewTag:(double)viewTag; -- (void)disconnectAnimatedNodeFromView:(double)nodeTag - viewTag:(double)viewTag; -- (void)restoreDefaultValues:(double)nodeTag; -- (void)dropAnimatedNode:(double)tag; -- (void)addAnimatedEventToView:(double)viewTag - eventName:(NSString *)eventName - eventMapping:(JS::NativeAnimatedModule::EventMapping &)eventMapping; -- (void)removeAnimatedEventFromView:(double)viewTag - eventName:(NSString *)eventName - animatedNodeTag:(double)animatedNodeTag; -- (void)addListener:(NSString *)eventName; -- (void)removeListeners:(double)count; -- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeAnimatedModule' - */ - class JSI_EXPORT NativeAnimatedModuleSpecJSI : public ObjCTurboModule { - public: - NativeAnimatedModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeAnimatedTurboModule { - struct EventMapping { - facebook::react::LazyVector nativeEventPath() const; - std::optional animatedValueTag() const; - - EventMapping(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeAnimatedTurboModule_EventMapping) -+ (RCTManagedPointer *)JS_NativeAnimatedTurboModule_EventMapping:(id)json; -@end -@protocol NativeAnimatedTurboModuleSpec - -- (void)startOperationBatch; -- (void)finishOperationBatch; -- (void)createAnimatedNode:(double)tag - config:(NSDictionary *)config; -- (void)updateAnimatedNodeConfig:(double)tag - config:(NSDictionary *)config; -- (void)getValue:(double)tag -saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; -- (void)startListeningToAnimatedNodeValue:(double)tag; -- (void)stopListeningToAnimatedNodeValue:(double)tag; -- (void)connectAnimatedNodes:(double)parentTag - childTag:(double)childTag; -- (void)disconnectAnimatedNodes:(double)parentTag - childTag:(double)childTag; -- (void)startAnimatingNode:(double)animationId - nodeTag:(double)nodeTag - config:(NSDictionary *)config - endCallback:(RCTResponseSenderBlock)endCallback; -- (void)stopAnimation:(double)animationId; -- (void)setAnimatedNodeValue:(double)nodeTag - value:(double)value; -- (void)setAnimatedNodeOffset:(double)nodeTag - offset:(double)offset; -- (void)flattenAnimatedNodeOffset:(double)nodeTag; -- (void)extractAnimatedNodeOffset:(double)nodeTag; -- (void)connectAnimatedNodeToView:(double)nodeTag - viewTag:(double)viewTag; -- (void)disconnectAnimatedNodeFromView:(double)nodeTag - viewTag:(double)viewTag; -- (void)restoreDefaultValues:(double)nodeTag; -- (void)dropAnimatedNode:(double)tag; -- (void)addAnimatedEventToView:(double)viewTag - eventName:(NSString *)eventName - eventMapping:(JS::NativeAnimatedTurboModule::EventMapping &)eventMapping; -- (void)removeAnimatedEventFromView:(double)viewTag - eventName:(NSString *)eventName - animatedNodeTag:(double)animatedNodeTag; -- (void)addListener:(NSString *)eventName; -- (void)removeListeners:(double)count; -- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeAnimatedTurboModule' - */ - class JSI_EXPORT NativeAnimatedTurboModuleSpecJSI : public ObjCTurboModule { - public: - NativeAnimatedTurboModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeAnimationsDebugModuleSpec - -- (void)startRecordingFps; -- (void)stopRecordingFps:(double)animationStopTimeMs; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeAnimationsDebugModule' - */ - class JSI_EXPORT NativeAnimationsDebugModuleSpecJSI : public ObjCTurboModule { - public: - NativeAnimationsDebugModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeAppState { - struct Constants { - - struct Builder { - struct Input { - RCTRequired initialAppState; - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing Constants */ - Builder(Constants i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - Constants(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -@protocol NativeAppStateSpec - -- (void)getCurrentAppState:(RCTResponseSenderBlock)success - error:(RCTResponseSenderBlock)error; -- (void)addListener:(NSString *)eventName; -- (void)removeListeners:(double)count; -- (facebook::react::ModuleConstants)constantsToExport; -- (facebook::react::ModuleConstants)getConstants; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeAppState' - */ - class JSI_EXPORT NativeAppStateSpecJSI : public ObjCTurboModule { - public: - NativeAppStateSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeAppearanceSpec - -- (NSString * _Nullable)getColorScheme; -- (void)addListener:(NSString *)eventName; -- (void)removeListeners:(double)count; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeAppearance' - */ - class JSI_EXPORT NativeAppearanceSpecJSI : public ObjCTurboModule { - public: - NativeAppearanceSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeBlobModule { - struct Constants { - - struct Builder { - struct Input { - RCTRequired BLOB_URI_SCHEME; - RCTRequired BLOB_URI_HOST; - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing Constants */ - Builder(Constants i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - Constants(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -@protocol NativeBlobModuleSpec - -- (void)addNetworkingHandler; -- (void)addWebSocketHandler:(double)id; -- (void)removeWebSocketHandler:(double)id; -- (void)sendOverSocket:(NSDictionary *)blob - socketID:(double)socketID; -- (void)createFromParts:(NSArray *)parts - withId:(NSString *)withId; -- (void)release:(NSString *)blobId; -- (facebook::react::ModuleConstants)constantsToExport; -- (facebook::react::ModuleConstants)getConstants; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeBlobModule' - */ - class JSI_EXPORT NativeBlobModuleSpecJSI : public ObjCTurboModule { - public: - NativeBlobModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeBugReportingSpec - -- (void)startReportAProblemFlow; -- (void)setExtraData:(NSDictionary *)extraData - extraFiles:(NSDictionary *)extraFiles; -- (void)setCategoryID:(NSString *)categoryID; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeBugReporting' - */ - class JSI_EXPORT NativeBugReportingSpecJSI : public ObjCTurboModule { - public: - NativeBugReportingSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeClipboardSpec - -- (void)getString:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; -- (void)setString:(NSString *)content; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeClipboard' - */ - class JSI_EXPORT NativeClipboardSpecJSI : public ObjCTurboModule { - public: - NativeClipboardSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeDevLoadingViewSpec - -- (void)showMessage:(NSString *)message - withColor:(NSNumber *)withColor -withBackgroundColor:(NSNumber *)withBackgroundColor; -- (void)hide; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeDevLoadingView' - */ - class JSI_EXPORT NativeDevLoadingViewSpecJSI : public ObjCTurboModule { - public: - NativeDevLoadingViewSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeDevMenuSpec - -- (void)show; -- (void)reload; -- (void)debugRemotely:(BOOL)enableDebug; -- (void)setProfilingEnabled:(BOOL)enabled; -- (void)setHotLoadingEnabled:(BOOL)enabled; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeDevMenu' - */ - class JSI_EXPORT NativeDevMenuSpecJSI : public ObjCTurboModule { - public: - NativeDevMenuSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeDevSettingsSpec - -- (void)reload; -- (void)reloadWithReason:(NSString *)reason; -- (void)onFastRefresh; -- (void)setHotLoadingEnabled:(BOOL)isHotLoadingEnabled; -- (void)setIsDebuggingRemotely:(BOOL)isDebuggingRemotelyEnabled; -- (void)setProfilingEnabled:(BOOL)isProfilingEnabled; -- (void)toggleElementInspector; -- (void)addMenuItem:(NSString *)title; -- (void)addListener:(NSString *)eventName; -- (void)removeListeners:(double)count; -- (void)setIsShakeToShowDevMenuEnabled:(BOOL)enabled; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeDevSettings' - */ - class JSI_EXPORT NativeDevSettingsSpecJSI : public ObjCTurboModule { - public: - NativeDevSettingsSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeDevSplitBundleLoaderSpec - -- (void)loadBundle:(NSString *)bundlePath - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeDevSplitBundleLoader' - */ - class JSI_EXPORT NativeDevSplitBundleLoaderSpecJSI : public ObjCTurboModule { - public: - NativeDevSplitBundleLoaderSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeDeviceEventManagerSpec - -- (void)invokeDefaultBackPressHandler; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeDeviceEventManager' - */ - class JSI_EXPORT NativeDeviceEventManagerSpecJSI : public ObjCTurboModule { - public: - NativeDeviceEventManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeDeviceInfo { - struct DisplayMetrics { - - struct Builder { - struct Input { - RCTRequired width; - RCTRequired height; - RCTRequired scale; - RCTRequired fontScale; - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing DisplayMetrics */ - Builder(DisplayMetrics i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static DisplayMetrics fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - DisplayMetrics(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -namespace JS { - namespace NativeDeviceInfo { - struct DisplayMetricsAndroid { - - struct Builder { - struct Input { - RCTRequired width; - RCTRequired height; - RCTRequired scale; - RCTRequired fontScale; - RCTRequired densityDpi; - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing DisplayMetricsAndroid */ - Builder(DisplayMetricsAndroid i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static DisplayMetricsAndroid fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - DisplayMetricsAndroid(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -namespace JS { - namespace NativeDeviceInfo { - struct DimensionsPayload { - - struct Builder { - struct Input { - std::optional window; - std::optional screen; - std::optional windowPhysicalPixels; - std::optional screenPhysicalPixels; - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing DimensionsPayload */ - Builder(DimensionsPayload i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static DimensionsPayload fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - DimensionsPayload(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -namespace JS { - namespace NativeDeviceInfo { - struct Constants { - - struct Builder { - struct Input { - RCTRequired Dimensions; - std::optional isIPhoneX_deprecated; - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing Constants */ - Builder(Constants i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - Constants(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -@protocol NativeDeviceInfoSpec - -- (facebook::react::ModuleConstants)constantsToExport; -- (facebook::react::ModuleConstants)getConstants; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeDeviceInfo' - */ - class JSI_EXPORT NativeDeviceInfoSpecJSI : public ObjCTurboModule { - public: - NativeDeviceInfoSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeExceptionsManager { - struct StackFrame { - std::optional column() const; - NSString *file() const; - std::optional lineNumber() const; - NSString *methodName() const; - std::optional collapse() const; - - StackFrame(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeExceptionsManager_StackFrame) -+ (RCTManagedPointer *)JS_NativeExceptionsManager_StackFrame:(id)json; -@end -namespace JS { - namespace NativeExceptionsManager { - struct ExceptionData { - NSString *message() const; - NSString *originalMessage() const; - NSString *name() const; - NSString *componentStack() const; - facebook::react::LazyVector stack() const; - double id_() const; - bool isFatal() const; - id _Nullable extraData() const; - - ExceptionData(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeExceptionsManager_ExceptionData) -+ (RCTManagedPointer *)JS_NativeExceptionsManager_ExceptionData:(id)json; -@end -@protocol NativeExceptionsManagerSpec - -- (void)reportFatalException:(NSString *)message - stack:(NSArray *)stack - exceptionId:(double)exceptionId; -- (void)reportSoftException:(NSString *)message - stack:(NSArray *)stack - exceptionId:(double)exceptionId; -- (void)reportException:(JS::NativeExceptionsManager::ExceptionData &)data; -- (void)updateExceptionMessage:(NSString *)message - stack:(NSArray *)stack - exceptionId:(double)exceptionId; -- (void)dismissRedbox; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeExceptionsManager' - */ - class JSI_EXPORT NativeExceptionsManagerSpecJSI : public ObjCTurboModule { - public: - NativeExceptionsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeFileReaderModuleSpec - -- (void)readAsDataURL:(NSDictionary *)data - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; -- (void)readAsText:(NSDictionary *)data - encoding:(NSString *)encoding - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeFileReaderModule' - */ - class JSI_EXPORT NativeFileReaderModuleSpecJSI : public ObjCTurboModule { - public: - NativeFileReaderModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeFrameRateLogger { - struct SpecSetGlobalOptionsOptions { - std::optional debug() const; - std::optional reportStackTraces() const; - - SpecSetGlobalOptionsOptions(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeFrameRateLogger_SpecSetGlobalOptionsOptions) -+ (RCTManagedPointer *)JS_NativeFrameRateLogger_SpecSetGlobalOptionsOptions:(id)json; -@end -@protocol NativeFrameRateLoggerSpec - -- (void)setGlobalOptions:(JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions &)options; -- (void)setContext:(NSString *)context; -- (void)beginScroll; -- (void)endScroll; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeFrameRateLogger' - */ - class JSI_EXPORT NativeFrameRateLoggerSpecJSI : public ObjCTurboModule { - public: - NativeFrameRateLoggerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeHeadlessJsTaskSupportSpec - -- (void)notifyTaskFinished:(double)taskId; -- (void)notifyTaskRetry:(double)taskId - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeHeadlessJsTaskSupport' - */ - class JSI_EXPORT NativeHeadlessJsTaskSupportSpecJSI : public ObjCTurboModule { - public: - NativeHeadlessJsTaskSupportSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeI18nManager { - struct Constants { - - struct Builder { - struct Input { - RCTRequired isRTL; - RCTRequired doLeftAndRightSwapInRTL; - RCTRequired localeIdentifier; - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing Constants */ - Builder(Constants i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - Constants(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -@protocol NativeI18nManagerSpec - -- (void)allowRTL:(BOOL)allowRTL; -- (void)forceRTL:(BOOL)forceRTL; -- (void)swapLeftAndRightInRTL:(BOOL)flipStyles; -- (facebook::react::ModuleConstants)constantsToExport; -- (facebook::react::ModuleConstants)getConstants; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeI18nManager' - */ - class JSI_EXPORT NativeI18nManagerSpecJSI : public ObjCTurboModule { - public: - NativeI18nManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeImageEditor { - struct OptionsOffset { - double x() const; - double y() const; - - OptionsOffset(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeImageEditor_OptionsOffset) -+ (RCTManagedPointer *)JS_NativeImageEditor_OptionsOffset:(id)json; -@end -namespace JS { - namespace NativeImageEditor { - struct OptionsSize { - double width() const; - double height() const; - - OptionsSize(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeImageEditor_OptionsSize) -+ (RCTManagedPointer *)JS_NativeImageEditor_OptionsSize:(id)json; -@end -namespace JS { - namespace NativeImageEditor { - struct OptionsDisplaySize { - double width() const; - double height() const; - - OptionsDisplaySize(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeImageEditor_OptionsDisplaySize) -+ (RCTManagedPointer *)JS_NativeImageEditor_OptionsDisplaySize:(id)json; -@end -namespace JS { - namespace NativeImageEditor { - struct Options { - JS::NativeImageEditor::OptionsOffset offset() const; - JS::NativeImageEditor::OptionsSize size() const; - std::optional displaySize() const; - NSString *resizeMode() const; - std::optional allowExternalStorage() const; - - Options(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeImageEditor_Options) -+ (RCTManagedPointer *)JS_NativeImageEditor_Options:(id)json; -@end -@protocol NativeImageEditorSpec - -- (void)cropImage:(NSString *)uri - cropData:(JS::NativeImageEditor::Options &)cropData - successCallback:(RCTResponseSenderBlock)successCallback - errorCallback:(RCTResponseSenderBlock)errorCallback; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeImageEditor' - */ - class JSI_EXPORT NativeImageEditorSpecJSI : public ObjCTurboModule { - public: - NativeImageEditorSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeImageLoaderIOSSpec - -- (void)getSize:(NSString *)uri - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; -- (void)getSizeWithHeaders:(NSString *)uri - headers:(NSDictionary *)headers - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; -- (void)prefetchImage:(NSString *)uri - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; -- (void)prefetchImageWithMetadata:(NSString *)uri - queryRootName:(NSString *)queryRootName - rootTag:(double)rootTag - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; -- (void)queryCache:(NSArray *)uris - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeImageLoaderIOS' - */ - class JSI_EXPORT NativeImageLoaderIOSSpecJSI : public ObjCTurboModule { - public: - NativeImageLoaderIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeImageStoreIOSSpec - -- (void)getBase64ForTag:(NSString *)uri - successCallback:(RCTResponseSenderBlock)successCallback - errorCallback:(RCTResponseSenderBlock)errorCallback; -- (void)hasImageForTag:(NSString *)uri - callback:(RCTResponseSenderBlock)callback; -- (void)removeImageForTag:(NSString *)uri; -- (void)addImageFromBase64:(NSString *)base64ImageData - successCallback:(RCTResponseSenderBlock)successCallback - errorCallback:(RCTResponseSenderBlock)errorCallback; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeImageStoreIOS' - */ - class JSI_EXPORT NativeImageStoreIOSSpecJSI : public ObjCTurboModule { - public: - NativeImageStoreIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeJSCHeapCaptureSpec - -- (void)captureComplete:(NSString *)path - error:(NSString * _Nullable)error; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeJSCHeapCapture' - */ - class JSI_EXPORT NativeJSCHeapCaptureSpecJSI : public ObjCTurboModule { - public: - NativeJSCHeapCaptureSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeJSCSamplingProfilerSpec - -- (void)operationComplete:(double)token - result:(NSString * _Nullable)result - error:(NSString * _Nullable)error; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeJSCSamplingProfiler' - */ - class JSI_EXPORT NativeJSCSamplingProfilerSpecJSI : public ObjCTurboModule { - public: - NativeJSCSamplingProfilerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeKeyboardObserverSpec - -- (void)addListener:(NSString *)eventName; -- (void)removeListeners:(double)count; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeKeyboardObserver' - */ - class JSI_EXPORT NativeKeyboardObserverSpecJSI : public ObjCTurboModule { - public: - NativeKeyboardObserverSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeLinkingManagerSpec - -- (void)getInitialURL:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; -- (void)canOpenURL:(NSString *)url - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; -- (void)openURL:(NSString *)url - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; -- (void)openSettings:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; -- (void)addListener:(NSString *)eventName; -- (void)removeListeners:(double)count; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeLinkingManager' - */ - class JSI_EXPORT NativeLinkingManagerSpecJSI : public ObjCTurboModule { - public: - NativeLinkingManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeLogBoxSpec - -- (void)show; -- (void)hide; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeLogBox' - */ - class JSI_EXPORT NativeLogBoxSpecJSI : public ObjCTurboModule { - public: - NativeLogBoxSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeModalManagerSpec - -- (void)addListener:(NSString *)eventName; -- (void)removeListeners:(double)count; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeModalManager' - */ - class JSI_EXPORT NativeModalManagerSpecJSI : public ObjCTurboModule { - public: - NativeModalManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeNetworkingIOS { - struct SpecSendRequestQuery { - NSString *method() const; - NSString *url() const; - id data() const; - id headers() const; - NSString *responseType() const; - bool incrementalUpdates() const; - double timeout() const; - bool withCredentials() const; - - SpecSendRequestQuery(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeNetworkingIOS_SpecSendRequestQuery) -+ (RCTManagedPointer *)JS_NativeNetworkingIOS_SpecSendRequestQuery:(id)json; -@end -@protocol NativeNetworkingIOSSpec - -- (void)sendRequest:(JS::NativeNetworkingIOS::SpecSendRequestQuery &)query - callback:(RCTResponseSenderBlock)callback; -- (void)abortRequest:(double)requestId; -- (void)clearCookies:(RCTResponseSenderBlock)callback; -- (void)addListener:(NSString *)eventName; -- (void)removeListeners:(double)count; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeNetworkingIOS' - */ - class JSI_EXPORT NativeNetworkingIOSSpecJSI : public ObjCTurboModule { - public: - NativeNetworkingIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativePlatformConstantsIOS { - struct ConstantsReactNativeVersion { - - struct Builder { - struct Input { - RCTRequired major; - RCTRequired minor; - RCTRequired patch; - RCTRequired> prerelease; - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing ConstantsReactNativeVersion */ - Builder(ConstantsReactNativeVersion i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static ConstantsReactNativeVersion fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - ConstantsReactNativeVersion(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -namespace JS { - namespace NativePlatformConstantsIOS { - struct Constants { - - struct Builder { - struct Input { - RCTRequired isTesting; - RCTRequired reactNativeVersion; - RCTRequired forceTouchAvailable; - RCTRequired osVersion; - RCTRequired systemName; - RCTRequired interfaceIdiom; - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing Constants */ - Builder(Constants i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - Constants(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -@protocol NativePlatformConstantsIOSSpec - -- (facebook::react::ModuleConstants)constantsToExport; -- (facebook::react::ModuleConstants)getConstants; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativePlatformConstantsIOS' - */ - class JSI_EXPORT NativePlatformConstantsIOSSpecJSI : public ObjCTurboModule { - public: - NativePlatformConstantsIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativePushNotificationManagerIOS { - struct SpecRequestPermissionsPermission { - bool alert() const; - bool badge() const; - bool sound() const; - - SpecRequestPermissionsPermission(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativePushNotificationManagerIOS_SpecRequestPermissionsPermission) -+ (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_SpecRequestPermissionsPermission:(id)json; -@end -namespace JS { - namespace NativePushNotificationManagerIOS { - struct Notification { - NSString *alertTitle() const; - std::optional fireDate() const; - NSString *alertBody() const; - NSString *alertAction() const; - id _Nullable userInfo() const; - NSString *category() const; - NSString *repeatInterval() const; - std::optional applicationIconBadgeNumber() const; - std::optional isSilent() const; - NSString *soundName() const; - - Notification(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativePushNotificationManagerIOS_Notification) -+ (RCTManagedPointer *)JS_NativePushNotificationManagerIOS_Notification:(id)json; -@end -@protocol NativePushNotificationManagerIOSSpec - -- (void)onFinishRemoteNotification:(NSString *)notificationId - fetchResult:(NSString *)fetchResult; -- (void)setApplicationIconBadgeNumber:(double)num; -- (void)getApplicationIconBadgeNumber:(RCTResponseSenderBlock)callback; -- (void)requestPermissions:(JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission &)permission - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; -- (void)abandonPermissions; -- (void)checkPermissions:(RCTResponseSenderBlock)callback; -- (void)presentLocalNotification:(JS::NativePushNotificationManagerIOS::Notification &)notification; -- (void)scheduleLocalNotification:(JS::NativePushNotificationManagerIOS::Notification &)notification; -- (void)cancelAllLocalNotifications; -- (void)cancelLocalNotifications:(NSDictionary *)userInfo; -- (void)getInitialNotification:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; -- (void)getScheduledLocalNotifications:(RCTResponseSenderBlock)callback; -- (void)removeAllDeliveredNotifications; -- (void)removeDeliveredNotifications:(NSArray *)identifiers; -- (void)getDeliveredNotifications:(RCTResponseSenderBlock)callback; -- (void)getAuthorizationStatus:(RCTResponseSenderBlock)callback; -- (void)addListener:(NSString *)eventType; -- (void)removeListeners:(double)count; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativePushNotificationManagerIOS' - */ - class JSI_EXPORT NativePushNotificationManagerIOSSpecJSI : public ObjCTurboModule { - public: - NativePushNotificationManagerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeRedBoxSpec - -- (void)setExtraData:(NSDictionary *)extraData - forIdentifier:(NSString *)forIdentifier; -- (void)dismiss; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeRedBox' - */ - class JSI_EXPORT NativeRedBoxSpecJSI : public ObjCTurboModule { - public: - NativeRedBoxSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeSegmentFetcherSpec - -- (void)fetchSegment:(double)segmentId - options:(NSDictionary *)options - callback:(RCTResponseSenderBlock)callback; -- (void)getSegment:(double)segmentId - options:(NSDictionary *)options - callback:(RCTResponseSenderBlock)callback; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeSegmentFetcher' - */ - class JSI_EXPORT NativeSegmentFetcherSpecJSI : public ObjCTurboModule { - public: - NativeSegmentFetcherSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeSettingsManager { - struct Constants { - - struct Builder { - struct Input { - RCTRequired > settings; - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing Constants */ - Builder(Constants i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - Constants(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -@protocol NativeSettingsManagerSpec - -- (void)setValues:(NSDictionary *)values; -- (void)deleteValues:(NSArray *)values; -- (facebook::react::ModuleConstants)constantsToExport; -- (facebook::react::ModuleConstants)getConstants; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeSettingsManager' - */ - class JSI_EXPORT NativeSettingsManagerSpecJSI : public ObjCTurboModule { - public: - NativeSettingsManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeShareModule { - struct SpecShareContent { - NSString *title() const; - NSString *message() const; - - SpecShareContent(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeShareModule_SpecShareContent) -+ (RCTManagedPointer *)JS_NativeShareModule_SpecShareContent:(id)json; -@end -@protocol NativeShareModuleSpec - -- (void)share:(JS::NativeShareModule::SpecShareContent &)content - dialogTitle:(NSString *)dialogTitle - resolve:(RCTPromiseResolveBlock)resolve - reject:(RCTPromiseRejectBlock)reject; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeShareModule' - */ - class JSI_EXPORT NativeShareModuleSpecJSI : public ObjCTurboModule { - public: - NativeShareModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeSoundManagerSpec - -- (void)playTouchSound; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeSoundManager' - */ - class JSI_EXPORT NativeSoundManagerSpecJSI : public ObjCTurboModule { - public: - NativeSoundManagerSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeSourceCode { - struct Constants { - - struct Builder { - struct Input { - RCTRequired scriptURL; - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing Constants */ - Builder(Constants i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - Constants(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -@protocol NativeSourceCodeSpec - -- (facebook::react::ModuleConstants)constantsToExport; -- (facebook::react::ModuleConstants)getConstants; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeSourceCode' - */ - class JSI_EXPORT NativeSourceCodeSpecJSI : public ObjCTurboModule { - public: - NativeSourceCodeSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeStatusBarManagerIOS { - struct Constants { - - struct Builder { - struct Input { - RCTRequired HEIGHT; - std::optional DEFAULT_BACKGROUND_COLOR; - }; - - /** Initialize with a set of values */ - Builder(const Input i); - /** Initialize with an existing Constants */ - Builder(Constants i); - /** Builds the object. Generally used only by the infrastructure. */ - NSDictionary *buildUnsafeRawValue() const { return _factory(); }; - private: - NSDictionary *(^_factory)(void); - }; - - static Constants fromUnsafeRawValue(NSDictionary *const v) { return {v}; } - NSDictionary *unsafeRawValue() const { return _v; } - private: - Constants(NSDictionary *const v) : _v(v) {} - NSDictionary *_v; - }; - } -} -@protocol NativeStatusBarManagerIOSSpec - -- (void)getHeight:(RCTResponseSenderBlock)callback; -- (void)setNetworkActivityIndicatorVisible:(BOOL)visible; -- (void)addListener:(NSString *)eventType; -- (void)removeListeners:(double)count; -- (void)setStyle:(NSString * _Nullable)statusBarStyle - animated:(BOOL)animated; -- (void)setHidden:(BOOL)hidden - withAnimation:(NSString *)withAnimation; -- (facebook::react::ModuleConstants)constantsToExport; -- (facebook::react::ModuleConstants)getConstants; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeStatusBarManagerIOS' - */ - class JSI_EXPORT NativeStatusBarManagerIOSSpecJSI : public ObjCTurboModule { - public: - NativeStatusBarManagerIOSSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeTimingSpec - -- (void)createTimer:(double)callbackID - duration:(double)duration - jsSchedulingTime:(double)jsSchedulingTime - repeats:(BOOL)repeats; -- (void)deleteTimer:(double)timerID; -- (void)setSendIdleEvents:(BOOL)sendIdleEvents; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeTiming' - */ - class JSI_EXPORT NativeTimingSpecJSI : public ObjCTurboModule { - public: - NativeTimingSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -@protocol NativeVibrationSpec - -- (void)vibrate:(double)pattern; -- (void)vibrateByPattern:(NSArray *)pattern - repeat:(double)repeat; -- (void)cancel; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeVibration' - */ - class JSI_EXPORT NativeVibrationSpecJSI : public ObjCTurboModule { - public: - NativeVibrationSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook -namespace JS { - namespace NativeWebSocketModule { - struct SpecConnectOptions { - id _Nullable headers() const; - - SpecConnectOptions(NSDictionary *const v) : _v(v) {} - private: - NSDictionary *_v; - }; - } -} - -@interface RCTCxxConvert (NativeWebSocketModule_SpecConnectOptions) -+ (RCTManagedPointer *)JS_NativeWebSocketModule_SpecConnectOptions:(id)json; -@end -@protocol NativeWebSocketModuleSpec - -- (void)connect:(NSString *)url - protocols:(NSArray * _Nullable)protocols - options:(JS::NativeWebSocketModule::SpecConnectOptions &)options - socketID:(double)socketID; -- (void)send:(NSString *)message - forSocketID:(double)forSocketID; -- (void)sendBinary:(NSString *)base64String - forSocketID:(double)forSocketID; -- (void)ping:(double)socketID; -- (void)close:(double)code - reason:(NSString *)reason - socketID:(double)socketID; -- (void)addListener:(NSString *)eventName; -- (void)removeListeners:(double)count; - -@end -namespace facebook { - namespace react { - /** - * ObjC++ class for module 'NativeWebSocketModule' - */ - class JSI_EXPORT NativeWebSocketModuleSpecJSI : public ObjCTurboModule { - public: - NativeWebSocketModuleSpecJSI(const ObjCTurboModule::InitParams ¶ms); - }; - } // namespace react -} // namespace facebook - -inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const -{ - id const p = _v[@"extraSmall"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::small() const -{ - id const p = _v[@"small"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::medium() const -{ - id const p = _v[@"medium"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::large() const -{ - id const p = _v[@"large"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraLarge() const -{ - id const p = _v[@"extraLarge"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraLarge() const -{ - id const p = _v[@"extraExtraLarge"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraExtraLarge() const -{ - id const p = _v[@"extraExtraExtraLarge"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityMedium() const -{ - id const p = _v[@"accessibilityMedium"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityLarge() const -{ - id const p = _v[@"accessibilityLarge"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraLarge() const -{ - id const p = _v[@"accessibilityExtraLarge"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraLarge() const -{ - id const p = _v[@"accessibilityExtraExtraLarge"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraExtraLarge() const -{ - id const p = _v[@"accessibilityExtraExtraExtraLarge"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions::queue() const -{ - id const p = _v[@"queue"]; - return RCTBridgingToOptionalBool(p); -} -inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::title() const -{ - id const p = _v[@"title"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToOptionalString(p); -} -inline std::optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const -{ - id const p = _v[@"options"]; - return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); -} -inline std::optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::destructiveButtonIndices() const -{ - id const p = _v[@"destructiveButtonIndices"]; - return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); }); -} -inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonIndex() const -{ - id const p = _v[@"cancelButtonIndex"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::anchor() const -{ - id const p = _v[@"anchor"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::tintColor() const -{ - id const p = _v[@"tintColor"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonTintColor() const -{ - id const p = _v[@"cancelButtonTintColor"]; - return RCTBridgingToOptionalDouble(p); -} -inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::userInterfaceStyle() const -{ - id const p = _v[@"userInterfaceStyle"]; - return RCTBridgingToOptionalString(p); -} -inline std::optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::disabledButtonIndices() const -{ - id const p = _v[@"disabledButtonIndices"]; - return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); }); -} -inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::url() const -{ - id const p = _v[@"url"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::subject() const -{ - id const p = _v[@"subject"]; - return RCTBridgingToOptionalString(p); -} -inline std::optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const -{ - id const p = _v[@"anchor"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::tintColor() const -{ - id const p = _v[@"tintColor"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::cancelButtonTintColor() const -{ - id const p = _v[@"cancelButtonTintColor"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::excludedActivityTypes() const -{ - id const p = _v[@"excludedActivityTypes"]; - return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); -} -inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::userInterfaceStyle() const -{ - id const p = _v[@"userInterfaceStyle"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeAlertManager::Args::title() const -{ - id const p = _v[@"title"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeAlertManager::Args::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToOptionalString(p); -} -inline std::optional >> JS::NativeAlertManager::Args::buttons() const -{ - id const p = _v[@"buttons"]; - return RCTBridgingToOptionalVec(p, ^id (id itemValue_0) { return itemValue_0; }); -} -inline NSString *JS::NativeAlertManager::Args::type() const -{ - id const p = _v[@"type"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeAlertManager::Args::defaultValue() const -{ - id const p = _v[@"defaultValue"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeAlertManager::Args::cancelButtonKey() const -{ - id const p = _v[@"cancelButtonKey"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeAlertManager::Args::destructiveButtonKey() const -{ - id const p = _v[@"destructiveButtonKey"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeAlertManager::Args::preferredButtonKey() const -{ - id const p = _v[@"preferredButtonKey"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeAlertManager::Args::keyboardType() const -{ - id const p = _v[@"keyboardType"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeAlertManager::Args::userInterfaceStyle() const -{ - id const p = _v[@"userInterfaceStyle"]; - return RCTBridgingToOptionalString(p); -} -inline facebook::react::LazyVector JS::NativeAnimatedModule::EventMapping::nativeEventPath() const -{ - id const p = _v[@"nativeEventPath"]; - return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); -} -inline std::optional JS::NativeAnimatedModule::EventMapping::animatedValueTag() const -{ - id const p = _v[@"animatedValueTag"]; - return RCTBridgingToOptionalDouble(p); -} -inline facebook::react::LazyVector JS::NativeAnimatedTurboModule::EventMapping::nativeEventPath() const -{ - id const p = _v[@"nativeEventPath"]; - return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); -} -inline std::optional JS::NativeAnimatedTurboModule::EventMapping::animatedValueTag() const -{ - id const p = _v[@"animatedValueTag"]; - return RCTBridgingToOptionalDouble(p); -} - -inline JS::NativeAppState::Constants::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - auto initialAppState = i.initialAppState.get(); - d[@"initialAppState"] = initialAppState; - return d; -}) {} -inline JS::NativeAppState::Constants::Builder::Builder(Constants i) : _factory(^{ - return i.unsafeRawValue(); -}) {} - -inline JS::NativeBlobModule::Constants::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - auto BLOB_URI_SCHEME = i.BLOB_URI_SCHEME.get(); - d[@"BLOB_URI_SCHEME"] = BLOB_URI_SCHEME; - auto BLOB_URI_HOST = i.BLOB_URI_HOST.get(); - d[@"BLOB_URI_HOST"] = BLOB_URI_HOST; - return d; -}) {} -inline JS::NativeBlobModule::Constants::Builder::Builder(Constants i) : _factory(^{ - return i.unsafeRawValue(); -}) {} - - - - - - - -inline JS::NativeDeviceInfo::DisplayMetrics::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - auto width = i.width.get(); - d[@"width"] = @(width); - auto height = i.height.get(); - d[@"height"] = @(height); - auto scale = i.scale.get(); - d[@"scale"] = @(scale); - auto fontScale = i.fontScale.get(); - d[@"fontScale"] = @(fontScale); - return d; -}) {} -inline JS::NativeDeviceInfo::DisplayMetrics::Builder::Builder(DisplayMetrics i) : _factory(^{ - return i.unsafeRawValue(); -}) {} -inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - auto width = i.width.get(); - d[@"width"] = @(width); - auto height = i.height.get(); - d[@"height"] = @(height); - auto scale = i.scale.get(); - d[@"scale"] = @(scale); - auto fontScale = i.fontScale.get(); - d[@"fontScale"] = @(fontScale); - auto densityDpi = i.densityDpi.get(); - d[@"densityDpi"] = @(densityDpi); - return d; -}) {} -inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(DisplayMetricsAndroid i) : _factory(^{ - return i.unsafeRawValue(); -}) {} -inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - auto window = i.window; - d[@"window"] = window.has_value() ? window.value().buildUnsafeRawValue() : nil; - auto screen = i.screen; - d[@"screen"] = screen.has_value() ? screen.value().buildUnsafeRawValue() : nil; - auto windowPhysicalPixels = i.windowPhysicalPixels; - d[@"windowPhysicalPixels"] = windowPhysicalPixels.has_value() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil; - auto screenPhysicalPixels = i.screenPhysicalPixels; - d[@"screenPhysicalPixels"] = screenPhysicalPixels.has_value() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil; - return d; -}) {} -inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(DimensionsPayload i) : _factory(^{ - return i.unsafeRawValue(); -}) {} -inline JS::NativeDeviceInfo::Constants::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - auto Dimensions = i.Dimensions.get(); - d[@"Dimensions"] = Dimensions.buildUnsafeRawValue(); - auto isIPhoneX_deprecated = i.isIPhoneX_deprecated; - d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.has_value() ? @((BOOL)isIPhoneX_deprecated.value()) : nil; - return d; -}) {} -inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{ - return i.unsafeRawValue(); -}) {} -inline std::optional JS::NativeExceptionsManager::StackFrame::column() const -{ - id const p = _v[@"column"]; - return RCTBridgingToOptionalDouble(p); -} -inline NSString *JS::NativeExceptionsManager::StackFrame::file() const -{ - id const p = _v[@"file"]; - return RCTBridgingToOptionalString(p); -} -inline std::optional JS::NativeExceptionsManager::StackFrame::lineNumber() const -{ - id const p = _v[@"lineNumber"]; - return RCTBridgingToOptionalDouble(p); -} -inline NSString *JS::NativeExceptionsManager::StackFrame::methodName() const -{ - id const p = _v[@"methodName"]; - return RCTBridgingToString(p); -} -inline std::optional JS::NativeExceptionsManager::StackFrame::collapse() const -{ - id const p = _v[@"collapse"]; - return RCTBridgingToOptionalBool(p); -} -inline NSString *JS::NativeExceptionsManager::ExceptionData::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToString(p); -} -inline NSString *JS::NativeExceptionsManager::ExceptionData::originalMessage() const -{ - id const p = _v[@"originalMessage"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeExceptionsManager::ExceptionData::name() const -{ - id const p = _v[@"name"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeExceptionsManager::ExceptionData::componentStack() const -{ - id const p = _v[@"componentStack"]; - return RCTBridgingToOptionalString(p); -} -inline facebook::react::LazyVector JS::NativeExceptionsManager::ExceptionData::stack() const -{ - id const p = _v[@"stack"]; - return RCTBridgingToVec(p, ^JS::NativeExceptionsManager::StackFrame(id itemValue_0) { return JS::NativeExceptionsManager::StackFrame(itemValue_0); }); -} -inline double JS::NativeExceptionsManager::ExceptionData::id_() const -{ - id const p = _v[@"id"]; - return RCTBridgingToDouble(p); -} -inline bool JS::NativeExceptionsManager::ExceptionData::isFatal() const -{ - id const p = _v[@"isFatal"]; - return RCTBridgingToBool(p); -} -inline id _Nullable JS::NativeExceptionsManager::ExceptionData::extraData() const -{ - id const p = _v[@"extraData"]; - return p; -} - -inline std::optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const -{ - id const p = _v[@"debug"]; - return RCTBridgingToOptionalBool(p); -} -inline std::optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::reportStackTraces() const -{ - id const p = _v[@"reportStackTraces"]; - return RCTBridgingToOptionalBool(p); -} - -inline JS::NativeI18nManager::Constants::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - auto isRTL = i.isRTL.get(); - d[@"isRTL"] = @(isRTL); - auto doLeftAndRightSwapInRTL = i.doLeftAndRightSwapInRTL.get(); - d[@"doLeftAndRightSwapInRTL"] = @(doLeftAndRightSwapInRTL); - auto localeIdentifier = i.localeIdentifier.get(); - d[@"localeIdentifier"] = localeIdentifier; - return d; -}) {} -inline JS::NativeI18nManager::Constants::Builder::Builder(Constants i) : _factory(^{ - return i.unsafeRawValue(); -}) {} -inline double JS::NativeImageEditor::OptionsOffset::x() const -{ - id const p = _v[@"x"]; - return RCTBridgingToDouble(p); -} -inline double JS::NativeImageEditor::OptionsOffset::y() const -{ - id const p = _v[@"y"]; - return RCTBridgingToDouble(p); -} -inline double JS::NativeImageEditor::OptionsSize::width() const -{ - id const p = _v[@"width"]; - return RCTBridgingToDouble(p); -} -inline double JS::NativeImageEditor::OptionsSize::height() const -{ - id const p = _v[@"height"]; - return RCTBridgingToDouble(p); -} -inline double JS::NativeImageEditor::OptionsDisplaySize::width() const -{ - id const p = _v[@"width"]; - return RCTBridgingToDouble(p); -} -inline double JS::NativeImageEditor::OptionsDisplaySize::height() const -{ - id const p = _v[@"height"]; - return RCTBridgingToDouble(p); -} -inline JS::NativeImageEditor::OptionsOffset JS::NativeImageEditor::Options::offset() const -{ - id const p = _v[@"offset"]; - return JS::NativeImageEditor::OptionsOffset(p); -} -inline JS::NativeImageEditor::OptionsSize JS::NativeImageEditor::Options::size() const -{ - id const p = _v[@"size"]; - return JS::NativeImageEditor::OptionsSize(p); -} -inline std::optional JS::NativeImageEditor::Options::displaySize() const -{ - id const p = _v[@"displaySize"]; - return (p == nil ? std::nullopt : std::make_optional(JS::NativeImageEditor::OptionsDisplaySize(p))); -} -inline NSString *JS::NativeImageEditor::Options::resizeMode() const -{ - id const p = _v[@"resizeMode"]; - return RCTBridgingToOptionalString(p); -} -inline std::optional JS::NativeImageEditor::Options::allowExternalStorage() const -{ - id const p = _v[@"allowExternalStorage"]; - return RCTBridgingToOptionalBool(p); -} - - - - - - - - -inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::method() const -{ - id const p = _v[@"method"]; - return RCTBridgingToString(p); -} -inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::url() const -{ - id const p = _v[@"url"]; - return RCTBridgingToString(p); -} -inline id JS::NativeNetworkingIOS::SpecSendRequestQuery::data() const -{ - id const p = _v[@"data"]; - return p; -} -inline id JS::NativeNetworkingIOS::SpecSendRequestQuery::headers() const -{ - id const p = _v[@"headers"]; - return p; -} -inline NSString *JS::NativeNetworkingIOS::SpecSendRequestQuery::responseType() const -{ - id const p = _v[@"responseType"]; - return RCTBridgingToString(p); -} -inline bool JS::NativeNetworkingIOS::SpecSendRequestQuery::incrementalUpdates() const -{ - id const p = _v[@"incrementalUpdates"]; - return RCTBridgingToBool(p); -} -inline double JS::NativeNetworkingIOS::SpecSendRequestQuery::timeout() const -{ - id const p = _v[@"timeout"]; - return RCTBridgingToDouble(p); -} -inline bool JS::NativeNetworkingIOS::SpecSendRequestQuery::withCredentials() const -{ - id const p = _v[@"withCredentials"]; - return RCTBridgingToBool(p); -} -inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - auto major = i.major.get(); - d[@"major"] = @(major); - auto minor = i.minor.get(); - d[@"minor"] = @(minor); - auto patch = i.patch.get(); - d[@"patch"] = @(patch); - auto prerelease = i.prerelease.get(); - d[@"prerelease"] = prerelease.has_value() ? @((double)prerelease.value()) : nil; - return d; -}) {} -inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{ - return i.unsafeRawValue(); -}) {} -inline JS::NativePlatformConstantsIOS::Constants::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - auto isTesting = i.isTesting.get(); - d[@"isTesting"] = @(isTesting); - auto reactNativeVersion = i.reactNativeVersion.get(); - d[@"reactNativeVersion"] = reactNativeVersion.buildUnsafeRawValue(); - auto forceTouchAvailable = i.forceTouchAvailable.get(); - d[@"forceTouchAvailable"] = @(forceTouchAvailable); - auto osVersion = i.osVersion.get(); - d[@"osVersion"] = osVersion; - auto systemName = i.systemName.get(); - d[@"systemName"] = systemName; - auto interfaceIdiom = i.interfaceIdiom.get(); - d[@"interfaceIdiom"] = interfaceIdiom; - return d; -}) {} -inline JS::NativePlatformConstantsIOS::Constants::Builder::Builder(Constants i) : _factory(^{ - return i.unsafeRawValue(); -}) {} -inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission::alert() const -{ - id const p = _v[@"alert"]; - return RCTBridgingToBool(p); -} -inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission::badge() const -{ - id const p = _v[@"badge"]; - return RCTBridgingToBool(p); -} -inline bool JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission::sound() const -{ - id const p = _v[@"sound"]; - return RCTBridgingToBool(p); -} -inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertTitle() const -{ - id const p = _v[@"alertTitle"]; - return RCTBridgingToOptionalString(p); -} -inline std::optional JS::NativePushNotificationManagerIOS::Notification::fireDate() const -{ - id const p = _v[@"fireDate"]; - return RCTBridgingToOptionalDouble(p); -} -inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertBody() const -{ - id const p = _v[@"alertBody"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertAction() const -{ - id const p = _v[@"alertAction"]; - return RCTBridgingToOptionalString(p); -} -inline id _Nullable JS::NativePushNotificationManagerIOS::Notification::userInfo() const -{ - id const p = _v[@"userInfo"]; - return p; -} -inline NSString *JS::NativePushNotificationManagerIOS::Notification::category() const -{ - id const p = _v[@"category"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativePushNotificationManagerIOS::Notification::repeatInterval() const -{ - id const p = _v[@"repeatInterval"]; - return RCTBridgingToOptionalString(p); -} -inline std::optional JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const -{ - id const p = _v[@"applicationIconBadgeNumber"]; - return RCTBridgingToOptionalDouble(p); -} -inline std::optional JS::NativePushNotificationManagerIOS::Notification::isSilent() const -{ - id const p = _v[@"isSilent"]; - return RCTBridgingToOptionalBool(p); -} -inline NSString *JS::NativePushNotificationManagerIOS::Notification::soundName() const -{ - id const p = _v[@"soundName"]; - return RCTBridgingToOptionalString(p); -} - - -inline JS::NativeSettingsManager::Constants::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - auto settings = i.settings.get(); - d[@"settings"] = settings; - return d; -}) {} -inline JS::NativeSettingsManager::Constants::Builder::Builder(Constants i) : _factory(^{ - return i.unsafeRawValue(); -}) {} -inline NSString *JS::NativeShareModule::SpecShareContent::title() const -{ - id const p = _v[@"title"]; - return RCTBridgingToOptionalString(p); -} -inline NSString *JS::NativeShareModule::SpecShareContent::message() const -{ - id const p = _v[@"message"]; - return RCTBridgingToOptionalString(p); -} - -inline JS::NativeSourceCode::Constants::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - auto scriptURL = i.scriptURL.get(); - d[@"scriptURL"] = scriptURL; - return d; -}) {} -inline JS::NativeSourceCode::Constants::Builder::Builder(Constants i) : _factory(^{ - return i.unsafeRawValue(); -}) {} -inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(const Input i) : _factory(^{ - NSMutableDictionary *d = [NSMutableDictionary new]; - auto HEIGHT = i.HEIGHT.get(); - d[@"HEIGHT"] = @(HEIGHT); - auto DEFAULT_BACKGROUND_COLOR = i.DEFAULT_BACKGROUND_COLOR; - d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.has_value() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil; - return d; -}) {} -inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{ - return i.unsafeRawValue(); -}) {} - - -inline id _Nullable JS::NativeWebSocketModule::SpecConnectOptions::headers() const -{ - id const p = _v[@"headers"]; - return p; -} diff --git a/third-party-podspecs/RCT-Folly.podspec.json b/third-party-podspecs/RCT-Folly.podspec.json deleted file mode 100644 index 8bfab9a7e2..0000000000 --- a/third-party-podspecs/RCT-Folly.podspec.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "name": "RCT-Folly", - "version": "2021.07.22.00", - "license": { - "type": "Apache License, Version 2.0" - }, - "homepage": "https://github.com/facebook/folly", - "summary": "An open-source C++ library developed and used at Facebook.", - "authors": "Facebook", - "source": { - "git": "https://github.com/facebook/folly.git", - "tag": "v2021.07.22.00" - }, - "module_name": "folly", - "header_mappings_dir": ".", - "dependencies": { - "boost": [], - "DoubleConversion": [], - "glog": [], - "fmt": [ - "~> 6.2.1" - ] - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_PTHREAD=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation -faligned-new", - "source_files": [ - "folly/String.cpp", - "folly/Conv.cpp", - "folly/Demangle.cpp", - "folly/FileUtil.cpp", - "folly/Format.cpp", - "folly/lang/SafeAssert.cpp", - "folly/lang/ToAscii.cpp", - "folly/ScopeGuard.cpp", - "folly/Unicode.cpp", - "folly/dynamic.cpp", - "folly/json.cpp", - "folly/json_pointer.cpp", - "folly/container/detail/F14Table.cpp", - "folly/detail/Demangle.cpp", - "folly/detail/UniqueInstance.cpp", - "folly/hash/SpookyHashV2.cpp", - "folly/lang/Assume.cpp", - "folly/lang/CString.cpp", - "folly/lang/Exception.cpp", - "folly/memory/detail/MallocImpl.cpp", - "folly/net/NetOps.cpp", - "folly/portability/SysUio.cpp", - "folly/system/ThreadId.h", - "folly/system/ThreadId.cpp", - "folly/*.h", - "folly/container/*.h", - "folly/container/detail/*.h", - "folly/detail/*.h", - "folly/functional/*.h", - "folly/hash/*.h", - "folly/lang/*.h", - "folly/memory/*.h", - "folly/memory/detail/*.h", - "folly/net/*.h", - "folly/net/detail/*.h", - "folly/portability/*.h" - ], - "preserve_paths": [ - "folly/*.h", - "folly/container/*.h", - "folly/container/detail/*.h", - "folly/detail/*.h", - "folly/functional/*.h", - "folly/hash/*.h", - "folly/lang/*.h", - "folly/memory/*.h", - "folly/memory/detail/*.h", - "folly/net/*.h", - "folly/net/detail/*.h", - "folly/portability/*.h" - ], - "libraries": "c++abi", - "pod_target_xcconfig": { - "USE_HEADERMAP": "NO", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "HEADER_SEARCH_PATHS": "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/libevent/include/\" \"$(PODS_ROOT)/fmt/include\"", - "OTHER_LDFLAGS": "\"-Wl,-U,_jump_fcontext\" \"-Wl,-U,_make_fcontext\"" - }, - "user_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/boost\"" - }, - "default_subspecs": "Default", - "platforms": { - "ios": "9.0" - }, - "subspecs": [ - { - "name": "Default" - }, - { - "name": "Fabric", - "source_files": [ - "folly/SharedMutex.cpp", - "folly/concurrency/CacheLocality.cpp", - "folly/detail/Futex.cpp", - "folly/synchronization/ParkingLot.cpp", - "folly/portability/Malloc.cpp", - "folly/concurrency/CacheLocality.h", - "folly/synchronization/ParkingLot.h", - "folly/synchronization/SanitizeThread.h", - "folly/system/ThreadId.h" - ], - "preserve_paths": [ - "folly/concurrency/CacheLocality.h", - "folly/synchronization/ParkingLot.h", - "folly/synchronization/SanitizeThread.h", - "folly/system/ThreadId.h" - ] - }, - { - "name": "Futures", - "dependencies": { - "libevent": [] - }, - "pod_target_xcconfig": { - "HEADER_SEARCH_PATHS": [ - "$(inherited)", - "$(PODS_ROOT)/Headers/Public/libevent/event" - ] - }, - "source_files": [ - "folly/futures/*.{h,cpp}", - "folly/futures/detail/*.{h,cpp}", - "folly/executors/*.{h,cpp}", - "folly/executors/thread_factory/{NamedThreadFactory,ThreadFactory}.{h,cpp}", - "folly/executors/task_queue/{BlockingQueue,UnboundedBlockingQueue,LifoSemMPMCQueue,PriorityUnboundedBlockingQueue,PriorityLifoSemMPMCQueue}.{h,cpp}", - "folly/concurrency/*.{h,cpp}", - "folly/system/{ThreadId,ThreadName,HardwareConcurrency}.{h,cpp}", - "folly/synchronization/*.{h,cpp}", - "folly/synchronization/detail/*.{h,cpp}", - "folly/Try.cpp", - "folly/concurrency/CacheLocality.cpp", - "folly/experimental/{ExecutionObserver,ReadMostlySharedPtr,SingleWriterFixedHashMap,TLRefCount}.{h,cpp}", - "folly/io/async/{AtomicNotificationQueue,AtomicNotificationQueue-inl,AsyncTimeout,DelayedDestruction,DelayedDestructionBase,EventBase,EventBaseLocal,EventBaseManager,EventBaseAtomicNotificationQueue,EventBaseAtomicNotificationQueue-inl,EventBaseBackendBase,EventHandler,EventUtil,HHWheelTimer,HHWheelTimer-fwd,NotificationQueue,Request,TimeoutManager,VirtualEventBase}.{h,cpp}", - "folly/io/{Cursor,Cursor-inl,IOBuf,IOBufQueue}.{h,cpp}", - "folly/tracing/StaticTracepoint.{h,cpp}", - "folly/tracing/AsyncStack.{h,cpp}", - "folly/tracing/AsyncStack-inl.h", - "folly/{Executor,ExceptionString,ExceptionWrapper,ExceptionWrapper-inl,FileUtil,Singleton,SharedMutex}.{h,cpp}", - "folly/detail/{AsyncTrace,AtFork,Futex,Futex-inl,MemoryIdler,SingletonStackTrace,StaticSingletonManager,ThreadLocalDetail}.{h,cpp}", - "folly/lang/SafeAssert.{h,cpp}", - "folly/memory/MallctlHelper.{h,cpp}", - "folly/portability/{GFlags,SysUio}.{h,cpp}", - "folly/portability/SysMembarrier.cpp", - "folly/chrono/Hardware.{h,cpp}", - "folly/experimental/coro/Traits.{h,cpp}", - "folly/fibers/*.{h,cpp}", - "folly/experimental/coro/Coroutine.{h,cpp}", - "folly/fibers/Baton-inl.h", - "folly/experimental/**/*.h", - "folly/system/Pid.{h,cpp}" - ] - } - ], - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/RCTRequired.podspec.json b/third-party-podspecs/RCTRequired.podspec.json deleted file mode 100644 index 092802dafe..0000000000 --- a/third-party-podspecs/RCTRequired.podspec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "RCTRequired", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "**/*.{c,h,m,mm,cpp}", - "header_dir": "RCTRequired", - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/RCTRequired\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/RCTTypeSafety.podspec.json b/third-party-podspecs/RCTTypeSafety.podspec.json deleted file mode 100644 index d4b59667cb..0000000000 --- a/third-party-podspecs/RCTTypeSafety.podspec.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "RCTTypeSafety", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "**/*.{c,h,m,mm,cpp}", - "header_dir": "RCTTypeSafety", - "pod_target_xcconfig": { - "USE_HEADERMAP": "YES", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "HEADER_SEARCH_PATHS": "\"$(PODS_TARGET_SRCROOT)/Libraries/TypeSafety\"" - }, - "dependencies": { - "FBLazyVector": [ - "0.71.11" - ], - "RCTRequired": [ - "0.71.11" - ], - "React-Core": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/TypeSafety\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-Codegen.podspec.json b/third-party-podspecs/React-Codegen.podspec.json deleted file mode 100644 index 8e1d8afd13..0000000000 --- a/third-party-podspecs/React-Codegen.podspec.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "React-Codegen", - "version": "0.71.11", - "summary": "Temp pod for generated files for React Native", - "homepage": "https://facebook.com/", - "license": "Unlicense", - "authors": "Facebook", - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation -Wno-nullability-completeness -std=c++17", - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "header_mappings_dir": "./", - "platforms": { - "ios": "12.4" - }, - "source_files": "third-party-podspecs/FBReactNativeSpec/**/*.{c,h,m,mm,cpp}", - "pod_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"$(PODS_ROOT)/Headers/Private/React-Fabric\" \"$(PODS_ROOT)/Headers/Private/React-RCTFabric\"" - }, - "dependencies": { - "FBReactNativeSpec": [], - "React-jsiexecutor": [], - "RCT-Folly": [], - "RCTRequired": [], - "RCTTypeSafety": [], - "React-Core": [], - "React-jsi": [], - "ReactCommon/turbomodule/bridging": [], - "ReactCommon/turbomodule/core": [], - "hermes-engine": [] - } -} diff --git a/third-party-podspecs/React-Core.podspec.json b/third-party-podspecs/React-Core.podspec.json deleted file mode 100644 index 3f9e02354b..0000000000 --- a/third-party-podspecs/React-Core.podspec.json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "name": "React-Core", - "version": "0.71.11", - "summary": "The core of React Native.", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "resource_bundles": { - "AccessibilityResources": [ - "React/AccessibilityResources/*.lproj" - ] - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation", - "header_dir": "React", - "frameworks": "JavaScriptCore", - "pod_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/FlipperKit\" \"$(PODS_ROOT)/Headers/Public/ReactCommon\" \"$(PODS_ROOT)/Headers/Public/React-RCTFabric\"", - "DEFINES_MODULE": "YES", - "GCC_PREPROCESSOR_DEFINITIONS": "RCT_METRO_PORT=${RCT_METRO_PORT}", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17" - }, - "user_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/Headers/Private/React-Core\"" - }, - "default_subspecs": "Default", - "dependencies": { - "RCT-Folly": [ - "2021.07.22.00" - ], - "React-cxxreact": [ - "0.71.11" - ], - "React-perflogger": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ], - "React-jsiexecutor": [ - "0.71.11" - ], - "Yoga": [], - "glog": [], - "React-hermes": [], - "hermes-engine": [] - }, - "subspecs": [ - { - "name": "Default", - "source_files": "React/**/*.{c,h,m,mm,S,cpp}", - "exclude_files": [ - "React/CoreModules/**/*", - "React/DevSupport/**/*", - "React/Fabric/**/*", - "React/FBReactNativeSpec/**/*", - "React/Tests/**/*", - "React/Inspector/**/*", - "React/CxxBridge/JSCExecutorFactory.{h,mm}" - ], - "private_header_files": "React/Cxx*/*.h" - }, - { - "name": "DevSupport", - "source_files": [ - "React/DevSupport/*.{h,mm,m}", - "React/Inspector/*.{h,mm,m}" - ], - "dependencies": { - "React-Core/Default": [ - "0.71.11" - ], - "React-Core/RCTWebSocket": [ - "0.71.11" - ], - "React-jsinspector": [ - "0.71.11" - ] - } - }, - { - "name": "RCTWebSocket", - "source_files": "Libraries/WebSocket/*.{h,m}", - "dependencies": { - "React-Core/Default": [ - "0.71.11" - ] - } - }, - { - "name": "CoreModulesHeaders", - "source_files": "React/CoreModules/**/*.h", - "dependencies": { - "React-Core/Default": [] - } - }, - { - "name": "RCTActionSheetHeaders", - "source_files": "Libraries/ActionSheetIOS/*.h", - "dependencies": { - "React-Core/Default": [] - } - }, - { - "name": "RCTAnimationHeaders", - "source_files": "Libraries/NativeAnimation/{Drivers/*,Nodes/*,*}.{h}", - "dependencies": { - "React-Core/Default": [] - } - }, - { - "name": "RCTBlobHeaders", - "source_files": "Libraries/Blob/{RCTBlobManager,RCTFileReaderModule}.h", - "dependencies": { - "React-Core/Default": [] - } - }, - { - "name": "RCTImageHeaders", - "source_files": "Libraries/Image/*.h", - "dependencies": { - "React-Core/Default": [] - } - }, - { - "name": "RCTLinkingHeaders", - "source_files": "Libraries/LinkingIOS/*.h", - "dependencies": { - "React-Core/Default": [] - } - }, - { - "name": "RCTNetworkHeaders", - "source_files": "Libraries/Network/*.h", - "dependencies": { - "React-Core/Default": [] - } - }, - { - "name": "RCTPushNotificationHeaders", - "source_files": "Libraries/PushNotificationIOS/*.h", - "dependencies": { - "React-Core/Default": [] - } - }, - { - "name": "RCTSettingsHeaders", - "source_files": "Libraries/Settings/*.h", - "dependencies": { - "React-Core/Default": [] - } - }, - { - "name": "RCTTextHeaders", - "source_files": "Libraries/Text/**/*.h", - "dependencies": { - "React-Core/Default": [] - } - }, - { - "name": "RCTVibrationHeaders", - "source_files": "Libraries/Vibration/*.h", - "dependencies": { - "React-Core/Default": [] - } - } - ], - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/.\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-CoreModules.podspec.json b/third-party-podspecs/React-CoreModules.podspec.json deleted file mode 100644 index a341208986..0000000000 --- a/third-party-podspecs/React-CoreModules.podspec.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "React-CoreModules", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-nullability-completeness", - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "**/*.{c,m,mm,cpp}", - "header_dir": "CoreModules", - "pod_target_xcconfig": { - "USE_HEADERMAP": "YES", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "HEADER_SEARCH_PATHS": "\"$(PODS_TARGET_SRCROOT)/React/CoreModules\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Codegen/React_Codegen.framework/Headers\"" - }, - "dependencies": { - "React-Codegen": [ - "0.71.11" - ], - "RCT-Folly": [ - "2021.07.22.00" - ], - "RCTTypeSafety": [ - "0.71.11" - ], - "React-Core/CoreModulesHeaders": [ - "0.71.11" - ], - "React-RCTImage": [ - "0.71.11" - ], - "ReactCommon/turbomodule/core": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ], - "React-RCTBlob": [] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/React/CoreModules\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-RCTActionSheet.podspec.json b/third-party-podspecs/React-RCTActionSheet.podspec.json deleted file mode 100644 index 8cf65ceaf2..0000000000 --- a/third-party-podspecs/React-RCTActionSheet.podspec.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "React-RCTActionSheet", - "version": "0.71.11", - "summary": "An API for displaying iOS action sheets and share sheets.", - "homepage": "https://reactnative.dev/", - "documentation_url": "https://reactnative.dev/docs/actionsheetios", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "*.{m}", - "preserve_paths": [ - "package.json", - "LICENSE", - "LICENSE-docs" - ], - "header_dir": "RCTActionSheet", - "dependencies": { - "React-Core/RCTActionSheetHeaders": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/ActionSheetIOS\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-RCTAnimation.podspec.json b/third-party-podspecs/React-RCTAnimation.podspec.json deleted file mode 100644 index 8226b9e207..0000000000 --- a/third-party-podspecs/React-RCTAnimation.podspec.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "React-RCTAnimation", - "version": "0.71.11", - "summary": "A native driver for the Animated API.", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-nullability-completeness", - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "**/*.{h,m,mm}", - "preserve_paths": [ - "package.json", - "LICENSE", - "LICENSE-docs" - ], - "header_dir": "RCTAnimation", - "pod_target_xcconfig": { - "USE_HEADERMAP": "YES", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Codegen/React_Codegen.framework/Headers\"" - }, - "dependencies": { - "RCT-Folly": [ - "2021.07.22.00" - ], - "React-Codegen": [ - "0.71.11" - ], - "RCTTypeSafety": [ - "0.71.11" - ], - "ReactCommon/turbomodule/core": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ], - "React-Core/RCTAnimationHeaders": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/NativeAnimation\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-RCTAppDelegate.podspec.json b/third-party-podspecs/React-RCTAppDelegate.podspec.json deleted file mode 100644 index 9bb043c99b..0000000000 --- a/third-party-podspecs/React-RCTAppDelegate.podspec.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "React-RCTAppDelegate", - "version": "0.71.11", - "summary": "An utility library to simplify common operations for the New Architecture", - "homepage": "https://reactnative.dev/", - "documentation_url": "https://reactnative.dev/docs/actionsheetios", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "**/*.{c,h,m,mm,S,cpp}", - "compiler_flags": "$(inherited) -DRN_FABRIC_ENABLED -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1", - "pod_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/Headers/Private/React-Core\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/FlipperKit\" \"$(PODS_ROOT)/Headers/Public/ReactCommon\" \"$(PODS_ROOT)/Headers/Public/React-RCTFabric\"", - "OTHER_CPLUSPLUSFLAGS": "$(inherited) -DRN_FABRIC_ENABLED -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17" - }, - "user_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/Headers/Private/React-Core\"" - }, - "dependencies": { - "React-Core": [], - "RCT-Folly": [], - "RCTRequired": [], - "RCTTypeSafety": [], - "ReactCommon/turbomodule/core": [] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/AppDelegate\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-RCTBlob.podspec.json b/third-party-podspecs/React-RCTBlob.podspec.json deleted file mode 100644 index 201db7cdcf..0000000000 --- a/third-party-podspecs/React-RCTBlob.podspec.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "React-RCTBlob", - "version": "0.71.11", - "summary": "An API for displaying iOS action sheets and share sheets.", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-nullability-completeness", - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "*.{h,m,mm}", - "preserve_paths": [ - "package.json", - "LICENSE", - "LICENSE-docs" - ], - "header_dir": "RCTBlob", - "pod_target_xcconfig": { - "USE_HEADERMAP": "YES", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Codegen/React_Codegen.framework/Headers\"" - }, - "dependencies": { - "RCT-Folly": [ - "2021.07.22.00" - ], - "React-Codegen": [ - "0.71.11" - ], - "ReactCommon/turbomodule/core": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ], - "React-Core/RCTBlobHeaders": [ - "0.71.11" - ], - "React-Core/RCTWebSocket": [ - "0.71.11" - ], - "React-RCTNetwork": [ - "0.71.11" - ], - "hermes-engine": [] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/Blob\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-RCTImage.podspec.json b/third-party-podspecs/React-RCTImage.podspec.json deleted file mode 100644 index cce003b910..0000000000 --- a/third-party-podspecs/React-RCTImage.podspec.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "React-RCTImage", - "version": "0.71.11", - "summary": "A React component for displaying different types of images.", - "homepage": "https://reactnative.dev/", - "documentation_url": "https://reactnative.dev/docs/image", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-nullability-completeness", - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "*.{m,mm}", - "preserve_paths": [ - "package.json", - "LICENSE", - "LICENSE-docs" - ], - "header_dir": "RCTImage", - "pod_target_xcconfig": { - "USE_HEADERMAP": "YES", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Codegen/React_Codegen.framework/Headers\"" - }, - "dependencies": { - "RCT-Folly": [ - "2021.07.22.00" - ], - "React-Codegen": [ - "0.71.11" - ], - "RCTTypeSafety": [ - "0.71.11" - ], - "ReactCommon/turbomodule/core": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ], - "React-Core/RCTImageHeaders": [ - "0.71.11" - ], - "React-RCTNetwork": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/Image\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-RCTLinking.podspec.json b/third-party-podspecs/React-RCTLinking.podspec.json deleted file mode 100644 index c9a2e96471..0000000000 --- a/third-party-podspecs/React-RCTLinking.podspec.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "React-RCTLinking", - "version": "0.71.11", - "summary": "A general interface to interact with both incoming and outgoing app links.", - "homepage": "https://reactnative.dev/", - "documentation_url": "https://reactnative.dev/docs/linking", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-nullability-completeness", - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "*.{m,mm}", - "preserve_paths": [ - "package.json", - "LICENSE", - "LICENSE-docs" - ], - "header_dir": "RCTLinking", - "pod_target_xcconfig": { - "USE_HEADERMAP": "YES", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Codegen/React_Codegen.framework/Headers\"" - }, - "dependencies": { - "React-Codegen": [ - "0.71.11" - ], - "React-Core/RCTLinkingHeaders": [ - "0.71.11" - ], - "ReactCommon/turbomodule/core": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/LinkingIOS\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-RCTNetwork.podspec.json b/third-party-podspecs/React-RCTNetwork.podspec.json deleted file mode 100644 index ddb5e0221b..0000000000 --- a/third-party-podspecs/React-RCTNetwork.podspec.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "React-RCTNetwork", - "version": "0.71.11", - "summary": "The networking library of React Native.", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-nullability-completeness", - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "*.{m,mm}", - "preserve_paths": [ - "package.json", - "LICENSE", - "LICENSE-docs" - ], - "header_dir": "RCTNetwork", - "pod_target_xcconfig": { - "USE_HEADERMAP": "YES", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Codegen/React_Codegen.framework/Headers\"" - }, - "frameworks": "MobileCoreServices", - "dependencies": { - "RCT-Folly": [ - "2021.07.22.00" - ], - "React-Codegen": [ - "0.71.11" - ], - "RCTTypeSafety": [ - "0.71.11" - ], - "ReactCommon/turbomodule/core": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ], - "React-Core/RCTNetworkHeaders": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/Network\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-RCTPushNotification.podspec.json b/third-party-podspecs/React-RCTPushNotification.podspec.json deleted file mode 100644 index c65154b60f..0000000000 --- a/third-party-podspecs/React-RCTPushNotification.podspec.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "React-RCTPushNotification", - "version": "0.71.11", - "summary": "A library for handling push notifications for your app, including permission handling and icon badge number.", - "homepage": "https://reactnative.dev/", - "documentation_url": "https://reactnative.dev/docs/pushnotificationios", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-nullability-completeness", - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "*.{m,mm}", - "preserve_paths": [ - "package.json", - "LICENSE", - "LICENSE-docs" - ], - "header_dir": "RCTPushNotification", - "pod_target_xcconfig": { - "USE_HEADERMAP": "YES", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Codegen/React_Codegen.framework/Headers\"" - }, - "frameworks": "UserNotifications", - "dependencies": { - "React-Codegen": [ - "0.71.11" - ], - "RCTTypeSafety": [ - "0.71.11" - ], - "React-Core/RCTPushNotificationHeaders": [ - "0.71.11" - ], - "ReactCommon/turbomodule/core": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/PushNotificationIOS\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-RCTSettings.podspec.json b/third-party-podspecs/React-RCTSettings.podspec.json deleted file mode 100644 index 5239e04899..0000000000 --- a/third-party-podspecs/React-RCTSettings.podspec.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "React-RCTSettings", - "version": "0.71.11", - "summary": "A wrapper for NSUserDefaults, a persistent key-value store available only on iOS.", - "homepage": "https://reactnative.dev/", - "documentation_url": "https://reactnative.dev/docs/settings", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-nullability-completeness", - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "*.{m,mm}", - "preserve_paths": [ - "package.json", - "LICENSE", - "LICENSE-docs" - ], - "header_dir": "RCTSettings", - "pod_target_xcconfig": { - "USE_HEADERMAP": "YES", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Codegen/React_Codegen.framework/Headers\"" - }, - "dependencies": { - "RCT-Folly": [ - "2021.07.22.00" - ], - "React-Codegen": [ - "0.71.11" - ], - "RCTTypeSafety": [ - "0.71.11" - ], - "ReactCommon/turbomodule/core": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ], - "React-Core/RCTSettingsHeaders": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/Settings\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-RCTText.podspec.json b/third-party-podspecs/React-RCTText.podspec.json deleted file mode 100644 index e0171bfb1a..0000000000 --- a/third-party-podspecs/React-RCTText.podspec.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "React-RCTText", - "version": "0.71.11", - "summary": "A React component for displaying text.", - "homepage": "https://reactnative.dev/", - "documentation_url": "https://reactnative.dev/docs/text", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "**/*.{h,m}", - "preserve_paths": [ - "package.json", - "LICENSE", - "LICENSE-docs" - ], - "header_dir": "RCTText", - "dependencies": { - "React-Core/RCTTextHeaders": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/Text\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-RCTVibration.podspec.json b/third-party-podspecs/React-RCTVibration.podspec.json deleted file mode 100644 index 090d7ac37d..0000000000 --- a/third-party-podspecs/React-RCTVibration.podspec.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "React-RCTVibration", - "version": "0.71.11", - "summary": "An API for controlling the vibration hardware of the device.", - "homepage": "https://reactnative.dev/", - "documentation_url": "https://reactnative.dev/docs/vibration", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-nullability-completeness", - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "*.{m,mm}", - "preserve_paths": [ - "package.json", - "LICENSE", - "LICENSE-docs" - ], - "header_dir": "RCTVibration", - "pod_target_xcconfig": { - "USE_HEADERMAP": "YES", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Codegen/React_Codegen.framework/Headers\"" - }, - "frameworks": "AudioToolbox", - "dependencies": { - "RCT-Folly": [ - "2021.07.22.00" - ], - "React-Codegen": [ - "0.71.11" - ], - "ReactCommon/turbomodule/core": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ], - "React-Core/RCTVibrationHeaders": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/Libraries/Vibration\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-callinvoker.podspec.json b/third-party-podspecs/React-callinvoker.podspec.json deleted file mode 100644 index 185f1a554b..0000000000 --- a/third-party-podspecs/React-callinvoker.podspec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "React-callinvoker", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "**/*.{cpp,h}", - "header_dir": "ReactCommon", - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/ReactCommon/callinvoker\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-cxxreact.podspec.json b/third-party-podspecs/React-cxxreact.podspec.json deleted file mode 100644 index 2f82226439..0000000000 --- a/third-party-podspecs/React-cxxreact.podspec.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "React-cxxreact", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "*.{cpp,h}", - "exclude_files": "SampleCxxModule.*", - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation", - "pod_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\"" - }, - "header_dir": "cxxreact", - "dependencies": { - "boost": [ - "1.76.0" - ], - "DoubleConversion": [], - "RCT-Folly": [ - "2021.07.22.00" - ], - "glog": [], - "React-jsinspector": [ - "0.71.11" - ], - "React-callinvoker": [ - "0.71.11" - ], - "React-runtimeexecutor": [ - "0.71.11" - ], - "React-perflogger": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ], - "React-logger": [ - "0.71.11" - ], - "hermes-engine": [] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/ReactCommon/cxxreact\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-graphics.podspec.json b/third-party-podspecs/React-graphics.podspec.json deleted file mode 100644 index a2561afd26..0000000000 --- a/third-party-podspecs/React-graphics.podspec.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "React-graphics", - "version": "0.71.11", - "summary": "Fabric for React Native.", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation", - "source_files": "**/*.{m,mm,cpp,h}", - "exclude_files": [ - "tests", - "platform/android", - "platform/cxx" - ], - "header_dir": "react/renderer/graphics", - "pod_target_xcconfig": { - "USE_HEADERMAP": "NO", - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/boost\" \"$(PODS_TARGET_SRCROOT)/../../../\" \"$(PODS_ROOT)/RCT-Folly\"" - }, - "dependencies": { - "RCT-Folly/Fabric": [ - "2021.07.22.00" - ], - "React-Core/Default": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/ReactCommon/react/renderer/graphics\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-hermes.podspec.json b/third-party-podspecs/React-hermes.podspec.json deleted file mode 100644 index f4629d907f..0000000000 --- a/third-party-podspecs/React-hermes.podspec.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "React-hermes", - "version": "0.71.11", - "summary": "Hermes engine for React Native", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "osx": "10.14", - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": [ - "executor/*.{cpp,h}", - "inspector/*.{cpp,h}", - "inspector/chrome/*.{cpp,h}", - "inspector/detail/*.{cpp,h}" - ], - "public_header_files": "executor/HermesExecutorFactory.h", - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation", - "pod_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"${PODS_ROOT}/hermes-engine/destroot/include\" \"$(PODS_TARGET_SRCROOT)/..\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/libevent/include\"", - "GCC_PREPROCESSOR_DEFINITIONS": "HERMES_ENABLE_DEBUGGER=1" - }, - "header_dir": "reacthermes", - "dependencies": { - "React-cxxreact": [ - "0.71.11" - ], - "React-jsiexecutor": [ - "0.71.11" - ], - "React-jsinspector": [ - "0.71.11" - ], - "React-perflogger": [ - "0.71.11" - ], - "RCT-Folly": [ - "2021.07.22.00" - ], - "DoubleConversion": [], - "glog": [], - "RCT-Folly/Futures": [ - "2021.07.22.00" - ], - "hermes-engine": [], - "React-jsi": [] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/ReactCommon/hermes\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-jsi.podspec.json b/third-party-podspecs/React-jsi.podspec.json deleted file mode 100644 index aa19cefa73..0000000000 --- a/third-party-podspecs/React-jsi.podspec.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "React-jsi", - "version": "0.71.11", - "summary": "JavaScript Interface layer for React Native", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "header_dir": "jsi", - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation", - "pod_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\"" - }, - "dependencies": { - "boost": [ - "1.76.0" - ], - "DoubleConversion": [], - "RCT-Folly": [ - "2021.07.22.00" - ], - "glog": [], - "hermes-engine": [] - }, - "source_files": "jsi/JSIDynamic.{cpp,h}", - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/ReactCommon/jsi\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-jsiexecutor.podspec.json b/third-party-podspecs/React-jsiexecutor.podspec.json deleted file mode 100644 index af3e0e4c82..0000000000 --- a/third-party-podspecs/React-jsiexecutor.podspec.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "React-jsiexecutor", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "jsireact/*.{cpp,h}", - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation", - "pod_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\"" - }, - "header_dir": "jsireact", - "dependencies": { - "React-cxxreact": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ], - "React-perflogger": [ - "0.71.11" - ], - "RCT-Folly": [ - "2021.07.22.00" - ], - "DoubleConversion": [], - "glog": [], - "hermes-engine": [] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/ReactCommon/jsiexecutor\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-jsinspector.podspec.json b/third-party-podspecs/React-jsinspector.podspec.json deleted file mode 100644 index b3f60f5b41..0000000000 --- a/third-party-podspecs/React-jsinspector.podspec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "React-jsinspector", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "*.{cpp,h}", - "header_dir": "jsinspector", - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/ReactCommon/jsinspector\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-logger.podspec.json b/third-party-podspecs/React-logger.podspec.json deleted file mode 100644 index d1d9cee4f3..0000000000 --- a/third-party-podspecs/React-logger.podspec.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "React-logger", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "*.{cpp,h}", - "exclude_files": "SampleCxxModule.*", - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation", - "pod_target_xcconfig": { - "HEADER_SEARCH_PATHS": "" - }, - "header_dir": "logger", - "dependencies": { - "glog": [] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/ReactCommon/logger\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-perflogger.podspec.json b/third-party-podspecs/React-perflogger.podspec.json deleted file mode 100644 index 37d395dd4e..0000000000 --- a/third-party-podspecs/React-perflogger.podspec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "React-perflogger", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "**/*.{cpp,h}", - "header_dir": "reactperflogger", - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/ReactCommon/reactperflogger\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React-runtimeexecutor.podspec.json b/third-party-podspecs/React-runtimeexecutor.podspec.json deleted file mode 100644 index 3b5fc88671..0000000000 --- a/third-party-podspecs/React-runtimeexecutor.podspec.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "React-runtimeexecutor", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "source_files": "**/*.{cpp,h}", - "header_dir": "ReactCommon", - "dependencies": { - "React-jsi": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/ReactCommon/runtimeexecutor\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/React.podspec.json b/third-party-podspecs/React.podspec.json deleted file mode 100644 index 671812ec29..0000000000 --- a/third-party-podspecs/React.podspec.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "React", - "version": "0.71.11", - "summary": "A framework for building native apps using React", - "description": "React Native apps are built using the React JS\nframework, and render directly to native UIKit\nelements using a fully asynchronous architecture.\nThere is no browser and no HTML. We have picked what\nwe think is the best set of features from these and\nother technologies to build what we hope to become\nthe best product development framework available,\nwith an emphasis on iteration speed, developer\ndelight, continuity of technology, and absolutely\nbeautiful and fast products with no compromises in\nquality or capability.", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "preserve_paths": [ - "package.json", - "LICENSE", - "LICENSE-docs" - ], - "cocoapods_version": ">= 1.10.1", - "dependencies": { - "React-Core": [ - "0.71.11" - ], - "React-Core/DevSupport": [ - "0.71.11" - ], - "React-Core/RCTWebSocket": [ - "0.71.11" - ], - "React-RCTActionSheet": [ - "0.71.11" - ], - "React-RCTAnimation": [ - "0.71.11" - ], - "React-RCTBlob": [ - "0.71.11" - ], - "React-RCTImage": [ - "0.71.11" - ], - "React-RCTLinking": [ - "0.71.11" - ], - "React-RCTNetwork": [ - "0.71.11" - ], - "React-RCTSettings": [ - "0.71.11" - ], - "React-RCTText": [ - "0.71.11" - ], - "React-RCTVibration": [ - "0.71.11" - ] - }, - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/.\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/ReactCommon.podspec.json b/third-party-podspecs/ReactCommon.podspec.json deleted file mode 100644 index 79229a384f..0000000000 --- a/third-party-podspecs/ReactCommon.podspec.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "name": "ReactCommon", - "module_name": "ReactCommon", - "version": "0.71.11", - "summary": "-", - "homepage": "https://reactnative.dev/", - "license": "MIT", - "authors": "Facebook, Inc. and its affiliates", - "platforms": { - "ios": "12.4" - }, - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "header_dir": "ReactCommon", - "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments -Wno-documentation", - "pod_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\"", - "USE_HEADERMAP": "YES", - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "GCC_WARN_PEDANTIC": "YES" - }, - "dependencies": { - "React-logger": [ - "0.71.11" - ] - }, - "subspecs": [ - { - "name": "react_debug_core", - "source_files": "react/debug/*.{cpp,h}" - }, - { - "name": "turbomodule", - "dependencies": { - "React-callinvoker": [ - "0.71.11" - ], - "React-perflogger": [ - "0.71.11" - ], - "React-Core": [ - "0.71.11" - ], - "React-cxxreact": [ - "0.71.11" - ], - "React-jsi": [ - "0.71.11" - ], - "RCT-Folly": [ - "2021.07.22.00" - ], - "DoubleConversion": [], - "glog": [], - "hermes-engine": [] - }, - "subspecs": [ - { - "name": "bridging", - "dependencies": { - "React-jsi": [ - "0.71.11" - ], - "hermes-engine": [] - }, - "source_files": "react/bridging/**/*.{cpp,h}", - "exclude_files": "react/bridging/tests", - "header_dir": "react/bridging", - "pod_target_xcconfig": { - "HEADER_SEARCH_PATHS": "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/RCT-Folly\"" - } - }, - { - "name": "core", - "source_files": [ - "react/nativemodule/core/ReactCommon/**/*.{cpp,h}", - "react/nativemodule/core/platform/ios/**/*.{mm,cpp,h}" - ], - "exclude_files": "react/nativemodule/core/ReactCommon/LongLivedObject.h" - }, - { - "name": "samples", - "source_files": [ - "react/nativemodule/samples/ReactCommon/**/*.{cpp,h}", - "react/nativemodule/samples/platform/ios/**/*.{mm,cpp,h}" - ], - "dependencies": { - "ReactCommon/turbomodule/core": [ - "0.71.11" - ] - } - } - ] - } - ], - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/ReactCommon\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/Yoga.podspec.json b/third-party-podspecs/Yoga.podspec.json deleted file mode 100644 index 1da8da4335..0000000000 --- a/third-party-podspecs/Yoga.podspec.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "Yoga", - "version": "1.14.0", - "license": { - "type": "MIT" - }, - "homepage": "https://yogalayout.com", - "documentation_url": "https://yogalayout.com/docs/", - "summary": "Yoga is a cross-platform layout engine which implements Flexbox.", - "description": "Yoga is a cross-platform layout engine enabling maximum collaboration within your team by implementing an API many designers are familiar with, and opening it up to developers across different platforms.", - "authors": "Facebook", - "source": { - "git": "https://github.com/facebook/react-native.git", - "tag": "v0.71.11" - }, - "module_name": "yoga", - "header_dir": "yoga", - "requires_arc": false, - "pod_target_xcconfig": { - "DEFINES_MODULE": "YES" - }, - "compiler_flags": [ - "-fno-omit-frame-pointer", - "-fexceptions", - "-Wall", - "-Werror", - "-std=c++17", - "-fPIC" - ], - "platforms": { - "ios": "12.4" - }, - "source_files": "yoga/**/*.{cpp,h}", - "public_header_files": "yoga/*.h", - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/ReactCommon/yoga\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/boost.podspec.json b/third-party-podspecs/boost.podspec.json deleted file mode 100644 index 9f692b2b01..0000000000 --- a/third-party-podspecs/boost.podspec.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "boost", - "version": "1.76.0", - "license": { - "type": "Boost Software License", - "file": "LICENSE_1_0.txt" - }, - "homepage": "http://www.boost.org", - "summary": "Boost provides free peer-reviewed portable C++ source libraries.", - "authors": "Rene Rivera", - "source": { - "http": "https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2", - "sha256": "f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41" - }, - "platforms": { - "ios": "11.0" - }, - "requires_arc": false, - "module_name": "boost", - "header_dir": "boost", - "preserve_paths": "boost", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/glog.podspec.json b/third-party-podspecs/glog.podspec.json deleted file mode 100644 index 353743dbc4..0000000000 --- a/third-party-podspecs/glog.podspec.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "glog", - "version": "0.3.5", - "license": { - "type": "Google", - "file": "COPYING" - }, - "homepage": "https://github.com/google/glog", - "summary": "Google logging module", - "authors": "Google", - "prepare_command": "#!/bin/bash\n# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nset -e\n\nPLATFORM_NAME=\"${PLATFORM_NAME:-iphoneos}\"\nCURRENT_ARCH=\"${CURRENT_ARCH}\"\n\nif [ -z \"$CURRENT_ARCH\" ] || [ \"$CURRENT_ARCH\" == \"undefined_arch\" ]; then\n # Xcode 10 beta sets CURRENT_ARCH to \"undefined_arch\", this leads to incorrect linker arg.\n # it's better to rely on platform name as fallback because architecture differs between simulator and device\n\n if [[ \"$PLATFORM_NAME\" == *\"simulator\"* ]]; then\n CURRENT_ARCH=\"x86_64\"\n else\n CURRENT_ARCH=\"arm64\"\n fi\nfi\n\n# @lint-ignore-every TXT2 Tab Literal\nif [ \"$CURRENT_ARCH\" == \"arm64\" ]; then\n cat <<\\EOF >>fix_glog_0.3.5_apple_silicon.patch\ndiff --git a/config.sub b/config.sub\nindex 1761d8b..43fa2e8 100755\n--- a/config.sub\n+++ b/config.sub\n@@ -1096,6 +1096,9 @@ case $basic_machine in\n \t\tbasic_machine=z8k-unknown\n \t\tos=-sim\n \t\t;;\n+\tarm64-*)\n+\t\tbasic_machine=$(echo $basic_machine | sed 's/arm64/aarch64/')\n+\t\t;;\n \tnone)\n \t\tbasic_machine=none-none\n \t\tos=-none\nEOF\n\n patch -p1 config.sub fix_glog_0.3.5_apple_silicon.patch\nfi\n\nexport CC=\"$(xcrun -find -sdk $PLATFORM_NAME cc) -arch $CURRENT_ARCH -isysroot $(xcrun -sdk $PLATFORM_NAME --show-sdk-path)\"\nexport CXX=\"$CC\"\n\n# Remove automake symlink if it exists\nif [ -h \"test-driver\" ]; then\n rm test-driver\nfi\n\n# Manually disable gflags include to fix issue https://github.com/facebook/react-native/issues/28446\nsed -i.bak -e 's/\\@ac_cv_have_libgflags\\@/0/' src/glog/logging.h.in && rm src/glog/logging.h.in.bak\nsed -i.bak -e 's/HAVE_LIB_GFLAGS/HAVE_LIB_GFLAGS_DISABLED/' src/config.h.in && rm src/config.h.in.bak\n\n./configure --host arm-apple-darwin\n\ncat << EOF >> src/config.h\n/* Add in so we have Apple Target Conditionals */\n#ifdef __APPLE__\n#include \n#include \n#endif\n\n/* Special configuration for ucontext */\n#undef HAVE_UCONTEXT_H\n#undef PC_FROM_UCONTEXT\n#if defined(__x86_64__)\n#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip\n#elif defined(__i386__)\n#define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip\n#endif\nEOF\n\n# Prepare exported header include\nEXPORTED_INCLUDE_DIR=\"exported/glog\"\nmkdir -p exported/glog\ncp -f src/glog/log_severity.h \"$EXPORTED_INCLUDE_DIR/\"\ncp -f src/glog/logging.h \"$EXPORTED_INCLUDE_DIR/\"\ncp -f src/glog/raw_logging.h \"$EXPORTED_INCLUDE_DIR/\"\ncp -f src/glog/stl_logging.h \"$EXPORTED_INCLUDE_DIR/\"\ncp -f src/glog/vlog_is_on.h \"$EXPORTED_INCLUDE_DIR/\"", - "source": { - "git": "https://github.com/google/glog.git", - "tag": "v0.3.5" - }, - "module_name": "glog", - "header_dir": "glog", - "source_files": [ - "src/glog/*.h", - "src/demangle.cc", - "src/logging.cc", - "src/raw_logging.cc", - "src/signalhandler.cc", - "src/symbolize.cc", - "src/utilities.cc", - "src/vlog_is_on.cc" - ], - "preserve_paths": [ - "src/*.h", - "src/base/*.h" - ], - "exclude_files": "src/windows/**/*", - "compiler_flags": "-Wno-shorten-64-to-32", - "pod_target_xcconfig": { - "USE_HEADERMAP": "NO", - "HEADER_SEARCH_PATHS": "$(PODS_TARGET_SRCROOT)/src" - }, - "platforms": { - "ios": "12.4" - }, - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} diff --git a/third-party-podspecs/hermes-engine.podspec.json b/third-party-podspecs/hermes-engine.podspec.json deleted file mode 100644 index 579dfd9ebe..0000000000 --- a/third-party-podspecs/hermes-engine.podspec.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "hermes-engine", - "version": "0.71.11", - "summary": "Hermes is a small and lightweight JavaScript engine optimized for running React Native.", - "description": "Hermes is a JavaScript engine optimized for fast start-up of React Native apps. It features ahead-of-time static optimization and compact bytecode.", - "homepage": "https://hermesengine.dev", - "license": "MIT", - "authors": "Facebook", - "source": { - "http": "https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.11/react-native-artifacts-0.71.11-hermes-ios-debug.tar.gz" - }, - "platforms": { - "osx": "10.13", - "ios": "12.4" - }, - "preserve_paths": "**/*.*", - "source_files": "", - "xcconfig": { - "CLANG_CXX_LANGUAGE_STANDARD": "c++17", - "CLANG_CXX_LIBRARY": "compiler-default", - "GCC_PREPROCESSOR_DEFINITIONS": "HERMES_ENABLE_DEBUGGER=1" - }, - "subspecs": [ - { - "name": "Pre-built", - "preserve_paths": [ - "destroot/bin/*", - "**/*.{h,c,cpp}" - ], - "source_files": "destroot/include/**/*.h", - "exclude_files": [ - "destroot/include/jsi/jsi/JSIDynamic.{h,cpp}", - "destroot/include/jsi/jsi/jsilib-*.{h,cpp}" - ], - "header_mappings_dir": "destroot/include", - "ios": { - "vendored_frameworks": "destroot/Library/Frameworks/universal/hermes.xcframework" - }, - "osx": { - "vendored_frameworks": "destroot/Library/Frameworks/macosx/hermes.framework" - } - } - ], - "prepare_command": "TMP_DIR=$(mktemp -d); mv * $TMP_DIR; cp -R \"$TMP_DIR/sdks/hermes-engine\"/* . && true", - "__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary." -} From cee1a99606695fc07fc04926070b8fcbfa7d151f Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Fri, 18 Aug 2023 14:41:23 +1000 Subject: [PATCH 03/10] Read `Podfile` dependencies from `third-party-podspec` The previous approach had them hardcoded. This is better because we now have a single source of truth. Hat tip @crazytonyli, see https://github.com/wordpress-mobile/gutenberg-mobile/pull/5739#discussion_r1193227183 Notice that the only `Podfile.lock` change is in the checksum, meaning that the new logic results in the same resolved dependencies as before. --- ios-xcframework/Podfile | 65 +++++++++++++----------------------- ios-xcframework/Podfile.lock | 2 +- 2 files changed, 25 insertions(+), 42 deletions(-) diff --git a/ios-xcframework/Podfile b/ios-xcframework/Podfile index 5e52f9bd20..92c0ca8c5c 100644 --- a/ios-xcframework/Podfile +++ b/ios-xcframework/Podfile @@ -9,50 +9,11 @@ HERMES_ENABLED = ENV.fetch('HERMES_ENABLED', true) puts "[Gutenberg] Installing pods with Hermes #{HERMES_ENABLED ? 'enabled' : 'disabled'}" -# Note that the pods in this array might seem unused if you look for -# `import` statements in this codebase. However, make sure to also check -# whether they are used in the gutenberg-mobile and Gutenberg projects. -# -# Also notice that these are not all the dependencies the project uses. -# Later in the config, we call use_react_native! which fetches more. -# -# See https://github.com/wordpress-mobile/gutenberg-mobile/issues/5025 -DEPENDENCIES = %w[ - BVLinearGradient - RNCClipboard - RNCMaskedView - RNFastImage - RNGestureHandler - RNReanimated - RNSVG - RNScreens - React-jsc - react-native-blur - react-native-get-random-values - react-native-safe-area - react-native-safe-area-context - react-native-slider - react-native-video - react-native-webview -].freeze - -def gutenberg_dependencies - podspec_prefix = '..' - - computed_dependencies = DEPENDENCIES.dup - - # Use a custom RNReanimated version while we coordinate a fix upstream - computed_dependencies.delete('RNReanimated') - - computed_dependencies.delete('React-jsc') unless HERMES_ENABLED - - computed_dependencies.each do |pod_name| - pod pod_name, podspec: "#{podspec_prefix}/third-party-podspecs/#{pod_name}.podspec.json" - end - +def setup_rnreanimated_pod_from_fork # This is required to workaround an issue with RNReanimated after upgrading to version 2.17.0 rn_node_modules = File.join(Dir.pwd, '..', 'gutenberg', 'node_modules') raise "Could not find node modules at given path #{rn_node_modules}" unless File.exist? rn_node_modules + ENV['REACT_NATIVE_NODE_MODULES_DIR'] = rn_node_modules puts "[Gutenberg] Set REACT_NATIVE_NODE_MODULES_DIR env var for RNReanimated to #{rn_node_modules}" @@ -60,6 +21,28 @@ def gutenberg_dependencies pod 'RNReanimated', git: 'https://github.com/wordpress-mobile/react-native-reanimated', branch: 'wp-fork-2.17.0' end +def gutenberg_dependencies + podspec_extension = '.podspec.json' + + Dir["../third-party-podspecs/*#{podspec_extension}"].each do |podspec_path| + pod_name = File.basename(podspec_path, podspec_extension) + + # Skip the standard RNReanimated podspec because we use a custom version + # while working on an upstream fix + # + # https://github.com/software-mansion/react-native-reanimated/pull/4684 + if pod_name == 'RNReanimated' + setup_rnreanimated_pod_from_fork + next + end + + # Skip React-jsc unless using Hermes + next if pod_name == 'React-jsc' && HERMES_ENABLED == false + + pod pod_name, podspec: podspec_path + end +end + VERSION_XCCONFIG_PATH = File.join(File.expand_path(__dir__), 'Config', 'Gutenberg-Shared.xcconfig') IOS_VERSION_KEY = 'IPHONEOS_DEPLOYMENT_TARGET' APP_IOS_DEPLOYMENT_TARGET = Gem::Version.new(Xcodeproj::Config.new(VERSION_XCCONFIG_PATH).to_hash[IOS_VERSION_KEY]) diff --git a/ios-xcframework/Podfile.lock b/ios-xcframework/Podfile.lock index 796de1567b..33cd69ee4e 100644 --- a/ios-xcframework/Podfile.lock +++ b/ios-xcframework/Podfile.lock @@ -674,6 +674,6 @@ SPEC CHECKSUMS: WordPress-Aztec-iOS: 7d11d598f14c82c727c08b56bd35fbeb7dafb504 Yoga: f7decafdc5e8c125e6fa0da38a687e35238420fa -PODFILE CHECKSUM: e57cfb15c9f14803b34e0d6ec43599b66f6d5a0c +PODFILE CHECKSUM: 8f2b84cf5105963b4ef56ad18d6d64ab24334789 COCOAPODS: 1.12.1 From f865eb5bca2a063f579a9b51773450ade2cb0a6c Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Wed, 23 Aug 2023 11:34:04 +1000 Subject: [PATCH 04/10] Read XCFramework dependencies name from podspec content, not file name Co-authored-by: Tony Li See https://github.com/wordpress-mobile/gutenberg-mobile/pull/6086#discussion_r1299441132 --- ios-xcframework/Podfile | 5 ++++- ios-xcframework/Podfile.lock | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ios-xcframework/Podfile b/ios-xcframework/Podfile index 92c0ca8c5c..ef0fea28fb 100644 --- a/ios-xcframework/Podfile +++ b/ios-xcframework/Podfile @@ -1,5 +1,6 @@ # frozen_string_literal: true +require 'json' require 'xcodeproj' REACT_NATIVE_PATH = '../gutenberg/node_modules/react-native' @@ -25,7 +26,9 @@ def gutenberg_dependencies podspec_extension = '.podspec.json' Dir["../third-party-podspecs/*#{podspec_extension}"].each do |podspec_path| - pod_name = File.basename(podspec_path, podspec_extension) + pod_name = JSON.parse(File.read(podspec_path))['name'] + + raise "Could not find pod name in JSON spec at #{podspec_path}" unless pod_name # Skip the standard RNReanimated podspec because we use a custom version # while working on an upstream fix diff --git a/ios-xcframework/Podfile.lock b/ios-xcframework/Podfile.lock index 33cd69ee4e..3d9635c8df 100644 --- a/ios-xcframework/Podfile.lock +++ b/ios-xcframework/Podfile.lock @@ -674,6 +674,6 @@ SPEC CHECKSUMS: WordPress-Aztec-iOS: 7d11d598f14c82c727c08b56bd35fbeb7dafb504 Yoga: f7decafdc5e8c125e6fa0da38a687e35238420fa -PODFILE CHECKSUM: 8f2b84cf5105963b4ef56ad18d6d64ab24334789 +PODFILE CHECKSUM: f0e6aef8704c365fd09c8b348797d1d4ad51b1a6 COCOAPODS: 1.12.1 From 5cacf8fe433e4b4d89c2b8adc72d20ce4a424603 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Wed, 6 Sep 2023 16:16:07 +1000 Subject: [PATCH 05/10] Remove unused `RN_DIR` var definition --- bin/generate-podspecs.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/generate-podspecs.sh b/bin/generate-podspecs.sh index 555814cf28..65657fb76e 100755 --- a/bin/generate-podspecs.sh +++ b/bin/generate-podspecs.sh @@ -22,7 +22,7 @@ popd > /dev/null WD=$(pwd) echo "Working directory: $WD" -# Check for cocoapods & jq +# Check for CocoaPods and jq command -v pod > /dev/null || ( echo Cocoapods is required to generate podspecs; exit 1 ) command -v jq > /dev/null || ( echo jq is required to generate podspecs; exit 1 ) @@ -98,7 +98,6 @@ done # Change to the React Native directory to get relative paths for the RN podspecs pushd "$NODE_MODULES_DIR/react-native" > /dev/null -RN_DIR="./" SCRIPTS_PATH="./scripts/" CODEGEN_REPO_PATH="../packages/react-native-codegen" CODEGEN_NPM_PATH="../react-native-codegen" From 90601d3b31a4eb304d3c0684b57541978d747491 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Wed, 6 Sep 2023 16:32:34 +1000 Subject: [PATCH 06/10] Remove unnecessary pods from `generate-podspecs` script --- bin/generate-podspecs.sh | 81 ++++------------------------------------ 1 file changed, 8 insertions(+), 73 deletions(-) diff --git a/bin/generate-podspecs.sh b/bin/generate-podspecs.sh index 65657fb76e..c4d9ffbf85 100755 --- a/bin/generate-podspecs.sh +++ b/bin/generate-podspecs.sh @@ -50,8 +50,7 @@ mkdir "$DEST" NODE_MODULES_DIR="gutenberg/node_modules" # Generate the external (non-RN podspecs) -EXTERNAL_PODSPECS=$(find "$NODE_MODULES_DIR/react-native/third-party-podspecs" \ - "$NODE_MODULES_DIR/@react-native-community/blur" \ +EXTERNAL_PODSPECS=$(find "$NODE_MODULES_DIR/@react-native-community/blur" \ "$NODE_MODULES_DIR/@react-native-masked-view/masked-view" \ "$NODE_MODULES_DIR/@react-native-community/slider" \ "$NODE_MODULES_DIR/@react-native-clipboard/clipboard" \ @@ -114,7 +113,14 @@ do pod=$(basename "$podspec" .podspec) path=$(dirname "$podspec") + # The only one we need is React-jsc, all the others can be skipped. + if [[ $pod != 'React-jsc' ]]; then + echo "Skipping copying React Native $pod podspec..." + continue + fi + echo "Generating podspec for $pod with path $path" + pod ipc spec "$podspec" > "$TMP_DEST/$pod.podspec.json" # Removes message [Codegen] Found at the beginning of the file sed -i '' -e '/\[Codegen\] Found/d' "$TMP_DEST/$pod.podspec.json" @@ -132,77 +138,6 @@ do # As a last step check if podspec has a "tag" or "commit" field in "source" warn_missing_tag_commit - - # FBReactNativeSpec needs special treatment because of react-native-codegen code generation - if [[ "$pod" == "FBReactNativeSpec" ]]; then - echo " ==> Patching $pod podspec" - # First move it to its own folder - mkdir -p "$DEST/FBReactNativeSpec" - mv "$DEST/FBReactNativeSpec.podspec.json" "$DEST/FBReactNativeSpec" - - # Then we generate FBReactNativeSpec-generated.mm and FBReactNativeSpec.h files. - # They are normally generated during compile time using a Script Phase in FBReactNativeSpec added via the `use_react_native_codegen` function. - # This script is inside node_modules/react-native/scripts folder. Since we don't have the node_modules when compiling WPiOS, - # we're calling the script here manually to generate these files ahead of time. - SCHEMA_FILE="$TMP_DEST/schema.json" - NODE_BINARY="${NODE_BINARY:-$(command -v node || true)}" - - if [ -d "$CODEGEN_REPO_PATH" ]; then - CODEGEN_PATH=$(cd "$CODEGEN_REPO_PATH" && pwd) - elif [ -d "$CODEGEN_NPM_PATH" ]; then - CODEGEN_PATH=$(cd "$CODEGEN_NPM_PATH" && pwd) - else - echo "Error: Could not determine react-native-codegen location. Try running 'yarn install' or 'npm install' in your project root." 1>&2 - exit 1 - fi - - if [ ! -d "$CODEGEN_PATH/lib" ]; then - describe "Building react-native-codegen package" - bash "$CODEGEN_PATH/scripts/oss/build.sh" - fi - - # Generate React-Codegen - # A copy of codegen_utils.rb is done to modify the content within get_react_codegen_spec - # this enables getting the schema for React-Codegen in runtime by printing the content. - echo "Generating React-Codegen" - REACT_NATIVE_CODEGEN_UTILS_PATH="$SCRIPTS_PATH/cocoapods/codegen_utils.rb" - REACT_NATIVE_CODEGEN_UTILS_MODIFIED_PATH="$SCRIPTS_PATH/cocoapods/codegen_utils_modified.rb" - # Making a temp copy of codegen_utils.rb - cp $REACT_NATIVE_CODEGEN_UTILS_PATH $REACT_NATIVE_CODEGEN_UTILS_MODIFIED_PATH - # Manually add the min_ios_version_supported variable to the CodegenUtils class - # The modified script won't be able to detect min_ios_version_supported otherwise - echo " - def min_ios_version_supported - '12.4' - end - " >> "$REACT_NATIVE_CODEGEN_UTILS_MODIFIED_PATH" - # Modify the get_react_codegen_spec method to return the result using print and JSON.pretty - sed -i '' -e "s/:git => ''/:git => 'https:\/\/github.com\/facebook\/react-native.git', :tag => 'v$RN_VERSION'/" "$REACT_NATIVE_CODEGEN_UTILS_MODIFIED_PATH" - sed -i '' -e 's/return spec/print JSON.pretty_generate(spec)/' "$REACT_NATIVE_CODEGEN_UTILS_MODIFIED_PATH" - # Run get_react_codegen_spec and generate React-Codegen.podspec.json - ruby -r "./scripts/cocoapods/codegen_utils_modified.rb" -e "CodegenUtils.new.get_react_codegen_spec('$PACKAGE_JSON_PATH', hermes_enabled:$HERMES_ENABLED)" > "$DEST/React-Codegen.podspec.json" - TMP_ReactCodeGenSpec=$(mktemp) - jq '.source_files = "third-party-podspecs/FBReactNativeSpec/**/*.{c,h,m,mm,cpp}"' "$DEST/React-Codegen.podspec.json" > "$TMP_ReactCodeGenSpec" - mv "$TMP_ReactCodeGenSpec" "$DEST/React-Codegen.podspec.json" - # Remove temp copy of codegen_utils.rb - rm $REACT_NATIVE_CODEGEN_UTILS_MODIFIED_PATH - - echo "Generating schema from Flow types" - "$NODE_BINARY" "$CODEGEN_PATH/lib/cli/combine/combine-js-to-schema-cli.js" "$SCHEMA_FILE" "$SRCS_DIR" - - echo "Generating native code from schema (iOS)" - "$NODE_BINARY" "./scripts/generate-specs-cli.js" -p "ios" -s "$SCHEMA_FILE" -o "$DEST/FBReactNativeSpec" - - # Removing unneeded files - find "$DEST/FBReactNativeSpec" -type f -not -name "FBReactNativeSpec.podspec.json" -not -name "FBReactNativeSpec-generated.mm" -not -name "FBReactNativeSpec.h" -not -name "FBReactNativeSpec.h" -delete - - # Removing 'script_phases' that shouldn't be needed anymore. - # Removing 'prepare_command' that includes additional steps to create intermediate folders to keep generated files which won't be needed. - # Removing 'source.tag' as we'll use a commit hash from gutenberg-mobile instead. - TMP_FBReactNativeSpec=$(mktemp) - jq --arg COMMIT_HASH "$COMMIT_HASH" 'del(.script_phases) | del(.prepare_command) | del(.source.tag) | .source.git = "https://github.com/wordpress-mobile/gutenberg-mobile.git" | .source.commit = $COMMIT_HASH | .source.submodules = "true" | .source_files = "third-party-podspecs/FBReactNativeSpec/**/*.{c,h,m,mm,cpp}"' "$DEST/FBReactNativeSpec/FBReactNativeSpec.podspec.json" > "$TMP_FBReactNativeSpec" - mv "$TMP_FBReactNativeSpec" "$DEST/FBReactNativeSpec/FBReactNativeSpec.podspec.json" - fi done popd > /dev/null From 52d4196b5016fde6eefb72ba1493775c0c749553 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Wed, 6 Sep 2023 16:36:30 +1000 Subject: [PATCH 07/10] DRY the logic to annotate the custom podspecs with a warning --- bin/generate-podspecs.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/generate-podspecs.sh b/bin/generate-podspecs.sh index c4d9ffbf85..0aea20c909 100755 --- a/bin/generate-podspecs.sh +++ b/bin/generate-podspecs.sh @@ -16,6 +16,10 @@ function warn_missing_tag_commit() { fi } +function add_codegen_warning_to_podspec() { + jq '. + {"__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary."}' "$DEST/$pod.podspec.json" > "$TMP_SPEC" +} + # Change to the expected directory. pushd "$( dirname "$0" )" > /dev/null popd > /dev/null @@ -86,7 +90,7 @@ do # Add warning to bottom TMP_SPEC=$(mktemp) - jq '. + {"__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary."}' "$DEST/$pod.podspec.json" > "$TMP_SPEC" + add_codegen_warning_to_podspec mv "$TMP_SPEC" "$DEST/$pod.podspec.json" # As a last step check if podspec has a "tag" or "commit" field in "source" @@ -133,7 +137,7 @@ do # Add warning to bottom TMP_SPEC=$(mktemp) - jq '. + {"__WARNING!__": "This file is autogenerated by generate-podspecs.sh script. Do not modify manually. Re-run the script if necessary."}' "$DEST/$pod.podspec.json" > "$TMP_SPEC" + add_codegen_warning_to_podspec mv "$TMP_SPEC" "$DEST/$pod.podspec.json" # As a last step check if podspec has a "tag" or "commit" field in "source" From 5039d5c9935c8c625fbd030d2281822e28cbd81e Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Fri, 15 Sep 2023 14:04:45 +1000 Subject: [PATCH 08/10] Remove unused `HERMES_ENABLED` from `generate-podspecs.sh` Co-authored-by: Carlos Garcia --- bin/generate-podspecs.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/generate-podspecs.sh b/bin/generate-podspecs.sh index 0aea20c909..7ce144357e 100755 --- a/bin/generate-podspecs.sh +++ b/bin/generate-podspecs.sh @@ -107,7 +107,6 @@ CODEGEN_NPM_PATH="../react-native-codegen" PACKAGE_JSON_PATH="./package.json" SRCS_DIR=${SRCS_DIR:-$(cd "./Libraries" && pwd)} RN_VERSION=$(cat ./package.json | grep -m 1 version | sed 's/[^0-9.]//g') -HERMES_ENABLED="true" RN_PODSPECS=$(find * -type f -name "*.podspec" -not -name "React-rncore.podspec" -not -path "third-party-podspecs/*" -not -path "*Fabric*" -print) TMP_DEST=$(mktemp -d) From 5fe3b77eb4c4c644d59313fbb6c2f1d613b4b707 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Fri, 15 Sep 2023 14:13:46 +1000 Subject: [PATCH 09/10] Fix JSC vs Hermes pod inclusion logic See https://github.com/wordpress-mobile/gutenberg-mobile/pull/6086/files#r1318224598 Co-authored-by: Carlos Garcia --- ios-xcframework/Podfile | 13 +++++++++++-- ios-xcframework/Podfile.lock | 11 +---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ios-xcframework/Podfile b/ios-xcframework/Podfile index ef0fea28fb..51d9033458 100644 --- a/ios-xcframework/Podfile +++ b/ios-xcframework/Podfile @@ -39,8 +39,17 @@ def gutenberg_dependencies next end - # Skip React-jsc unless using Hermes - next if pod_name == 'React-jsc' && HERMES_ENABLED == false + # Skip React-jsc when using Hermes + # + # Context: React native supports different JavaScript engines. + # Hermes is the recommended engine, but we always have the option to switch back to JavaScriptCore (JSC). + # Of course, if we use one we don't need to add the other. + # + # See also: + # + # - https://github.com/facebook/react-native/tree/598b7ed690d908c408adea970d26382c834f5ead/packages/react-native/ReactCommon/jsc + # - https://reactnative.dev/docs/hermes + next if pod_name == 'React-jsc' && HERMES_ENABLED == true pod pod_name, podspec: podspec_path end diff --git a/ios-xcframework/Podfile.lock b/ios-xcframework/Podfile.lock index 6bcb2a026a..cadc756d9f 100644 --- a/ios-xcframework/Podfile.lock +++ b/ios-xcframework/Podfile.lock @@ -260,11 +260,6 @@ PODS: - React-jsiexecutor (= 0.71.11) - React-jsinspector (= 0.71.11) - React-perflogger (= 0.71.11) - - React-jsc (0.71.11): - - React-jsc/Fabric (= 0.71.11) - - React-jsi (= 0.71.11) - - React-jsc/Fabric (0.71.11): - - React-jsi (= 0.71.11) - React-jsi (0.71.11): - boost (= 1.76.0) - DoubleConversion @@ -461,7 +456,6 @@ DEPENDENCIES: - React-CoreModules (from `../gutenberg/node_modules/react-native/React/CoreModules`) - React-cxxreact (from `../gutenberg/node_modules/react-native/ReactCommon/cxxreact`) - React-hermes (from `../gutenberg/node_modules/react-native/ReactCommon/hermes`) - - React-jsc (from `../third-party-podspecs/React-jsc.podspec.json`) - React-jsi (from `../gutenberg/node_modules/react-native/ReactCommon/jsi`) - React-jsiexecutor (from `../gutenberg/node_modules/react-native/ReactCommon/jsiexecutor`) - React-jsinspector (from `../gutenberg/node_modules/react-native/ReactCommon/jsinspector`) @@ -540,8 +534,6 @@ EXTERNAL SOURCES: :path: "../gutenberg/node_modules/react-native/ReactCommon/cxxreact" React-hermes: :path: "../gutenberg/node_modules/react-native/ReactCommon/hermes" - React-jsc: - :podspec: "../third-party-podspecs/React-jsc.podspec.json" React-jsi: :path: "../gutenberg/node_modules/react-native/ReactCommon/jsi" React-jsiexecutor: @@ -636,7 +628,6 @@ SPEC CHECKSUMS: React-CoreModules: ffd19b082fc36b9b463fedf30955138b5426c053 React-cxxreact: 8b3dd87e3b8ea96dd4ad5c7bac8f31f1cc3da97f React-hermes: be95942c3f47fc032da1387360413f00dae0ea68 - React-jsc: 711d76870c4cdb8a0dc2dbaaf6d5898f278f8a6b React-jsi: 9978e2a64c2a4371b40e109f4ef30a33deaa9bcb React-jsiexecutor: 18b5b33c5f2687a784a61bc8176611b73524ae77 React-jsinspector: b6ed4cb3ffa27a041cd440300503dc512b761450 @@ -674,6 +665,6 @@ SPEC CHECKSUMS: WordPress-Aztec-iOS: 7d11d598f14c82c727c08b56bd35fbeb7dafb504 Yoga: f7decafdc5e8c125e6fa0da38a687e35238420fa -PODFILE CHECKSUM: f0e6aef8704c365fd09c8b348797d1d4ad51b1a6 +PODFILE CHECKSUM: eed59291e8f65f4e532304d8e4091728b1906889 COCOAPODS: 1.12.1 From 8f9fb1c3b5fce2e838a9af8ef86d1dcc3edabab5 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Fri, 15 Sep 2023 14:15:55 +1000 Subject: [PATCH 10/10] Inline .podspec.json extension definition I noticed this because RuboCop barked at me for having a method with 11 SLOC instead of 10. However, I'm happy with the change. The implementation expects the file to be a JSON, so there's little value in making the extension configurable. If we changed that var to `.podspec`, the implementation would break! --- ios-xcframework/Podfile | 4 +--- ios-xcframework/Podfile.lock | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ios-xcframework/Podfile b/ios-xcframework/Podfile index 51d9033458..082566ca51 100644 --- a/ios-xcframework/Podfile +++ b/ios-xcframework/Podfile @@ -23,9 +23,7 @@ def setup_rnreanimated_pod_from_fork end def gutenberg_dependencies - podspec_extension = '.podspec.json' - - Dir["../third-party-podspecs/*#{podspec_extension}"].each do |podspec_path| + Dir['../third-party-podspecs/*.podspec.json'].each do |podspec_path| pod_name = JSON.parse(File.read(podspec_path))['name'] raise "Could not find pod name in JSON spec at #{podspec_path}" unless pod_name diff --git a/ios-xcframework/Podfile.lock b/ios-xcframework/Podfile.lock index cadc756d9f..83dbafff30 100644 --- a/ios-xcframework/Podfile.lock +++ b/ios-xcframework/Podfile.lock @@ -665,6 +665,6 @@ SPEC CHECKSUMS: WordPress-Aztec-iOS: 7d11d598f14c82c727c08b56bd35fbeb7dafb504 Yoga: f7decafdc5e8c125e6fa0da38a687e35238420fa -PODFILE CHECKSUM: eed59291e8f65f4e532304d8e4091728b1906889 +PODFILE CHECKSUM: a240fb0d100c639b9b0bcedab219f9b0b51fbf0a COCOAPODS: 1.12.1