From d25a4d99c418459fc711fbb9570f67134f094fa3 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Mon, 8 Jan 2024 14:00:40 +0000 Subject: [PATCH] Repo name changes (#46) - Rename URL in package(s) - Update the Podfile.lock - Add a temporary monkeypatch for boost (react-native dependency). See boostorg/boost#843 for more information. --- .github/actions/setup/action.yml | 2 +- CONTRIBUTING.md | 2 +- README.md | 4 +- .../@shopify/checkout-sheet-kit/package.json | 2 +- package.json | 19 +- patches/react-native+0.72.8.patch | 1783 +++++++++++++++++ sample/ios/Podfile.lock | 376 ++-- yarn.lock | 205 +- 8 files changed, 2171 insertions(+), 222 deletions(-) create mode 100644 patches/react-native+0.72.8.patch diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 92c632e..4117860 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -31,5 +31,5 @@ runs: - name: Install dependencies if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn install --immutable + run: yarn install --immutable && yarn postinstall shell: bash diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0528243..e29192f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ This repo is subdivided into 3 parts using yarn workspaces: -- The base repo (workspace name = `checkout-kit-react-native`) +- The base repo (workspace name = `checkout-sheet-kit-react-native`) - The `@shopify/checkout-sheet-kit` Native Module (workspace name = `module`) - The sample application (workspace name = `sample`) diff --git a/README.md b/README.md index 92d4409..598d7c0 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Shopify Checkout Kit - React Native (Developer Preview) -[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/Shopify/checkout-kit-react-native/blob/main/LICENSE) +[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/Shopify/checkout-sheet-kit-react-native/blob/main/LICENSE) -![image](https://github.com/Shopify/checkout-kit-react-native/assets/2034704/107fbeb8-50be-43ac-8837-33d576cac9ab) +![image](https://github.com/Shopify/checkout-sheet-kit-react-native/assets/2034704/107fbeb8-50be-43ac-8837-33d576cac9ab) **Shopify Checkout Kit** is a Native Module (currently in [Developer Preview](https://shopify.dev/docs/api/release-notes/developer-previews)) diff --git a/modules/@shopify/checkout-sheet-kit/package.json b/modules/@shopify/checkout-sheet-kit/package.json index 685ca32..12adf28 100644 --- a/modules/@shopify/checkout-sheet-kit/package.json +++ b/modules/@shopify/checkout-sheet-kit/package.json @@ -8,7 +8,7 @@ "module": "lib/module/index.js", "description": "A React Native library for Shopify's Checkout Kit.", "author": "Shopify", - "homepage": "https://github.com/shopify/checkout-kit-react-native", + "homepage": "https://github.com/shopify/checkout-sheet-kit-react-native", "publishConfig": { "registry": "https://registry.npmjs.org/" }, diff --git a/package.json b/package.json index 830145c..125a365 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { - "name": "checkout-kit-react-native", + "name": "checkout-sheet-kit-react-native", "description": "A React Native library for Shopify's Checkout Kit.", "private": true, "version": "0.0.1", - "repository": "https://github.com/Shopify/checkout-kit-react-native", - "author": "Shopify (https://github.com/Shopify/checkout-kit-react-native)", + "repository": "https://github.com/Shopify/checkout-sheet-kit-react-native", + "author": "Shopify (https://github.com/Shopify/checkout-sheet-kit-react-native)", "license": "MIT", "bugs": { - "url": "https://github.com/Shopify/checkout-kit-react-native/issues" + "url": "https://github.com/Shopify/checkout-sheet-kit-react-native/issues" }, - "homepage": "https://github.com/Shopify/checkout-kit-react-native", + "homepage": "https://github.com/Shopify/checkout-sheet-kit-react-native", "workspaces": [ "sample", "modules/**/*" @@ -21,7 +21,8 @@ "pod-install": "NO_FLIPPER=1 pod-install", "snapshot": "./scripts/create_snapshot", "turbo": "turbo", - "test": "jest" + "test": "jest", + "postinstall": "patch-package" }, "devDependencies": { "@babel/core": "^7.20.0", @@ -32,16 +33,18 @@ "@tsconfig/react-native": "^3.0.0", "@types/jest": "^29.5.10", "@types/react": "^18", - "@types/react-native": "0.72.7", + "@types/react-native": "0.72.8", "@types/react-native-dotenv": "^0.2.1", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.7.0", "eslint": "^8.19.0", "jest": "^29.2.1", + "patch-package": "^8.0.0", "pod-install": "^0.1.39", + "postinstall-postinstall": "^2.1.0", "prettier": "^2.4.1", "react": "^18.2.0", - "react-native": "0.72.7", + "react-native": "0.72.8", "react-native-dotenv": "^3.4.9", "react-native-gradle-plugin": "^0.71.19", "react-test-renderer": "18.2.0", diff --git a/patches/react-native+0.72.8.patch b/patches/react-native+0.72.8.patch new file mode 100644 index 0000000..daf36bf --- /dev/null +++ b/patches/react-native+0.72.8.patch @@ -0,0 +1,1783 @@ +diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h +new file mode 100644 +index 0000000..37b7d8d +--- /dev/null ++++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h +@@ -0,0 +1,29 @@ ++ ++/** ++ * 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: GenerateComponentDescriptorH.js ++ */ ++ ++#pragma once ++ ++#include ++#include ++ ++namespace facebook { ++namespace react { ++ ++using AndroidHorizontalScrollContentViewComponentDescriptor = ConcreteComponentDescriptor; ++using AndroidSwipeRefreshLayoutComponentDescriptor = ConcreteComponentDescriptor; ++using PullToRefreshViewComponentDescriptor = ConcreteComponentDescriptor; ++using AndroidDrawerLayoutComponentDescriptor = ConcreteComponentDescriptor; ++using ActivityIndicatorViewComponentDescriptor = ConcreteComponentDescriptor; ++using UnimplementedNativeViewComponentDescriptor = ConcreteComponentDescriptor; ++using SwitchComponentDescriptor = ConcreteComponentDescriptor; ++using TraceUpdateOverlayComponentDescriptor = ConcreteComponentDescriptor; ++ ++} // namespace react ++} // namespace facebook +diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp +new file mode 100644 +index 0000000..229fadc +--- /dev/null ++++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp +@@ -0,0 +1,111 @@ ++ ++/** ++ * 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: GenerateEventEmitterCpp.js ++ */ ++ ++#include ++ ++namespace facebook { ++namespace react { ++ ++ ++ ++ ++void AndroidSwipeRefreshLayoutEventEmitter::onRefresh(OnRefresh event) const { ++ dispatchEvent("refresh", [](jsi::Runtime &runtime) { ++ auto payload = jsi::Object(runtime); ++ ++ return payload; ++ }); ++} ++void PullToRefreshViewEventEmitter::onRefresh(OnRefresh event) const { ++ dispatchEvent("refresh", [](jsi::Runtime &runtime) { ++ auto payload = jsi::Object(runtime); ++ ++ return payload; ++ }); ++} ++ ++void AndroidDrawerLayoutEventEmitter::onDrawerSlide(OnDrawerSlide event) const { ++ dispatchEvent("drawerSlide", [event=std::move(event)](jsi::Runtime &runtime) { ++ auto payload = jsi::Object(runtime); ++ payload.setProperty(runtime, "offset", event.offset); ++ return payload; ++ }); ++} ++void AndroidDrawerLayoutEventEmitter::onDrawerStateChanged(OnDrawerStateChanged event) const { ++ dispatchEvent("drawerStateChanged", [event=std::move(event)](jsi::Runtime &runtime) { ++ auto payload = jsi::Object(runtime); ++ payload.setProperty(runtime, "drawerState", event.drawerState); ++ return payload; ++ }); ++} ++void AndroidDrawerLayoutEventEmitter::onDrawerOpen(OnDrawerOpen event) const { ++ dispatchEvent("drawerOpen", [](jsi::Runtime &runtime) { ++ auto payload = jsi::Object(runtime); ++ ++ return payload; ++ }); ++} ++void AndroidDrawerLayoutEventEmitter::onDrawerClose(OnDrawerClose event) const { ++ dispatchEvent("drawerClose", [](jsi::Runtime &runtime) { ++ auto payload = jsi::Object(runtime); ++ ++ return payload; ++ }); ++} ++ ++ ++void SwitchEventEmitter::onChange(OnChange event) const { ++ dispatchEvent("change", [event=std::move(event)](jsi::Runtime &runtime) { ++ auto payload = jsi::Object(runtime); ++ payload.setProperty(runtime, "value", event.value); ++payload.setProperty(runtime, "target", event.target); ++ return payload; ++ }); ++} ++void AndroidSwitchEventEmitter::onChange(OnChange event) const { ++ dispatchEvent("change", [event=std::move(event)](jsi::Runtime &runtime) { ++ auto payload = jsi::Object(runtime); ++ payload.setProperty(runtime, "value", event.value); ++payload.setProperty(runtime, "target", event.target); ++ return payload; ++ }); ++} ++ ++void ModalHostViewEventEmitter::onRequestClose(OnRequestClose event) const { ++ dispatchEvent("requestClose", [](jsi::Runtime &runtime) { ++ auto payload = jsi::Object(runtime); ++ ++ return payload; ++ }); ++} ++void ModalHostViewEventEmitter::onShow(OnShow event) const { ++ dispatchEvent("show", [](jsi::Runtime &runtime) { ++ auto payload = jsi::Object(runtime); ++ ++ return payload; ++ }); ++} ++void ModalHostViewEventEmitter::onDismiss(OnDismiss event) const { ++ dispatchEvent("dismiss", [](jsi::Runtime &runtime) { ++ auto payload = jsi::Object(runtime); ++ ++ return payload; ++ }); ++} ++void ModalHostViewEventEmitter::onOrientationChange(OnOrientationChange event) const { ++ dispatchEvent("orientationChange", [event=std::move(event)](jsi::Runtime &runtime) { ++ auto payload = jsi::Object(runtime); ++ payload.setProperty(runtime, "orientation", toString(event.orientation)); ++ return payload; ++ }); ++} ++ ++} // namespace react ++} // namespace facebook +diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.h b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.h +new file mode 100644 +index 0000000..1897be1 +--- /dev/null ++++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.h +@@ -0,0 +1,186 @@ ++ ++/** ++ * 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: GenerateEventEmitterH.js ++ */ ++#pragma once ++ ++#include ++#include ++ ++namespace facebook { ++namespace react { ++ ++class JSI_EXPORT SafeAreaViewEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ ++ ++ ++}; ++class JSI_EXPORT AndroidHorizontalScrollContentViewEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ ++ ++ ++}; ++class JSI_EXPORT AndroidProgressBarEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ ++ ++ ++}; ++class JSI_EXPORT AndroidSwipeRefreshLayoutEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ struct OnRefresh { ++ ++ }; ++ ++ void onRefresh(OnRefresh value) const; ++}; ++class JSI_EXPORT PullToRefreshViewEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ struct OnRefresh { ++ ++ }; ++ ++ void onRefresh(OnRefresh value) const; ++}; ++class JSI_EXPORT InputAccessoryEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ ++ ++ ++}; ++class JSI_EXPORT AndroidDrawerLayoutEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ struct OnDrawerSlide { ++ Float offset; ++ }; ++ ++ struct OnDrawerStateChanged { ++ int drawerState; ++ }; ++ ++ struct OnDrawerOpen { ++ ++ }; ++ ++ struct OnDrawerClose { ++ ++ }; ++ ++ void onDrawerSlide(OnDrawerSlide value) const; ++ ++ void onDrawerStateChanged(OnDrawerStateChanged value) const; ++ ++ void onDrawerOpen(OnDrawerOpen value) const; ++ ++ void onDrawerClose(OnDrawerClose value) const; ++}; ++class JSI_EXPORT ActivityIndicatorViewEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ ++ ++ ++}; ++class JSI_EXPORT UnimplementedNativeViewEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ ++ ++ ++}; ++class JSI_EXPORT SwitchEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ struct OnChange { ++ bool value; ++ int target; ++ }; ++ ++ void onChange(OnChange value) const; ++}; ++class JSI_EXPORT AndroidSwitchEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ struct OnChange { ++ bool value; ++ int target; ++ }; ++ ++ void onChange(OnChange value) const; ++}; ++class JSI_EXPORT TraceUpdateOverlayEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ ++ ++ ++}; ++class JSI_EXPORT ModalHostViewEventEmitter : public ViewEventEmitter { ++ public: ++ using ViewEventEmitter::ViewEventEmitter; ++ ++ struct OnRequestClose { ++ ++ }; ++ ++ struct OnShow { ++ ++ }; ++ ++ struct OnDismiss { ++ ++ }; ++ ++ enum class OnOrientationChangeOrientation { ++ Portrait, ++ Landscape ++ }; ++ ++ static char const *toString(const OnOrientationChangeOrientation value) { ++ switch (value) { ++ case OnOrientationChangeOrientation::Portrait: return "portrait"; ++ case OnOrientationChangeOrientation::Landscape: return "landscape"; ++ } ++ } ++ ++ struct OnOrientationChange { ++ OnOrientationChangeOrientation orientation; ++ }; ++ ++ void onRequestClose(OnRequestClose value) const; ++ ++ void onShow(OnShow value) const; ++ ++ void onDismiss(OnDismiss value) const; ++ ++ void onOrientationChange(OnOrientationChange value) const; ++}; ++ ++} // namespace react ++} // namespace facebook +diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/Props.cpp b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/Props.cpp +new file mode 100644 +index 0000000..59f24e5 +--- /dev/null ++++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/Props.cpp +@@ -0,0 +1,157 @@ ++ ++/** ++ * 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: GeneratePropsCpp.js ++ */ ++ ++#include ++#include ++#include ++ ++namespace facebook { ++namespace react { ++ ++SafeAreaViewProps::SafeAreaViewProps( ++ const PropsParserContext &context, ++ const SafeAreaViewProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps) ++ ++ ++ {} ++AndroidHorizontalScrollContentViewProps::AndroidHorizontalScrollContentViewProps( ++ const PropsParserContext &context, ++ const AndroidHorizontalScrollContentViewProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), ++ ++ removeClippedSubviews(convertRawProp(context, rawProps, "removeClippedSubviews", sourceProps.removeClippedSubviews, {false})) ++ {} ++AndroidProgressBarProps::AndroidProgressBarProps( ++ const PropsParserContext &context, ++ const AndroidProgressBarProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), ++ ++ styleAttr(convertRawProp(context, rawProps, "styleAttr", sourceProps.styleAttr, {})), ++ typeAttr(convertRawProp(context, rawProps, "typeAttr", sourceProps.typeAttr, {})), ++ indeterminate(convertRawProp(context, rawProps, "indeterminate", sourceProps.indeterminate, {false})), ++ progress(convertRawProp(context, rawProps, "progress", sourceProps.progress, {0.0})), ++ animating(convertRawProp(context, rawProps, "animating", sourceProps.animating, {true})), ++ color(convertRawProp(context, rawProps, "color", sourceProps.color, {})), ++ testID(convertRawProp(context, rawProps, "testID", sourceProps.testID, {""})) ++ {} ++AndroidSwipeRefreshLayoutProps::AndroidSwipeRefreshLayoutProps( ++ const PropsParserContext &context, ++ const AndroidSwipeRefreshLayoutProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), ++ ++ enabled(convertRawProp(context, rawProps, "enabled", sourceProps.enabled, {true})), ++ colors(convertRawProp(context, rawProps, "colors", sourceProps.colors, {})), ++ progressBackgroundColor(convertRawProp(context, rawProps, "progressBackgroundColor", sourceProps.progressBackgroundColor, {})), ++ size(convertRawProp(context, rawProps, "size", sourceProps.size, {AndroidSwipeRefreshLayoutSize::Default})), ++ progressViewOffset(convertRawProp(context, rawProps, "progressViewOffset", sourceProps.progressViewOffset, {0.0})), ++ refreshing(convertRawProp(context, rawProps, "refreshing", sourceProps.refreshing, {false})) ++ {} ++PullToRefreshViewProps::PullToRefreshViewProps( ++ const PropsParserContext &context, ++ const PullToRefreshViewProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), ++ ++ tintColor(convertRawProp(context, rawProps, "tintColor", sourceProps.tintColor, {})), ++ titleColor(convertRawProp(context, rawProps, "titleColor", sourceProps.titleColor, {})), ++ title(convertRawProp(context, rawProps, "title", sourceProps.title, {})), ++ progressViewOffset(convertRawProp(context, rawProps, "progressViewOffset", sourceProps.progressViewOffset, {0.0})), ++ refreshing(convertRawProp(context, rawProps, "refreshing", sourceProps.refreshing, {false})) ++ {} ++InputAccessoryProps::InputAccessoryProps( ++ const PropsParserContext &context, ++ const InputAccessoryProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), ++ ++ backgroundColor(convertRawProp(context, rawProps, "backgroundColor", sourceProps.backgroundColor, {})) ++ {} ++AndroidDrawerLayoutProps::AndroidDrawerLayoutProps( ++ const PropsParserContext &context, ++ const AndroidDrawerLayoutProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), ++ ++ keyboardDismissMode(convertRawProp(context, rawProps, "keyboardDismissMode", sourceProps.keyboardDismissMode, {AndroidDrawerLayoutKeyboardDismissMode::None})), ++ drawerBackgroundColor(convertRawProp(context, rawProps, "drawerBackgroundColor", sourceProps.drawerBackgroundColor, {})), ++ drawerPosition(convertRawProp(context, rawProps, "drawerPosition", sourceProps.drawerPosition, {AndroidDrawerLayoutDrawerPosition::Left})), ++ drawerWidth(convertRawProp(context, rawProps, "drawerWidth", sourceProps.drawerWidth, {})), ++ drawerLockMode(convertRawProp(context, rawProps, "drawerLockMode", sourceProps.drawerLockMode, {AndroidDrawerLayoutDrawerLockMode::Unlocked})), ++ statusBarBackgroundColor(convertRawProp(context, rawProps, "statusBarBackgroundColor", sourceProps.statusBarBackgroundColor, {})) ++ {} ++ActivityIndicatorViewProps::ActivityIndicatorViewProps( ++ const PropsParserContext &context, ++ const ActivityIndicatorViewProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), ++ ++ hidesWhenStopped(convertRawProp(context, rawProps, "hidesWhenStopped", sourceProps.hidesWhenStopped, {false})), ++ animating(convertRawProp(context, rawProps, "animating", sourceProps.animating, {false})), ++ color(convertRawProp(context, rawProps, "color", sourceProps.color, {})), ++ size(convertRawProp(context, rawProps, "size", sourceProps.size, {ActivityIndicatorViewSize::Small})) ++ {} ++UnimplementedNativeViewProps::UnimplementedNativeViewProps( ++ const PropsParserContext &context, ++ const UnimplementedNativeViewProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), ++ ++ name(convertRawProp(context, rawProps, "name", sourceProps.name, {""})) ++ {} ++SwitchProps::SwitchProps( ++ const PropsParserContext &context, ++ const SwitchProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), ++ ++ disabled(convertRawProp(context, rawProps, "disabled", sourceProps.disabled, {false})), ++ value(convertRawProp(context, rawProps, "value", sourceProps.value, {false})), ++ tintColor(convertRawProp(context, rawProps, "tintColor", sourceProps.tintColor, {})), ++ onTintColor(convertRawProp(context, rawProps, "onTintColor", sourceProps.onTintColor, {})), ++ thumbTintColor(convertRawProp(context, rawProps, "thumbTintColor", sourceProps.thumbTintColor, {})), ++ thumbColor(convertRawProp(context, rawProps, "thumbColor", sourceProps.thumbColor, {})), ++ trackColorForFalse(convertRawProp(context, rawProps, "trackColorForFalse", sourceProps.trackColorForFalse, {})), ++ trackColorForTrue(convertRawProp(context, rawProps, "trackColorForTrue", sourceProps.trackColorForTrue, {})) ++ {} ++AndroidSwitchProps::AndroidSwitchProps( ++ const PropsParserContext &context, ++ const AndroidSwitchProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), ++ ++ disabled(convertRawProp(context, rawProps, "disabled", sourceProps.disabled, {false})), ++ enabled(convertRawProp(context, rawProps, "enabled", sourceProps.enabled, {true})), ++ thumbColor(convertRawProp(context, rawProps, "thumbColor", sourceProps.thumbColor, {})), ++ trackColorForFalse(convertRawProp(context, rawProps, "trackColorForFalse", sourceProps.trackColorForFalse, {})), ++ trackColorForTrue(convertRawProp(context, rawProps, "trackColorForTrue", sourceProps.trackColorForTrue, {})), ++ value(convertRawProp(context, rawProps, "value", sourceProps.value, {false})), ++ on(convertRawProp(context, rawProps, "on", sourceProps.on, {false})), ++ thumbTintColor(convertRawProp(context, rawProps, "thumbTintColor", sourceProps.thumbTintColor, {})), ++ trackTintColor(convertRawProp(context, rawProps, "trackTintColor", sourceProps.trackTintColor, {})) ++ {} ++TraceUpdateOverlayProps::TraceUpdateOverlayProps( ++ const PropsParserContext &context, ++ const TraceUpdateOverlayProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps) ++ ++ ++ {} ++ModalHostViewProps::ModalHostViewProps( ++ const PropsParserContext &context, ++ const ModalHostViewProps &sourceProps, ++ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), ++ ++ animationType(convertRawProp(context, rawProps, "animationType", sourceProps.animationType, {ModalHostViewAnimationType::None})), ++ presentationStyle(convertRawProp(context, rawProps, "presentationStyle", sourceProps.presentationStyle, {ModalHostViewPresentationStyle::FullScreen})), ++ transparent(convertRawProp(context, rawProps, "transparent", sourceProps.transparent, {false})), ++ statusBarTranslucent(convertRawProp(context, rawProps, "statusBarTranslucent", sourceProps.statusBarTranslucent, {false})), ++ hardwareAccelerated(convertRawProp(context, rawProps, "hardwareAccelerated", sourceProps.hardwareAccelerated, {false})), ++ visible(convertRawProp(context, rawProps, "visible", sourceProps.visible, {false})), ++ animated(convertRawProp(context, rawProps, "animated", sourceProps.animated, {false})), ++ supportedOrientations(convertRawProp(context, rawProps, "supportedOrientations", sourceProps.supportedOrientations, {static_cast(ModalHostViewSupportedOrientations::Portrait)})), ++ identifier(convertRawProp(context, rawProps, "identifier", sourceProps.identifier, {0})) ++ {} ++ ++} // namespace react ++} // namespace facebook +diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/Props.h b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/Props.h +new file mode 100644 +index 0000000..f402340 +--- /dev/null ++++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/Props.h +@@ -0,0 +1,395 @@ ++ ++/** ++ * 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: GeneratePropsH.js ++ */ ++#pragma once ++ ++#include ++#include ++#include ++#include ++#include ++#include ++ ++namespace facebook { ++namespace react { ++ ++class JSI_EXPORT SafeAreaViewProps final : public ViewProps { ++ public: ++ SafeAreaViewProps() = default; ++ SafeAreaViewProps(const PropsParserContext& context, const SafeAreaViewProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ ++}; ++ ++class JSI_EXPORT AndroidHorizontalScrollContentViewProps final : public ViewProps { ++ public: ++ AndroidHorizontalScrollContentViewProps() = default; ++ AndroidHorizontalScrollContentViewProps(const PropsParserContext& context, const AndroidHorizontalScrollContentViewProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ bool removeClippedSubviews{false}; ++}; ++ ++class JSI_EXPORT AndroidProgressBarProps final : public ViewProps { ++ public: ++ AndroidProgressBarProps() = default; ++ AndroidProgressBarProps(const PropsParserContext& context, const AndroidProgressBarProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ std::string styleAttr{}; ++ std::string typeAttr{}; ++ bool indeterminate{false}; ++ double progress{0.0}; ++ bool animating{true}; ++ SharedColor color{}; ++ std::string testID{""}; ++}; ++ ++enum class AndroidSwipeRefreshLayoutSize { Default, Large }; ++ ++static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidSwipeRefreshLayoutSize &result) { ++ auto string = (std::string)value; ++ if (string == "default") { result = AndroidSwipeRefreshLayoutSize::Default; return; } ++ if (string == "large") { result = AndroidSwipeRefreshLayoutSize::Large; return; } ++ abort(); ++} ++ ++static inline std::string toString(const AndroidSwipeRefreshLayoutSize &value) { ++ switch (value) { ++ case AndroidSwipeRefreshLayoutSize::Default: return "default"; ++ case AndroidSwipeRefreshLayoutSize::Large: return "large"; ++ } ++} ++ ++class JSI_EXPORT AndroidSwipeRefreshLayoutProps final : public ViewProps { ++ public: ++ AndroidSwipeRefreshLayoutProps() = default; ++ AndroidSwipeRefreshLayoutProps(const PropsParserContext& context, const AndroidSwipeRefreshLayoutProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ bool enabled{true}; ++ std::vector colors{}; ++ SharedColor progressBackgroundColor{}; ++ AndroidSwipeRefreshLayoutSize size{AndroidSwipeRefreshLayoutSize::Default}; ++ Float progressViewOffset{0.0}; ++ bool refreshing{false}; ++}; ++ ++class JSI_EXPORT PullToRefreshViewProps final : public ViewProps { ++ public: ++ PullToRefreshViewProps() = default; ++ PullToRefreshViewProps(const PropsParserContext& context, const PullToRefreshViewProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ SharedColor tintColor{}; ++ SharedColor titleColor{}; ++ std::string title{}; ++ Float progressViewOffset{0.0}; ++ bool refreshing{false}; ++}; ++ ++class JSI_EXPORT InputAccessoryProps final : public ViewProps { ++ public: ++ InputAccessoryProps() = default; ++ InputAccessoryProps(const PropsParserContext& context, const InputAccessoryProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ SharedColor backgroundColor{}; ++}; ++ ++enum class AndroidDrawerLayoutKeyboardDismissMode { None, OnDrag }; ++ ++static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidDrawerLayoutKeyboardDismissMode &result) { ++ auto string = (std::string)value; ++ if (string == "none") { result = AndroidDrawerLayoutKeyboardDismissMode::None; return; } ++ if (string == "on-drag") { result = AndroidDrawerLayoutKeyboardDismissMode::OnDrag; return; } ++ abort(); ++} ++ ++static inline std::string toString(const AndroidDrawerLayoutKeyboardDismissMode &value) { ++ switch (value) { ++ case AndroidDrawerLayoutKeyboardDismissMode::None: return "none"; ++ case AndroidDrawerLayoutKeyboardDismissMode::OnDrag: return "on-drag"; ++ } ++} ++enum class AndroidDrawerLayoutDrawerPosition { Left, Right }; ++ ++static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidDrawerLayoutDrawerPosition &result) { ++ auto string = (std::string)value; ++ if (string == "left") { result = AndroidDrawerLayoutDrawerPosition::Left; return; } ++ if (string == "right") { result = AndroidDrawerLayoutDrawerPosition::Right; return; } ++ abort(); ++} ++ ++static inline std::string toString(const AndroidDrawerLayoutDrawerPosition &value) { ++ switch (value) { ++ case AndroidDrawerLayoutDrawerPosition::Left: return "left"; ++ case AndroidDrawerLayoutDrawerPosition::Right: return "right"; ++ } ++} ++enum class AndroidDrawerLayoutDrawerLockMode { Unlocked, LockedClosed, LockedOpen }; ++ ++static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidDrawerLayoutDrawerLockMode &result) { ++ auto string = (std::string)value; ++ if (string == "unlocked") { result = AndroidDrawerLayoutDrawerLockMode::Unlocked; return; } ++ if (string == "locked-closed") { result = AndroidDrawerLayoutDrawerLockMode::LockedClosed; return; } ++ if (string == "locked-open") { result = AndroidDrawerLayoutDrawerLockMode::LockedOpen; return; } ++ abort(); ++} ++ ++static inline std::string toString(const AndroidDrawerLayoutDrawerLockMode &value) { ++ switch (value) { ++ case AndroidDrawerLayoutDrawerLockMode::Unlocked: return "unlocked"; ++ case AndroidDrawerLayoutDrawerLockMode::LockedClosed: return "locked-closed"; ++ case AndroidDrawerLayoutDrawerLockMode::LockedOpen: return "locked-open"; ++ } ++} ++ ++class JSI_EXPORT AndroidDrawerLayoutProps final : public ViewProps { ++ public: ++ AndroidDrawerLayoutProps() = default; ++ AndroidDrawerLayoutProps(const PropsParserContext& context, const AndroidDrawerLayoutProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ AndroidDrawerLayoutKeyboardDismissMode keyboardDismissMode{AndroidDrawerLayoutKeyboardDismissMode::None}; ++ SharedColor drawerBackgroundColor{}; ++ AndroidDrawerLayoutDrawerPosition drawerPosition{AndroidDrawerLayoutDrawerPosition::Left}; ++ Float drawerWidth{}; ++ AndroidDrawerLayoutDrawerLockMode drawerLockMode{AndroidDrawerLayoutDrawerLockMode::Unlocked}; ++ SharedColor statusBarBackgroundColor{}; ++}; ++ ++enum class ActivityIndicatorViewSize { Small, Large }; ++ ++static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ActivityIndicatorViewSize &result) { ++ auto string = (std::string)value; ++ if (string == "small") { result = ActivityIndicatorViewSize::Small; return; } ++ if (string == "large") { result = ActivityIndicatorViewSize::Large; return; } ++ abort(); ++} ++ ++static inline std::string toString(const ActivityIndicatorViewSize &value) { ++ switch (value) { ++ case ActivityIndicatorViewSize::Small: return "small"; ++ case ActivityIndicatorViewSize::Large: return "large"; ++ } ++} ++ ++class JSI_EXPORT ActivityIndicatorViewProps final : public ViewProps { ++ public: ++ ActivityIndicatorViewProps() = default; ++ ActivityIndicatorViewProps(const PropsParserContext& context, const ActivityIndicatorViewProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ bool hidesWhenStopped{false}; ++ bool animating{false}; ++ SharedColor color{}; ++ ActivityIndicatorViewSize size{ActivityIndicatorViewSize::Small}; ++}; ++ ++class JSI_EXPORT UnimplementedNativeViewProps final : public ViewProps { ++ public: ++ UnimplementedNativeViewProps() = default; ++ UnimplementedNativeViewProps(const PropsParserContext& context, const UnimplementedNativeViewProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ std::string name{""}; ++}; ++ ++class JSI_EXPORT SwitchProps final : public ViewProps { ++ public: ++ SwitchProps() = default; ++ SwitchProps(const PropsParserContext& context, const SwitchProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ bool disabled{false}; ++ bool value{false}; ++ SharedColor tintColor{}; ++ SharedColor onTintColor{}; ++ SharedColor thumbTintColor{}; ++ SharedColor thumbColor{}; ++ SharedColor trackColorForFalse{}; ++ SharedColor trackColorForTrue{}; ++}; ++ ++class JSI_EXPORT AndroidSwitchProps final : public ViewProps { ++ public: ++ AndroidSwitchProps() = default; ++ AndroidSwitchProps(const PropsParserContext& context, const AndroidSwitchProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ bool disabled{false}; ++ bool enabled{true}; ++ SharedColor thumbColor{}; ++ SharedColor trackColorForFalse{}; ++ SharedColor trackColorForTrue{}; ++ bool value{false}; ++ bool on{false}; ++ SharedColor thumbTintColor{}; ++ SharedColor trackTintColor{}; ++}; ++ ++class JSI_EXPORT TraceUpdateOverlayProps final : public ViewProps { ++ public: ++ TraceUpdateOverlayProps() = default; ++ TraceUpdateOverlayProps(const PropsParserContext& context, const TraceUpdateOverlayProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ ++}; ++ ++enum class ModalHostViewAnimationType { None, Slide, Fade }; ++ ++static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewAnimationType &result) { ++ auto string = (std::string)value; ++ if (string == "none") { result = ModalHostViewAnimationType::None; return; } ++ if (string == "slide") { result = ModalHostViewAnimationType::Slide; return; } ++ if (string == "fade") { result = ModalHostViewAnimationType::Fade; return; } ++ abort(); ++} ++ ++static inline std::string toString(const ModalHostViewAnimationType &value) { ++ switch (value) { ++ case ModalHostViewAnimationType::None: return "none"; ++ case ModalHostViewAnimationType::Slide: return "slide"; ++ case ModalHostViewAnimationType::Fade: return "fade"; ++ } ++} ++enum class ModalHostViewPresentationStyle { FullScreen, PageSheet, FormSheet, OverFullScreen }; ++ ++static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewPresentationStyle &result) { ++ auto string = (std::string)value; ++ if (string == "fullScreen") { result = ModalHostViewPresentationStyle::FullScreen; return; } ++ if (string == "pageSheet") { result = ModalHostViewPresentationStyle::PageSheet; return; } ++ if (string == "formSheet") { result = ModalHostViewPresentationStyle::FormSheet; return; } ++ if (string == "overFullScreen") { result = ModalHostViewPresentationStyle::OverFullScreen; return; } ++ abort(); ++} ++ ++static inline std::string toString(const ModalHostViewPresentationStyle &value) { ++ switch (value) { ++ case ModalHostViewPresentationStyle::FullScreen: return "fullScreen"; ++ case ModalHostViewPresentationStyle::PageSheet: return "pageSheet"; ++ case ModalHostViewPresentationStyle::FormSheet: return "formSheet"; ++ case ModalHostViewPresentationStyle::OverFullScreen: return "overFullScreen"; ++ } ++} ++using ModalHostViewSupportedOrientationsMask = uint32_t; ++ ++enum class ModalHostViewSupportedOrientations: ModalHostViewSupportedOrientationsMask { ++ Portrait = 1 << 0, ++ PortraitUpsideDown = 1 << 1, ++ Landscape = 1 << 2, ++ LandscapeLeft = 1 << 3, ++ LandscapeRight = 1 << 4 ++}; ++ ++constexpr bool operator&( ++ ModalHostViewSupportedOrientationsMask const lhs, ++ enum ModalHostViewSupportedOrientations const rhs) { ++ return lhs & static_cast(rhs); ++} ++ ++constexpr ModalHostViewSupportedOrientationsMask operator|( ++ ModalHostViewSupportedOrientationsMask const lhs, ++ enum ModalHostViewSupportedOrientations const rhs) { ++ return lhs | static_cast(rhs); ++} ++ ++constexpr void operator|=( ++ ModalHostViewSupportedOrientationsMask &lhs, ++ enum ModalHostViewSupportedOrientations const rhs) { ++ lhs = lhs | static_cast(rhs); ++} ++ ++static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewSupportedOrientationsMask &result) { ++ auto items = std::vector{value}; ++ for (const auto &item : items) { ++ if (item == "portrait") { ++ result |= ModalHostViewSupportedOrientations::Portrait; ++ continue; ++ } ++ if (item == "portrait-upside-down") { ++ result |= ModalHostViewSupportedOrientations::PortraitUpsideDown; ++ continue; ++ } ++ if (item == "landscape") { ++ result |= ModalHostViewSupportedOrientations::Landscape; ++ continue; ++ } ++ if (item == "landscape-left") { ++ result |= ModalHostViewSupportedOrientations::LandscapeLeft; ++ continue; ++ } ++ if (item == "landscape-right") { ++ result |= ModalHostViewSupportedOrientations::LandscapeRight; ++ continue; ++ } ++ abort(); ++ } ++} ++ ++static inline std::string toString(const ModalHostViewSupportedOrientationsMask &value) { ++ auto result = std::string{}; ++ auto separator = std::string{", "}; ++ ++ if (value & ModalHostViewSupportedOrientations::Portrait) { ++ result += "portrait" + separator; ++ } ++ if (value & ModalHostViewSupportedOrientations::PortraitUpsideDown) { ++ result += "portrait-upside-down" + separator; ++ } ++ if (value & ModalHostViewSupportedOrientations::Landscape) { ++ result += "landscape" + separator; ++ } ++ if (value & ModalHostViewSupportedOrientations::LandscapeLeft) { ++ result += "landscape-left" + separator; ++ } ++ if (value & ModalHostViewSupportedOrientations::LandscapeRight) { ++ result += "landscape-right" + separator; ++ } ++ if (!result.empty()) { ++ result.erase(result.length() - separator.length()); ++ } ++ return result; ++} ++ ++class JSI_EXPORT ModalHostViewProps final : public ViewProps { ++ public: ++ ModalHostViewProps() = default; ++ ModalHostViewProps(const PropsParserContext& context, const ModalHostViewProps &sourceProps, const RawProps &rawProps); ++ ++#pragma mark - Props ++ ++ ModalHostViewAnimationType animationType{ModalHostViewAnimationType::None}; ++ ModalHostViewPresentationStyle presentationStyle{ModalHostViewPresentationStyle::FullScreen}; ++ bool transparent{false}; ++ bool statusBarTranslucent{false}; ++ bool hardwareAccelerated{false}; ++ bool visible{false}; ++ bool animated{false}; ++ ModalHostViewSupportedOrientationsMask supportedOrientations{static_cast(ModalHostViewSupportedOrientations::Portrait)}; ++ int identifier{0}; ++}; ++ ++} // namespace react ++} // namespace facebook +diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/RCTComponentViewHelpers.h b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/RCTComponentViewHelpers.h +new file mode 100644 +index 0000000..e08f2ae +--- /dev/null ++++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/RCTComponentViewHelpers.h +@@ -0,0 +1,257 @@ ++/** ++* 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: GenerateComponentHObjCpp.js ++*/ ++ ++#import ++#import ++#import ++ ++NS_ASSUME_NONNULL_BEGIN ++ ++@protocol RCTSafeAreaViewViewProtocol ++ ++@end ++ ++@protocol RCTAndroidHorizontalScrollContentViewViewProtocol ++ ++@end ++ ++@protocol RCTAndroidProgressBarViewProtocol ++ ++@end ++ ++@protocol RCTAndroidSwipeRefreshLayoutViewProtocol ++- (void)setNativeRefreshing:(BOOL)value; ++@end ++ ++RCT_EXTERN inline void RCTAndroidSwipeRefreshLayoutHandleCommand( ++ id componentView, ++ NSString const *commandName, ++ NSArray const *args) ++{ ++ if ([commandName isEqualToString:@"setNativeRefreshing"]) { ++#if RCT_DEBUG ++ if ([args count] != 1) { ++ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidSwipeRefreshLayout", commandName, (int)[args count], 1); ++ return; ++ } ++#endif ++ ++ NSObject *arg0 = args[0]; ++#if RCT_DEBUG ++ if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"AndroidSwipeRefreshLayout", commandName, @"1st")) { ++ return; ++ } ++#endif ++ BOOL value = [(NSNumber *)arg0 boolValue]; ++ ++ [componentView setNativeRefreshing:value]; ++ return; ++} ++ ++#if RCT_DEBUG ++ RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidSwipeRefreshLayout", commandName); ++#endif ++} ++ ++@protocol RCTPullToRefreshViewViewProtocol ++- (void)setNativeRefreshing:(BOOL)refreshing; ++@end ++ ++RCT_EXTERN inline void RCTPullToRefreshViewHandleCommand( ++ id componentView, ++ NSString const *commandName, ++ NSArray const *args) ++{ ++ if ([commandName isEqualToString:@"setNativeRefreshing"]) { ++#if RCT_DEBUG ++ if ([args count] != 1) { ++ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"PullToRefreshView", commandName, (int)[args count], 1); ++ return; ++ } ++#endif ++ ++ NSObject *arg0 = args[0]; ++#if RCT_DEBUG ++ if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"PullToRefreshView", commandName, @"1st")) { ++ return; ++ } ++#endif ++ BOOL refreshing = [(NSNumber *)arg0 boolValue]; ++ ++ [componentView setNativeRefreshing:refreshing]; ++ return; ++} ++ ++#if RCT_DEBUG ++ RCTLogError(@"%@ received command %@, which is not a supported command.", @"PullToRefreshView", commandName); ++#endif ++} ++ ++@protocol RCTInputAccessoryViewProtocol ++ ++@end ++ ++@protocol RCTAndroidDrawerLayoutViewProtocol ++- (void)openDrawer; ++- (void)closeDrawer; ++@end ++ ++RCT_EXTERN inline void RCTAndroidDrawerLayoutHandleCommand( ++ id componentView, ++ NSString const *commandName, ++ NSArray const *args) ++{ ++ if ([commandName isEqualToString:@"openDrawer"]) { ++#if RCT_DEBUG ++ if ([args count] != 0) { ++ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidDrawerLayout", commandName, (int)[args count], 0); ++ return; ++ } ++#endif ++ ++ ++ ++ [componentView openDrawer]; ++ return; ++} ++ ++if ([commandName isEqualToString:@"closeDrawer"]) { ++#if RCT_DEBUG ++ if ([args count] != 0) { ++ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidDrawerLayout", commandName, (int)[args count], 0); ++ return; ++ } ++#endif ++ ++ ++ ++ [componentView closeDrawer]; ++ return; ++} ++ ++#if RCT_DEBUG ++ RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidDrawerLayout", commandName); ++#endif ++} ++ ++@protocol RCTActivityIndicatorViewViewProtocol ++ ++@end ++ ++@protocol RCTUnimplementedNativeViewViewProtocol ++ ++@end ++ ++@protocol RCTSwitchViewProtocol ++- (void)setValue:(BOOL)value; ++@end ++ ++RCT_EXTERN inline void RCTSwitchHandleCommand( ++ id componentView, ++ NSString const *commandName, ++ NSArray const *args) ++{ ++ if ([commandName isEqualToString:@"setValue"]) { ++#if RCT_DEBUG ++ if ([args count] != 1) { ++ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"Switch", commandName, (int)[args count], 1); ++ return; ++ } ++#endif ++ ++ NSObject *arg0 = args[0]; ++#if RCT_DEBUG ++ if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"Switch", commandName, @"1st")) { ++ return; ++ } ++#endif ++ BOOL value = [(NSNumber *)arg0 boolValue]; ++ ++ [componentView setValue:value]; ++ return; ++} ++ ++#if RCT_DEBUG ++ RCTLogError(@"%@ received command %@, which is not a supported command.", @"Switch", commandName); ++#endif ++} ++ ++@protocol RCTAndroidSwitchViewProtocol ++- (void)setNativeValue:(BOOL)value; ++@end ++ ++RCT_EXTERN inline void RCTAndroidSwitchHandleCommand( ++ id componentView, ++ NSString const *commandName, ++ NSArray const *args) ++{ ++ if ([commandName isEqualToString:@"setNativeValue"]) { ++#if RCT_DEBUG ++ if ([args count] != 1) { ++ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidSwitch", commandName, (int)[args count], 1); ++ return; ++ } ++#endif ++ ++ NSObject *arg0 = args[0]; ++#if RCT_DEBUG ++ if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"AndroidSwitch", commandName, @"1st")) { ++ return; ++ } ++#endif ++ BOOL value = [(NSNumber *)arg0 boolValue]; ++ ++ [componentView setNativeValue:value]; ++ return; ++} ++ ++#if RCT_DEBUG ++ RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidSwitch", commandName); ++#endif ++} ++ ++@protocol RCTTraceUpdateOverlayViewProtocol ++- (void)draw:(NSString *)overlays; ++@end ++ ++RCT_EXTERN inline void RCTTraceUpdateOverlayHandleCommand( ++ id componentView, ++ NSString const *commandName, ++ NSArray const *args) ++{ ++ if ([commandName isEqualToString:@"draw"]) { ++#if RCT_DEBUG ++ if ([args count] != 1) { ++ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"TraceUpdateOverlay", commandName, (int)[args count], 1); ++ return; ++ } ++#endif ++ ++ NSObject *arg0 = args[0]; ++#if RCT_DEBUG ++ if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSString class], @"string", @"TraceUpdateOverlay", commandName, @"1st")) { ++ return; ++ } ++#endif ++ NSString * overlays = (NSString *)arg0; ++ ++ [componentView draw:overlays]; ++ return; ++} ++ ++#if RCT_DEBUG ++ RCTLogError(@"%@ received command %@, which is not a supported command.", @"TraceUpdateOverlay", commandName); ++#endif ++} ++ ++@protocol RCTModalHostViewViewProtocol ++ ++@end ++ ++NS_ASSUME_NONNULL_END +\ No newline at end of file +diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp +new file mode 100644 +index 0000000..d9a2760 +--- /dev/null ++++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp +@@ -0,0 +1,26 @@ ++ ++/** ++ * 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: GenerateShadowNodeCpp.js ++ */ ++ ++#include ++ ++namespace facebook { ++namespace react { ++ ++extern const char AndroidHorizontalScrollContentViewComponentName[] = "AndroidHorizontalScrollContentView"; ++extern const char AndroidSwipeRefreshLayoutComponentName[] = "AndroidSwipeRefreshLayout"; ++extern const char PullToRefreshViewComponentName[] = "PullToRefreshView"; ++extern const char AndroidDrawerLayoutComponentName[] = "AndroidDrawerLayout"; ++extern const char ActivityIndicatorViewComponentName[] = "ActivityIndicatorView"; ++extern const char UnimplementedNativeViewComponentName[] = "UnimplementedNativeView"; ++extern const char SwitchComponentName[] = "Switch"; ++extern const char TraceUpdateOverlayComponentName[] = "TraceUpdateOverlay"; ++ ++} // namespace react ++} // namespace facebook +diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ShadowNodes.h b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ShadowNodes.h +new file mode 100644 +index 0000000..a5874dc +--- /dev/null ++++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ShadowNodes.h +@@ -0,0 +1,111 @@ ++ ++/** ++ * 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: GenerateShadowNodeH.js ++ */ ++ ++#pragma once ++ ++#include ++#include ++#include ++#include ++#include ++ ++namespace facebook { ++namespace react { ++ ++JSI_EXPORT extern const char AndroidHorizontalScrollContentViewComponentName[]; ++ ++/* ++ * `ShadowNode` for component. ++ */ ++using AndroidHorizontalScrollContentViewShadowNode = ConcreteViewShadowNode< ++ AndroidHorizontalScrollContentViewComponentName, ++ AndroidHorizontalScrollContentViewProps, ++ AndroidHorizontalScrollContentViewEventEmitter, ++ AndroidHorizontalScrollContentViewState>; ++ ++JSI_EXPORT extern const char AndroidSwipeRefreshLayoutComponentName[]; ++ ++/* ++ * `ShadowNode` for component. ++ */ ++using AndroidSwipeRefreshLayoutShadowNode = ConcreteViewShadowNode< ++ AndroidSwipeRefreshLayoutComponentName, ++ AndroidSwipeRefreshLayoutProps, ++ AndroidSwipeRefreshLayoutEventEmitter, ++ AndroidSwipeRefreshLayoutState>; ++ ++JSI_EXPORT extern const char PullToRefreshViewComponentName[]; ++ ++/* ++ * `ShadowNode` for component. ++ */ ++using PullToRefreshViewShadowNode = ConcreteViewShadowNode< ++ PullToRefreshViewComponentName, ++ PullToRefreshViewProps, ++ PullToRefreshViewEventEmitter, ++ PullToRefreshViewState>; ++ ++JSI_EXPORT extern const char AndroidDrawerLayoutComponentName[]; ++ ++/* ++ * `ShadowNode` for component. ++ */ ++using AndroidDrawerLayoutShadowNode = ConcreteViewShadowNode< ++ AndroidDrawerLayoutComponentName, ++ AndroidDrawerLayoutProps, ++ AndroidDrawerLayoutEventEmitter, ++ AndroidDrawerLayoutState>; ++ ++JSI_EXPORT extern const char ActivityIndicatorViewComponentName[]; ++ ++/* ++ * `ShadowNode` for component. ++ */ ++using ActivityIndicatorViewShadowNode = ConcreteViewShadowNode< ++ ActivityIndicatorViewComponentName, ++ ActivityIndicatorViewProps, ++ ActivityIndicatorViewEventEmitter, ++ ActivityIndicatorViewState>; ++ ++JSI_EXPORT extern const char UnimplementedNativeViewComponentName[]; ++ ++/* ++ * `ShadowNode` for component. ++ */ ++using UnimplementedNativeViewShadowNode = ConcreteViewShadowNode< ++ UnimplementedNativeViewComponentName, ++ UnimplementedNativeViewProps, ++ UnimplementedNativeViewEventEmitter, ++ UnimplementedNativeViewState>; ++ ++JSI_EXPORT extern const char SwitchComponentName[]; ++ ++/* ++ * `ShadowNode` for component. ++ */ ++using SwitchShadowNode = ConcreteViewShadowNode< ++ SwitchComponentName, ++ SwitchProps, ++ SwitchEventEmitter, ++ SwitchState>; ++ ++JSI_EXPORT extern const char TraceUpdateOverlayComponentName[]; ++ ++/* ++ * `ShadowNode` for component. ++ */ ++using TraceUpdateOverlayShadowNode = ConcreteViewShadowNode< ++ TraceUpdateOverlayComponentName, ++ TraceUpdateOverlayProps, ++ TraceUpdateOverlayEventEmitter, ++ TraceUpdateOverlayState>; ++ ++} // namespace react ++} // namespace facebook +diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.cpp b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.cpp +new file mode 100644 +index 0000000..3b5a0f5 +--- /dev/null ++++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.cpp +@@ -0,0 +1,18 @@ ++ ++/** ++ * 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: GenerateStateCpp.js ++ */ ++#include ++ ++namespace facebook { ++namespace react { ++ ++ ++ ++} // namespace react ++} // namespace facebook +diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.h b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.h +new file mode 100644 +index 0000000..29ac2df +--- /dev/null ++++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.h +@@ -0,0 +1,141 @@ ++/** ++ * 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: GenerateStateH.js ++ */ ++#pragma once ++ ++#ifdef ANDROID ++#include ++#include ++#include ++#endif ++ ++namespace facebook { ++namespace react { ++ ++class AndroidHorizontalScrollContentViewState { ++public: ++ AndroidHorizontalScrollContentViewState() = default; ++ ++#ifdef ANDROID ++ AndroidHorizontalScrollContentViewState(AndroidHorizontalScrollContentViewState const &previousState, folly::dynamic data){}; ++ folly::dynamic getDynamic() const { ++ return {}; ++ }; ++ MapBuffer getMapBuffer() const { ++ return MapBufferBuilder::EMPTY(); ++ }; ++#endif ++}; ++ ++class AndroidSwipeRefreshLayoutState { ++public: ++ AndroidSwipeRefreshLayoutState() = default; ++ ++#ifdef ANDROID ++ AndroidSwipeRefreshLayoutState(AndroidSwipeRefreshLayoutState const &previousState, folly::dynamic data){}; ++ folly::dynamic getDynamic() const { ++ return {}; ++ }; ++ MapBuffer getMapBuffer() const { ++ return MapBufferBuilder::EMPTY(); ++ }; ++#endif ++}; ++ ++class PullToRefreshViewState { ++public: ++ PullToRefreshViewState() = default; ++ ++#ifdef ANDROID ++ PullToRefreshViewState(PullToRefreshViewState const &previousState, folly::dynamic data){}; ++ folly::dynamic getDynamic() const { ++ return {}; ++ }; ++ MapBuffer getMapBuffer() const { ++ return MapBufferBuilder::EMPTY(); ++ }; ++#endif ++}; ++ ++class AndroidDrawerLayoutState { ++public: ++ AndroidDrawerLayoutState() = default; ++ ++#ifdef ANDROID ++ AndroidDrawerLayoutState(AndroidDrawerLayoutState const &previousState, folly::dynamic data){}; ++ folly::dynamic getDynamic() const { ++ return {}; ++ }; ++ MapBuffer getMapBuffer() const { ++ return MapBufferBuilder::EMPTY(); ++ }; ++#endif ++}; ++ ++class ActivityIndicatorViewState { ++public: ++ ActivityIndicatorViewState() = default; ++ ++#ifdef ANDROID ++ ActivityIndicatorViewState(ActivityIndicatorViewState const &previousState, folly::dynamic data){}; ++ folly::dynamic getDynamic() const { ++ return {}; ++ }; ++ MapBuffer getMapBuffer() const { ++ return MapBufferBuilder::EMPTY(); ++ }; ++#endif ++}; ++ ++class UnimplementedNativeViewState { ++public: ++ UnimplementedNativeViewState() = default; ++ ++#ifdef ANDROID ++ UnimplementedNativeViewState(UnimplementedNativeViewState const &previousState, folly::dynamic data){}; ++ folly::dynamic getDynamic() const { ++ return {}; ++ }; ++ MapBuffer getMapBuffer() const { ++ return MapBufferBuilder::EMPTY(); ++ }; ++#endif ++}; ++ ++class SwitchState { ++public: ++ SwitchState() = default; ++ ++#ifdef ANDROID ++ SwitchState(SwitchState const &previousState, folly::dynamic data){}; ++ folly::dynamic getDynamic() const { ++ return {}; ++ }; ++ MapBuffer getMapBuffer() const { ++ return MapBufferBuilder::EMPTY(); ++ }; ++#endif ++}; ++ ++class TraceUpdateOverlayState { ++public: ++ TraceUpdateOverlayState() = default; ++ ++#ifdef ANDROID ++ TraceUpdateOverlayState(TraceUpdateOverlayState const &previousState, folly::dynamic data){}; ++ folly::dynamic getDynamic() const { ++ return {}; ++ }; ++ MapBuffer getMapBuffer() const { ++ return MapBufferBuilder::EMPTY(); ++ }; ++#endif ++}; ++ ++} // namespace react ++} // namespace facebook +\ No newline at end of file +diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env +new file mode 100644 +index 0000000..361f5fb +--- /dev/null ++++ b/node_modules/react-native/scripts/.packager.env +@@ -0,0 +1 @@ ++export RCT_METRO_PORT=8081 +diff --git a/node_modules/react-native/sdks/hermes/hermes-engine.podspec b/node_modules/react-native/sdks/hermes/hermes-engine.podspec +new file mode 100644 +index 0000000..87d0710 +--- /dev/null ++++ b/node_modules/react-native/sdks/hermes/hermes-engine.podspec +@@ -0,0 +1,114 @@ ++# Copyright (c) Meta Platforms, Inc. and affiliates. ++# ++# This source code is licensed under the MIT license found in the ++# LICENSE file in the root directory of this source tree. ++ ++require "json" ++require_relative "./hermes-utils.rb" ++ ++react_native_path = File.join(__dir__, "..", "..") ++ ++# Whether Hermes is built for Release or Debug is determined by the PRODUCTION envvar. ++build_type = ENV['PRODUCTION'] == "1" ? :release : :debug ++ ++# package.json ++package = JSON.parse(File.read(File.join(react_native_path, "package.json"))) ++version = package['version'] ++ ++# sdks/.hermesversion ++hermestag_file = File.join(react_native_path, "sdks", ".hermesversion") ++build_from_source = ENV['BUILD_FROM_SOURCE'] === 'true' ++ ++git = "https://github.com/facebook/hermes.git" ++ ++abort_if_invalid_tarball_provided! ++ ++source = compute_hermes_source(build_from_source, hermestag_file, git, version, build_type, react_native_path) ++ ++Pod::Spec.new do |spec| ++ spec.name = "hermes-engine" ++ spec.version = version ++ spec.summary = "Hermes is a small and lightweight JavaScript engine optimized for running React Native." ++ spec.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." ++ spec.homepage = "https://hermesengine.dev" ++ spec.license = package['license'] ++ spec.author = "Facebook" ++ spec.source = source ++ spec.platforms = { :osx => "10.13", :ios => "12.4" } ++ ++ spec.preserve_paths = '**/*.*' ++ spec.source_files = '' ++ ++ spec.pod_target_xcconfig = { ++ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17", ++ "CLANG_CXX_LIBRARY" => "compiler-default" ++ }.merge!(build_type == :debug ? { "GCC_PREPROCESSOR_DEFINITIONS" => "HERMES_ENABLE_DEBUGGER=1" } : {}) ++ ++ spec.ios.vendored_frameworks = "destroot/Library/Frameworks/ios/hermes.framework" ++ spec.osx.vendored_frameworks = "destroot/Library/Frameworks/macosx/hermes.framework" ++ ++ if source[:http] then ++ ++ spec.subspec 'Pre-built' do |ss| ++ ss.preserve_paths = ["destroot/bin/*"].concat(build_type == :debug ? ["**/*.{h,c,cpp}"] : []) ++ ss.source_files = "destroot/include/**/*.h" ++ ss.exclude_files = ["destroot/include/jsi/jsi/JSIDynamic.{h,cpp}", "destroot/include/jsi/jsi/jsilib-*.{h,cpp}"] ++ ss.header_mappings_dir = "destroot/include" ++ ss.ios.vendored_frameworks = "destroot/Library/Frameworks/universal/hermes.xcframework" ++ ss.osx.vendored_frameworks = "destroot/Library/Frameworks/macosx/hermes.framework" ++ end ++ ++ elsif source[:git] then ++ ++ spec.subspec 'Hermes' do |ss| ++ ss.source_files = '' ++ ss.public_header_files = 'API/hermes/*.h' ++ ss.header_dir = 'hermes' ++ end ++ ++ spec.subspec 'JSI' do |ss| ++ ss.source_files = '' ++ ss.public_header_files = 'API/jsi/jsi/*.h' ++ ss.header_dir = 'jsi' ++ end ++ ++ spec.subspec 'Public' do |ss| ++ ss.source_files = '' ++ ss.public_header_files = 'public/hermes/Public/*.h' ++ ss.header_dir = 'hermes/Public' ++ end ++ ++ hermesc_path = "${PODS_ROOT}/hermes-engine/build_host_hermesc" ++ ++ if ENV.has_key?('HERMES_OVERRIDE_HERMESC_PATH') && File.exist?(ENV['HERMES_OVERRIDE_HERMESC_PATH']) then ++ hermesc_path = ENV['HERMES_OVERRIDE_HERMESC_PATH'] ++ end ++ ++ spec.user_target_xcconfig = { ++ 'HERMES_CLI_PATH' => "#{hermesc_path}/bin/hermesc" ++ } ++ ++ spec.prepare_command = ". #{react_native_path}/sdks/hermes-engine/utils/create-dummy-hermes-xcframework.sh" ++ ++ CMAKE_BINARY = %x(command -v cmake | tr -d '\n') ++ # NOTE: Script phases are sorted alphabetically inside Xcode project ++ spec.script_phases = [ ++ { ++ :name => '[RN] [1] Build Hermesc', ++ :script => <<-EOS ++ . ${PODS_ROOT}/../.xcode.env ++ export CMAKE_BINARY=${CMAKE_BINARY:-#{CMAKE_BINARY}} ++ . ${REACT_NATIVE_PATH}/sdks/hermes-engine/utils/build-hermesc-xcode.sh #{hermesc_path} ++ EOS ++ }, ++ { ++ :name => '[RN] [2] Build Hermes', ++ :script => <<-EOS ++ . ${PODS_ROOT}/../.xcode.env ++ export CMAKE_BINARY=${CMAKE_BINARY:-#{CMAKE_BINARY}} ++ . ${REACT_NATIVE_PATH}/sdks/hermes-engine/utils/build-hermes-xcode.sh #{version} #{hermesc_path}/ImportHermesc.cmake ++ EOS ++ } ++ ] ++ end ++end +diff --git a/node_modules/react-native/sdks/hermes/hermes-utils.rb b/node_modules/react-native/sdks/hermes/hermes-utils.rb +new file mode 100644 +index 0000000..06f3644 +--- /dev/null ++++ b/node_modules/react-native/sdks/hermes/hermes-utils.rb +@@ -0,0 +1,144 @@ ++# Copyright (c) Meta Platforms, Inc. and affiliates. ++# ++# This source code is licensed under the MIT license found in the ++# LICENSE file in the root directory of this source tree. ++ ++require 'net/http' ++require 'rexml/document' ++ ++# This function abort the build if the `HERMES_ENGINE_TARBALL_PATH` ENV variable is set with an invalid path ++def abort_if_invalid_tarball_provided!() ++ if ENV.has_key?('HERMES_ENGINE_TARBALL_PATH') && !File.exist?(ENV['HERMES_ENGINE_TARBALL_PATH']) ++ abort "[Hermes] HERMES_ENGINE_TARBALL_PATH is set, but points to a non-existing file: \"#{ENV['HERMES_ENGINE_TARBALL_PATH']}\"\nIf you don't want to use tarball, run `unset HERMES_ENGINE_TARBALL_PATH`" ++ end ++end ++ ++# It computes the right value for the hermes-engine.podspec's source. ++# - To use a specific tarball, install the dependencies with: ++# `HERMES_ENGINE_TARBALL_PATH= bundle exec pod install` ++# - To force a build from source, install the dependencies with: ++# `BUILD_FROM_SOURCE=true bundle exec pod install` ++# If none of the two are provided, Cocoapods will check whether there is a tarball for the current version ++# (either release or nightly). If not, it will fall back building from source (the latest commit on main). ++# ++# Parameters: ++# - build_from_source: boolean to force a build from source. ++# - hermestag_file: path to the hermes tag file. ++# - git: uri to the hermes repository ++# - version: current version of the pod ++# - build_type: build type of the hermes engine. It can be `:release` or `:debug` ++# - react_native_path: path to react native ++# ++# Returns: a properly configured source object ++def compute_hermes_source(build_from_source, hermestag_file, git, version, build_type, react_native_path) ++ source = {} ++ ++ if ENV.has_key?('HERMES_ENGINE_TARBALL_PATH') ++ use_tarball(source) ++ elsif build_from_source ++ if File.exist?(hermestag_file) ++ build_from_tagfile(source, git, hermestag_file) ++ else ++ build_hermes_from_source(source, git) ++ end ++ elsif hermes_artifact_exists(release_tarball_url(version, build_type)) ++ use_release_tarball(source, version, build_type) ++ elsif hermes_artifact_exists(nightly_tarball_url(version).gsub("\\", "")) ++ use_nightly_tarball(source, react_native_path, version) ++ else ++ build_hermes_from_source(source, git) ++ end ++ ++ return source ++end ++ ++def use_tarball(source) ++ tarball_path = ENV['HERMES_ENGINE_TARBALL_PATH'] ++ putsIfPodPresent("[Hermes] Using pre-built Hermes binaries from local path: #{tarball_path}") ++ source[:http] = "file://#{tarball_path}" ++end ++ ++def build_from_tagfile(source, git, hermestag_file) ++ hermestag = File.read(hermestag_file).strip ++ putsIfPodPresent("[Hermes] Building Hermes from source from tag #{hermestag}...") ++ source[:git] = git ++ source[:tag] = hermestag ++end ++ ++def use_release_tarball(source, version, build_type) ++ # Sample url from Maven: ++ # https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.0/react-native-artifacts-0.71.0-hermes-ios-debug.tar.gz ++ putsIfPodPresent('[Hermes] Using the release tarball from Maven Central', 'info') ++ source[:http] = release_tarball_url(version, build_type) ++end ++ ++def release_tarball_url(version, build_type) ++ return "https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/#{version}/react-native-artifacts-#{version}-hermes-ios-#{build_type.to_s}.tar.gz" ++end ++ ++def use_nightly_tarball(source, react_native_path, version) ++ putsIfPodPresent('[Hermes] Nightly version, download pre-built for Hermes') ++ destination_path = download_nightly_hermes(react_native_path, version) ++ # set tarball as hermes engine ++ source[:http] = "file://#{destination_path}" ++end ++ ++def putsIfPodPresent(message, level = 'warning') ++ unless Object.const_defined?("Pod::UI") ++ return ++ end ++ ++ case level ++ when 'info' ++ Pod::UI.puts message.green ++ when 'error' ++ Pod::UI.puts message.red ++ else ++ Pod::UI.puts message.yellow ++ end ++end ++ ++# This function downloads the nightly prebuilt version of Hermes based on the passed version ++# and save it in the node_module/react_native/sdks/downloads folder ++# It then returns the path to the hermes tarball ++# ++# Parameters ++# - react_native_path: the path to the React Native folder in node modules. It is used as root path to store the Hermes tarball ++# - version: the version of React Native that requires the Hermes tarball ++# Returns: the path to the downloaded Hermes tarball ++def download_nightly_hermes(react_native_path, version) ++ tarball_url = nightly_tarball_url(version) ++ ++ destination_folder = "#{react_native_path}/sdks/downloads" ++ destination_path = "#{destination_folder}/hermes-ios-#{version}.tar.gz" ++ ++ unless File.exist?(destination_path) ++ # Download to a temporary file first so we don't cache incomplete downloads. ++ tmp_file = "#{destination_folder}/hermes-ios.download" ++ `mkdir -p "#{destination_folder}" && curl "#{tarball_url}" -Lo "#{tmp_file}" && mv "#{tmp_file}" "#{destination_path}"` ++ end ++ return destination_path ++end ++ ++def nightly_tarball_url(version) ++ params = "r=snapshots\&g=com.facebook.react\&a=react-native-artifacts\&c=hermes-ios-debug\&e=tar.gz\&v=#{version}-SNAPSHOT" ++ return "http://oss.sonatype.org/service/local/artifact/maven/redirect\?#{params}" ++end ++ ++def build_hermes_from_source(source, git) ++ putsIfPodPresent('[Hermes] Installing hermes-engine may take slightly longer, building Hermes compiler from source...') ++ source[:git] = git ++ source[:commit] = `git ls-remote https://github.com/facebook/hermes main | cut -f 1`.strip ++end ++ ++# This function checks that Hermes artifact exists. ++# As of now it should check it on the Maven repo. ++# ++# Parameters ++# - version: the version of React Native ++# - build_type: debug or release ++def hermes_artifact_exists(tarball_url) ++ # -L is used to follow redirects, useful for the nightlies ++ # I also needed to wrap the url in quotes to avoid escaping & and ?. ++ return (`curl -o /dev/null --silent -Iw '%{http_code}' -L "#{tarball_url}"` == "200") ++end +diff --git a/node_modules/react-native/third-party-podspecs/boost.podspec b/node_modules/react-native/third-party-podspecs/boost.podspec +index 3d9331c..b1e2c6a 100644 +--- a/node_modules/react-native/third-party-podspecs/boost.podspec ++++ b/node_modules/react-native/third-party-podspecs/boost.podspec +@@ -10,7 +10,7 @@ Pod::Spec.new do |spec| + spec.homepage = 'http://www.boost.org' + spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.' + spec.authors = 'Rene Rivera' +- spec.source = { :http => 'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2', ++ spec.source = { :http => 'https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2', + :sha256 => 'f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41' } + + # Pinning to the same version as React.podspec. diff --git a/sample/ios/Podfile.lock b/sample/ios/Podfile.lock index b2ffad4..a195eeb 100644 --- a/sample/ios/Podfile.lock +++ b/sample/ios/Podfile.lock @@ -1,19 +1,19 @@ PODS: - boost (1.76.0) - DoubleConversion (1.1.6) - - FBLazyVector (0.72.7) - - FBReactNativeSpec (0.72.7): - - RCT-Folly (= 2021.07.22.00) - - RCTRequired (= 0.72.7) - - RCTTypeSafety (= 0.72.7) - - React-Core (= 0.72.7) - - React-jsi (= 0.72.7) - - ReactCommon/turbomodule/core (= 0.72.7) + - FBLazyVector (0.72.8) + - FBReactNativeSpec (0.72.8): + - RCT-Folly (= 2021.07.22.00) + - RCTRequired (= 0.72.8) + - RCTTypeSafety (= 0.72.8) + - React-Core (= 0.72.8) + - React-jsi (= 0.72.8) + - ReactCommon/turbomodule/core (= 0.72.8) - fmt (6.2.1) - glog (0.3.5) - - hermes-engine (0.72.7): - - hermes-engine/Pre-built (= 0.72.7) - - hermes-engine/Pre-built (0.72.7) + - hermes-engine (0.72.8): + - hermes-engine/Pre-built (= 0.72.8) + - hermes-engine/Pre-built (0.72.8) - libevent (2.1.12) - RCT-Folly (2021.07.22.00): - boost @@ -32,26 +32,26 @@ PODS: - fmt (~> 6.2.1) - glog - libevent - - RCTRequired (0.72.7) - - RCTTypeSafety (0.72.7): - - FBLazyVector (= 0.72.7) - - RCTRequired (= 0.72.7) - - React-Core (= 0.72.7) - - React (0.72.7): - - React-Core (= 0.72.7) - - React-Core/DevSupport (= 0.72.7) - - React-Core/RCTWebSocket (= 0.72.7) - - React-RCTActionSheet (= 0.72.7) - - React-RCTAnimation (= 0.72.7) - - React-RCTBlob (= 0.72.7) - - React-RCTImage (= 0.72.7) - - React-RCTLinking (= 0.72.7) - - React-RCTNetwork (= 0.72.7) - - React-RCTSettings (= 0.72.7) - - React-RCTText (= 0.72.7) - - React-RCTVibration (= 0.72.7) - - React-callinvoker (0.72.7) - - React-Codegen (0.72.7): + - RCTRequired (0.72.8) + - RCTTypeSafety (0.72.8): + - FBLazyVector (= 0.72.8) + - RCTRequired (= 0.72.8) + - React-Core (= 0.72.8) + - React (0.72.8): + - React-Core (= 0.72.8) + - React-Core/DevSupport (= 0.72.8) + - React-Core/RCTWebSocket (= 0.72.8) + - React-RCTActionSheet (= 0.72.8) + - React-RCTAnimation (= 0.72.8) + - React-RCTBlob (= 0.72.8) + - React-RCTImage (= 0.72.8) + - React-RCTLinking (= 0.72.8) + - React-RCTNetwork (= 0.72.8) + - React-RCTSettings (= 0.72.8) + - React-RCTText (= 0.72.8) + - React-RCTVibration (= 0.72.8) + - React-callinvoker (0.72.8) + - React-Codegen (0.72.8): - DoubleConversion - FBReactNativeSpec - glog @@ -66,11 +66,11 @@ PODS: - React-rncore - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - - React-Core (0.72.7): + - React-Core (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-Core/Default (= 0.72.7) + - React-Core/Default (= 0.72.8) - React-cxxreact - React-hermes - React-jsi @@ -80,7 +80,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/CoreModulesHeaders (0.72.7): + - React-Core/CoreModulesHeaders (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) @@ -94,7 +94,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/Default (0.72.7): + - React-Core/Default (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) @@ -107,23 +107,23 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/DevSupport (0.72.7): + - React-Core/DevSupport (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-Core/Default (= 0.72.7) - - React-Core/RCTWebSocket (= 0.72.7) + - React-Core/Default (= 0.72.8) + - React-Core/RCTWebSocket (= 0.72.8) - React-cxxreact - React-hermes - React-jsi - React-jsiexecutor - - React-jsinspector (= 0.72.7) + - React-jsinspector (= 0.72.8) - React-perflogger - React-runtimeexecutor - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTActionSheetHeaders (0.72.7): + - React-Core/RCTActionSheetHeaders (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) @@ -137,7 +137,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTAnimationHeaders (0.72.7): + - React-Core/RCTAnimationHeaders (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) @@ -151,7 +151,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTBlobHeaders (0.72.7): + - React-Core/RCTBlobHeaders (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) @@ -165,7 +165,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTImageHeaders (0.72.7): + - React-Core/RCTImageHeaders (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) @@ -179,7 +179,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTLinkingHeaders (0.72.7): + - React-Core/RCTLinkingHeaders (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) @@ -193,7 +193,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTNetworkHeaders (0.72.7): + - React-Core/RCTNetworkHeaders (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) @@ -207,7 +207,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTSettingsHeaders (0.72.7): + - React-Core/RCTSettingsHeaders (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) @@ -221,7 +221,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTTextHeaders (0.72.7): + - React-Core/RCTTextHeaders (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) @@ -235,7 +235,7 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTVibrationHeaders (0.72.7): + - React-Core/RCTVibrationHeaders (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) @@ -249,11 +249,11 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-Core/RCTWebSocket (0.72.7): + - React-Core/RCTWebSocket (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-Core/Default (= 0.72.7) + - React-Core/Default (= 0.72.8) - React-cxxreact - React-hermes - React-jsi @@ -263,61 +263,61 @@ PODS: - React-utils - SocketRocket (= 0.6.1) - Yoga - - React-CoreModules (0.72.7): + - React-CoreModules (0.72.8): - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.72.7) - - React-Codegen (= 0.72.7) - - React-Core/CoreModulesHeaders (= 0.72.7) - - React-jsi (= 0.72.7) + - RCTTypeSafety (= 0.72.8) + - React-Codegen (= 0.72.8) + - React-Core/CoreModulesHeaders (= 0.72.8) + - React-jsi (= 0.72.8) - React-RCTBlob - - React-RCTImage (= 0.72.7) - - ReactCommon/turbomodule/core (= 0.72.7) + - React-RCTImage (= 0.72.8) + - ReactCommon/turbomodule/core (= 0.72.8) - SocketRocket (= 0.6.1) - - React-cxxreact (0.72.7): + - React-cxxreact (0.72.8): - boost (= 1.76.0) - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-callinvoker (= 0.72.7) - - React-debug (= 0.72.7) - - React-jsi (= 0.72.7) - - React-jsinspector (= 0.72.7) - - React-logger (= 0.72.7) - - React-perflogger (= 0.72.7) - - React-runtimeexecutor (= 0.72.7) - - React-debug (0.72.7) - - React-hermes (0.72.7): + - React-callinvoker (= 0.72.8) + - React-debug (= 0.72.8) + - React-jsi (= 0.72.8) + - React-jsinspector (= 0.72.8) + - React-logger (= 0.72.8) + - React-perflogger (= 0.72.8) + - React-runtimeexecutor (= 0.72.8) + - React-debug (0.72.8) + - React-hermes (0.72.8): - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - RCT-Folly/Futures (= 2021.07.22.00) - - React-cxxreact (= 0.72.7) + - React-cxxreact (= 0.72.8) - React-jsi - - React-jsiexecutor (= 0.72.7) - - React-jsinspector (= 0.72.7) - - React-perflogger (= 0.72.7) - - React-jsi (0.72.7): + - React-jsiexecutor (= 0.72.8) + - React-jsinspector (= 0.72.8) + - React-perflogger (= 0.72.8) + - React-jsi (0.72.8): - boost (= 1.76.0) - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-jsiexecutor (0.72.7): + - React-jsiexecutor (0.72.8): - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-cxxreact (= 0.72.7) - - React-jsi (= 0.72.7) - - React-perflogger (= 0.72.7) - - React-jsinspector (0.72.7) - - React-logger (0.72.7): + - React-cxxreact (= 0.72.8) + - React-jsi (= 0.72.8) + - React-perflogger (= 0.72.8) + - React-jsinspector (0.72.8) + - React-logger (0.72.8): - glog - react-native-safe-area-context (4.7.4): - React-Core - - React-NativeModulesApple (0.72.7): + - React-NativeModulesApple (0.72.8): - hermes-engine - React-callinvoker - React-Core @@ -326,17 +326,17 @@ PODS: - React-runtimeexecutor - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - - React-perflogger (0.72.7) - - React-RCTActionSheet (0.72.7): - - React-Core/RCTActionSheetHeaders (= 0.72.7) - - React-RCTAnimation (0.72.7): - - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.72.7) - - React-Codegen (= 0.72.7) - - React-Core/RCTAnimationHeaders (= 0.72.7) - - React-jsi (= 0.72.7) - - ReactCommon/turbomodule/core (= 0.72.7) - - React-RCTAppDelegate (0.72.7): + - React-perflogger (0.72.8) + - React-RCTActionSheet (0.72.8): + - React-Core/RCTActionSheetHeaders (= 0.72.8) + - React-RCTAnimation (0.72.8): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.72.8) + - React-Codegen (= 0.72.8) + - React-Core/RCTAnimationHeaders (= 0.72.8) + - React-jsi (= 0.72.8) + - ReactCommon/turbomodule/core (= 0.72.8) + - React-RCTAppDelegate (0.72.8): - RCT-Folly - RCTRequired - RCTTypeSafety @@ -348,54 +348,54 @@ PODS: - React-RCTNetwork - React-runtimescheduler - ReactCommon/turbomodule/core - - React-RCTBlob (0.72.7): + - React-RCTBlob (0.72.8): - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-Codegen (= 0.72.7) - - React-Core/RCTBlobHeaders (= 0.72.7) - - React-Core/RCTWebSocket (= 0.72.7) - - React-jsi (= 0.72.7) - - React-RCTNetwork (= 0.72.7) - - ReactCommon/turbomodule/core (= 0.72.7) - - React-RCTImage (0.72.7): - - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.72.7) - - React-Codegen (= 0.72.7) - - React-Core/RCTImageHeaders (= 0.72.7) - - React-jsi (= 0.72.7) - - React-RCTNetwork (= 0.72.7) - - ReactCommon/turbomodule/core (= 0.72.7) - - React-RCTLinking (0.72.7): - - React-Codegen (= 0.72.7) - - React-Core/RCTLinkingHeaders (= 0.72.7) - - React-jsi (= 0.72.7) - - ReactCommon/turbomodule/core (= 0.72.7) - - React-RCTNetwork (0.72.7): - - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.72.7) - - React-Codegen (= 0.72.7) - - React-Core/RCTNetworkHeaders (= 0.72.7) - - React-jsi (= 0.72.7) - - ReactCommon/turbomodule/core (= 0.72.7) - - React-RCTSettings (0.72.7): - - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.72.7) - - React-Codegen (= 0.72.7) - - React-Core/RCTSettingsHeaders (= 0.72.7) - - React-jsi (= 0.72.7) - - ReactCommon/turbomodule/core (= 0.72.7) - - React-RCTText (0.72.7): - - React-Core/RCTTextHeaders (= 0.72.7) - - React-RCTVibration (0.72.7): - - RCT-Folly (= 2021.07.22.00) - - React-Codegen (= 0.72.7) - - React-Core/RCTVibrationHeaders (= 0.72.7) - - React-jsi (= 0.72.7) - - ReactCommon/turbomodule/core (= 0.72.7) - - React-rncore (0.72.7) - - React-runtimeexecutor (0.72.7): - - React-jsi (= 0.72.7) - - React-runtimescheduler (0.72.7): + - React-Codegen (= 0.72.8) + - React-Core/RCTBlobHeaders (= 0.72.8) + - React-Core/RCTWebSocket (= 0.72.8) + - React-jsi (= 0.72.8) + - React-RCTNetwork (= 0.72.8) + - ReactCommon/turbomodule/core (= 0.72.8) + - React-RCTImage (0.72.8): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.72.8) + - React-Codegen (= 0.72.8) + - React-Core/RCTImageHeaders (= 0.72.8) + - React-jsi (= 0.72.8) + - React-RCTNetwork (= 0.72.8) + - ReactCommon/turbomodule/core (= 0.72.8) + - React-RCTLinking (0.72.8): + - React-Codegen (= 0.72.8) + - React-Core/RCTLinkingHeaders (= 0.72.8) + - React-jsi (= 0.72.8) + - ReactCommon/turbomodule/core (= 0.72.8) + - React-RCTNetwork (0.72.8): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.72.8) + - React-Codegen (= 0.72.8) + - React-Core/RCTNetworkHeaders (= 0.72.8) + - React-jsi (= 0.72.8) + - ReactCommon/turbomodule/core (= 0.72.8) + - React-RCTSettings (0.72.8): + - RCT-Folly (= 2021.07.22.00) + - RCTTypeSafety (= 0.72.8) + - React-Codegen (= 0.72.8) + - React-Core/RCTSettingsHeaders (= 0.72.8) + - React-jsi (= 0.72.8) + - ReactCommon/turbomodule/core (= 0.72.8) + - React-RCTText (0.72.8): + - React-Core/RCTTextHeaders (= 0.72.8) + - React-RCTVibration (0.72.8): + - RCT-Folly (= 2021.07.22.00) + - React-Codegen (= 0.72.8) + - React-Core/RCTVibrationHeaders (= 0.72.8) + - React-jsi (= 0.72.8) + - ReactCommon/turbomodule/core (= 0.72.8) + - React-rncore (0.72.8) + - React-runtimeexecutor (0.72.8): + - React-jsi (= 0.72.8) + - React-runtimescheduler (0.72.8): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) @@ -403,30 +403,30 @@ PODS: - React-debug - React-jsi - React-runtimeexecutor - - React-utils (0.72.7): + - React-utils (0.72.8): - glog - RCT-Folly (= 2021.07.22.00) - React-debug - - ReactCommon/turbomodule/bridging (0.72.7): + - ReactCommon/turbomodule/bridging (0.72.8): - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-callinvoker (= 0.72.7) - - React-cxxreact (= 0.72.7) - - React-jsi (= 0.72.7) - - React-logger (= 0.72.7) - - React-perflogger (= 0.72.7) - - ReactCommon/turbomodule/core (0.72.7): + - React-callinvoker (= 0.72.8) + - React-cxxreact (= 0.72.8) + - React-jsi (= 0.72.8) + - React-logger (= 0.72.8) + - React-perflogger (= 0.72.8) + - ReactCommon/turbomodule/core (0.72.8): - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-callinvoker (= 0.72.7) - - React-cxxreact (= 0.72.7) - - React-jsi (= 0.72.7) - - React-logger (= 0.72.7) - - React-perflogger (= 0.72.7) + - React-callinvoker (= 0.72.8) + - React-cxxreact (= 0.72.8) + - React-jsi (= 0.72.8) + - React-logger (= 0.72.8) + - React-perflogger (= 0.72.8) - RNCMaskedView (0.1.11): - React - RNReanimated (3.5.4): @@ -467,7 +467,7 @@ PODS: - RNVectorIcons (10.0.2): - RCT-Folly (= 2021.07.22.00) - React-Core - - ShopifyCheckoutKit (0.8.0) + - ShopifyCheckoutKit (0.8.1) - SocketRocket (0.6.1) - SwiftLint (0.54.0) - Yoga (1.14.0) @@ -624,56 +624,56 @@ EXTERNAL SOURCES: :path: "../../node_modules/react-native/ReactCommon/yoga" SPEC CHECKSUMS: - boost: 57d2868c099736d80fcd648bf211b4431e51a558 + boost: 64032b9e9b938fda23325e68a3771f0fabf414dc DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 - FBLazyVector: 5fbbff1d7734827299274638deb8ba3024f6c597 - FBReactNativeSpec: 8f71d1787ceeb59622151fd9d695e0467f2b5e71 + FBLazyVector: df077ae30c8148bcfdc8f886450eb2eefb94a5be + FBReactNativeSpec: 3fd2ed8e00e3c1821146c1364cbc95f5c4bde6cb fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b - hermes-engine: 9180d43df05c1ed658a87cc733dc3044cf90c00a + hermes-engine: 32c50dea8bf400d1414d26cb22a5e8a1ceb66a5e libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 - RCTRequired: 83bca1c184feb4d2e51c72c8369b83d641443f95 - RCTTypeSafety: 13c4a87a16d7db6cd66006ce9759f073402ef85b - React: e67aa9f99957c7611c392b5e49355d877d6525e2 - React-callinvoker: 2790c09d964c2e5404b5410cde91b152e3746b7b - React-Codegen: e6e05e105ca7cdb990f4d609985a2a689d8d0653 - React-Core: 9283f1e7d0d5e3d33ad298547547b1b43912534c - React-CoreModules: 6312c9b2fec4329d9ae6a2b8c350032d1664c51b - React-cxxreact: 7da72565656c8ac7f97c9a031d0b199bbdec0640 - React-debug: 4accb2b9dc09b575206d2c42f4082990a52ae436 - React-hermes: 1299a94f255f59a72d5baa54a2ca2e1eee104947 - React-jsi: 2208de64c3a41714ac04e86975386fc49116ea13 - React-jsiexecutor: c49502e5d02112247ee4526bc3ccfc891ae3eb9b - React-jsinspector: 8baadae51f01d867c3921213a25ab78ab4fbcd91 - React-logger: 8edc785c47c8686c7962199a307015e2ce9a0e4f + RCTRequired: 182d3e71f3ee4edfa87d4bf82eeea61510922b2a + RCTTypeSafety: 61b90f18bbc961c01ae4cfcb80830953eca73573 + React: 1beea0f4f564f96b94159811340b6c09dc61530b + React-callinvoker: 2e055aa95f8169c20fade24f82c49a190ab7de45 + React-Codegen: b9803882fc2541fb48167c9cf34c9c7354b12b17 + React-Core: 1d8665e11f7ea4f0cd82aea8eab6a5c53e597cbd + React-CoreModules: 6e57bbb2ac83e5dd4c960ce3218f4fb3ac923bb9 + React-cxxreact: d0ef80b5be65c1aad01e9413539315b5ddd26b15 + React-debug: 0ee4c115f009d421088b781241080fa9b9e9c9de + React-hermes: ab440bb0114ffb24fcb83f1f7d4a0b183e33bd27 + React-jsi: 0921d5fe8094d75d472b146137bb5f46102d7974 + React-jsiexecutor: 03baea362e7475543e7cd091cb4fcf2bd78e041e + React-jsinspector: fdf0a09bddecf9ce8da830bcb89a9814230c04a4 + React-logger: c2e7bb772d6e9fc3d0109d1243b81546a9c93c0f react-native-safe-area-context: 2cd91d532de12acdb0a9cbc8d43ac72a8e4c897c - React-NativeModulesApple: b6868ee904013a7923128892ee4a032498a1024a - React-perflogger: 31ea61077185eb1428baf60c0db6e2886f141a5a - React-RCTActionSheet: 392090a3abc8992eb269ef0eaa561750588fc39d - React-RCTAnimation: 4b3cc6a29474bc0d78c4f04b52ab59bf760e8a9b - React-RCTAppDelegate: 89b015b29885109addcabecdf3b2e833905437c7 - React-RCTBlob: 3e23dcbe6638897b5605e46d0d62955d78e8d27b - React-RCTImage: 8a5d339d614a90a183fc1b8b6a7eb44e2e703943 - React-RCTLinking: b37dfbf646d77c326f9eae094b1fcd575b1c24c7 - React-RCTNetwork: 8bed9b2461c7d8a7d14e63df9b16181c448beebc - React-RCTSettings: 506a5f09a455123a8873801b70aa7b4010b76b01 - React-RCTText: 3c71ecaad8ee010b79632ea2590f86c02f5cce17 - React-RCTVibration: d1b78ca38f61ea4b3e9ebb2ddbd0b5662631d99b - React-rncore: 6908c52ffaa396887dd3263fb505cd78cf2a10dd - React-runtimeexecutor: 47b0a2d5bbb416db65ef881a6f7bdcfefa0001ab - React-runtimescheduler: 7649c3b46c8dee1853691ecf60146a16ae59253c - React-utils: 56838edeaaf651220d1e53cd0b8934fb8ce68415 - ReactCommon: 5f704096ccf7733b390f59043b6fa9cc180ee4f6 + React-NativeModulesApple: f6153767facad322a10b07fa2dbd747abbe10302 + React-perflogger: 2a7d221549cd5b69e95c5afa2e8d336f0465e1ec + React-RCTActionSheet: 449042d31545790748a97d9b35d4acb683e2ad00 + React-RCTAnimation: 1f4c8ce38087dbbb7f11159d8ba4eacd4fa6f06a + React-RCTAppDelegate: 6e095f409ff43b9065249d569e3f6bb5807be08b + React-RCTBlob: b63c4ddf33347557a4adaba553b02a23f4b49e44 + React-RCTImage: 62a897828f129e2220d27b51ce9d965efed547ab + React-RCTLinking: 465ad65daf762d5b336973c988bdea0e51697467 + React-RCTNetwork: 33b47ffe3b4192097e787a23cbbb1b5f495337ff + React-RCTSettings: 37d04a01ef8806ceeb281d7b90c85d8600a0642f + React-RCTText: 9a811835f8888d34aa9377333ca5d33ea46b3006 + React-RCTVibration: 9f4d7f480b79141e1bb16ad76d46068e5ac4d378 + React-rncore: 401c769759f208ca64d3cd56b3b802c01cf00f07 + React-runtimeexecutor: 4e97887d9cf661def3ffdb0f48c41d4e2afb31d0 + React-runtimescheduler: 607a5832f8025dfe0d1178e78b447dd6d11bc012 + React-utils: 96f4588532614099a6d67a2b7c5912e1a35d6403 + ReactCommon: c111aa0c8006650d77a651e155f4112f97761dfd RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489 RNReanimated: b3fe5092e7c7da790180e28c48f31e6b2bd3bfec RNScreens: 3c2d122f5e08c192e254c510b212306da97d2581 - RNShopifyCheckoutSheetKit: 6cc2bc557b090de1e82f22f5df42c54dc93e0a8f + RNShopifyCheckoutSheetKit: afef7f366c3658c91f2d536575d6f16280d3fccc RNVectorIcons: 23b6e11af4aaf104d169b1b0afa7e5cf96c676ce - ShopifyCheckoutKit: bc3965f57c8efb4436c38b919be144faca71d508 + ShopifyCheckoutKit: a8bfcf64d352cd14524b9acdd96db95ffdbcd343 SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 SwiftLint: c1de071d9d08c8aba837545f6254315bc900e211 - Yoga: 4c3aa327e4a6a23eeacd71f61c81df1bcdf677d5 + Yoga: 11d7931afb89721f39cf553a78767b81c7fbea1f PODFILE CHECKSUM: 501ff3bc049a7b8b50204bc9220ab4e2b9c6138b diff --git a/yarn.lock b/yarn.lock index 3c807f9..146c886 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2479,17 +2479,20 @@ __metadata: languageName: node linkType: hard -"@react-native/codegen@npm:^0.72.7": - version: 0.72.7 - resolution: "@react-native/codegen@npm:0.72.7" +"@react-native/codegen@npm:^0.72.8": + version: 0.72.8 + resolution: "@react-native/codegen@npm:0.72.8" dependencies: "@babel/parser": "npm:^7.20.0" flow-parser: "npm:^0.206.0" + glob: "npm:^7.1.1" + invariant: "npm:^2.2.4" jscodeshift: "npm:^0.14.0" + mkdirp: "npm:^0.5.1" nullthrows: "npm:^1.1.1" peerDependencies: "@babel/preset-env": ^7.1.6 - checksum: 0697b3d12476bb5e0cf9e56c38c19df2ead88ace83eac9e411f16a2c6f530c4b7a6d723c4c56b291fa447d46f5273de57895ab3e0445f840d3f685804554af79 + checksum: 16ae3151263c2e21386ac79e9e2d3b55cabaed7c75743d4e985964d4da3f4162f1702e82cb62089b2150f711ee779ca4d3c8aef23137bcc98080fef40b1801a5 languageName: node linkType: hard @@ -2860,13 +2863,13 @@ __metadata: languageName: node linkType: hard -"@types/react-native@npm:0.72.7": - version: 0.72.7 - resolution: "@types/react-native@npm:0.72.7" +"@types/react-native@npm:0.72.8": + version: 0.72.8 + resolution: "@types/react-native@npm:0.72.8" dependencies: "@react-native/virtualized-lists": "npm:^0.72.4" "@types/react": "npm:*" - checksum: 02c83d0ce17869709aaeaa8f4870df03087e360e2a87f5bd8be10b165fc5c02e5b32954f62847bb8876f294b78f97300e51359c6ebe50a253ccb4e5c14c74c62 + checksum: 2dde171c2331ac8f6102f9b7a88616c695d158d3140e7b7aee3a393e3645f2aaa202b3411ae371fbbcd28386459fca8d47bd5d3801a0adfdd8815a8ba5c0d5fe languageName: node linkType: hard @@ -3120,6 +3123,13 @@ __metadata: languageName: node linkType: hard +"@yarnpkg/lockfile@npm:^1.1.0": + version: 1.1.0 + resolution: "@yarnpkg/lockfile@npm:1.1.0" + checksum: 0bfa50a3d756623d1f3409bc23f225a1d069424dbc77c6fd2f14fb377390cd57ec703dc70286e081c564be9051ead9ba85d81d66a3e68eeb6eb506d4e0c0fbda + languageName: node + linkType: hard + "abbrev@npm:^2.0.0": version: 2.0.0 resolution: "abbrev@npm:2.0.0" @@ -3436,6 +3446,13 @@ __metadata: languageName: node linkType: hard +"at-least-node@npm:^1.0.0": + version: 1.0.0 + resolution: "at-least-node@npm:1.0.0" + checksum: 4c058baf6df1bc5a1697cf182e2029c58cd99975288a13f9e70068ef5d6f4e1f1fd7c4d2c3c4912eae44797d1725be9700995736deca441b39f3e66d8dee97ef + languageName: node + linkType: hard + "available-typed-arrays@npm:^1.0.5": version: 1.0.5 resolution: "available-typed-arrays@npm:1.0.5" @@ -3851,9 +3868,9 @@ __metadata: languageName: node linkType: hard -"checkout-kit-react-native@workspace:.": +"checkout-sheet-kit-react-native@workspace:.": version: 0.0.0-use.local - resolution: "checkout-kit-react-native@workspace:." + resolution: "checkout-sheet-kit-react-native@workspace:." dependencies: "@babel/core": "npm:^7.20.0" "@babel/preset-env": "npm:^7.20.0" @@ -3863,16 +3880,18 @@ __metadata: "@tsconfig/react-native": "npm:^3.0.0" "@types/jest": "npm:^29.5.10" "@types/react": "npm:^18" - "@types/react-native": "npm:0.72.7" + "@types/react-native": "npm:0.72.8" "@types/react-native-dotenv": "npm:^0.2.1" "@types/react-test-renderer": "npm:^18.0.0" babel-jest: "npm:^29.7.0" eslint: "npm:^8.19.0" jest: "npm:^29.2.1" + patch-package: "npm:^8.0.0" pod-install: "npm:^0.1.39" + postinstall-postinstall: "npm:^2.1.0" prettier: "npm:^2.4.1" react: "npm:^18.2.0" - react-native: "npm:0.72.7" + react-native: "npm:0.72.8" react-native-dotenv: "npm:^3.4.9" react-native-gesture-handler: "npm:^2.14.0" react-native-gradle-plugin: "npm:^0.71.19" @@ -3897,7 +3916,7 @@ __metadata: languageName: node linkType: hard -"ci-info@npm:^3.2.0": +"ci-info@npm:^3.2.0, ci-info@npm:^3.7.0": version: 3.9.0 resolution: "ci-info@npm:3.9.0" checksum: 6f0109e36e111684291d46123d491bc4e7b7a1934c3a20dea28cba89f1d4a03acd892f5f6a81ed3855c38647e285a150e3c9ba062e38943bef57fee6c1554c3a @@ -5172,6 +5191,15 @@ __metadata: languageName: node linkType: hard +"find-yarn-workspace-root@npm:^2.0.0": + version: 2.0.0 + resolution: "find-yarn-workspace-root@npm:2.0.0" + dependencies: + micromatch: "npm:^4.0.2" + checksum: b0d3843013fbdaf4e57140e0165889d09fa61745c9e85da2af86e54974f4cc9f1967e40f0d8fc36a79d53091f0829c651d06607d552582e53976f3cd8f4e5689 + languageName: node + linkType: hard + "flat-cache@npm:^3.0.4": version: 3.2.0 resolution: "flat-cache@npm:3.2.0" @@ -5259,6 +5287,18 @@ __metadata: languageName: node linkType: hard +"fs-extra@npm:^9.0.0": + version: 9.1.0 + resolution: "fs-extra@npm:9.1.0" + dependencies: + at-least-node: "npm:^1.0.0" + graceful-fs: "npm:^4.2.0" + jsonfile: "npm:^6.0.1" + universalify: "npm:^2.0.0" + checksum: 9b808bd884beff5cb940773018179a6b94a966381d005479f00adda6b44e5e3d4abf765135773d849cc27efe68c349e4a7b86acd7d3306d5932c14f3a4b17a92 + languageName: node + linkType: hard + "fs-minipass@npm:^2.0.0": version: 2.1.0 resolution: "fs-minipass@npm:2.1.0" @@ -5421,7 +5461,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:^7.1.3, glob@npm:^7.1.4": +"glob@npm:^7.1.1, glob@npm:^7.1.3, glob@npm:^7.1.4": version: 7.2.3 resolution: "glob@npm:7.2.3" dependencies: @@ -5911,6 +5951,15 @@ __metadata: languageName: node linkType: hard +"is-docker@npm:^2.0.0": + version: 2.2.1 + resolution: "is-docker@npm:2.2.1" + bin: + is-docker: cli.js + checksum: e828365958d155f90c409cdbe958f64051d99e8aedc2c8c4cd7c89dcf35329daed42f7b99346f7828df013e27deb8f721cf9408ba878c76eb9e8290235fbcdcc + languageName: node + linkType: hard + "is-extglob@npm:^2.1.1": version: 2.1.1 resolution: "is-extglob@npm:2.1.1" @@ -6178,6 +6227,15 @@ __metadata: languageName: node linkType: hard +"is-wsl@npm:^2.1.1": + version: 2.2.0 + resolution: "is-wsl@npm:2.2.0" + dependencies: + is-docker: "npm:^2.0.0" + checksum: a6fa2d370d21be487c0165c7a440d567274fbba1a817f2f0bfa41cc5e3af25041d84267baa22df66696956038a43973e72fca117918c91431920bdef490fa25e + languageName: node + linkType: hard + "isarray@npm:^2.0.5": version: 2.0.5 resolution: "isarray@npm:2.0.5" @@ -6931,6 +6989,18 @@ __metadata: languageName: node linkType: hard +"json-stable-stringify@npm:^1.0.2": + version: 1.1.0 + resolution: "json-stable-stringify@npm:1.1.0" + dependencies: + call-bind: "npm:^1.0.5" + isarray: "npm:^2.0.5" + jsonify: "npm:^0.0.1" + object-keys: "npm:^1.1.1" + checksum: 8888ac86dbf55c1d494bdf40705171c30884686911c37383d3aab777754bf5c1d60dc7a4dfd67f32ba37b184da5c99948a382f1c2912895a35453002e253314b + languageName: node + linkType: hard + "json5@npm:^2.1.1, json5@npm:^2.2.1, json5@npm:^2.2.3": version: 2.2.3 resolution: "json5@npm:2.2.3" @@ -6965,6 +7035,13 @@ __metadata: languageName: node linkType: hard +"jsonify@npm:^0.0.1": + version: 0.0.1 + resolution: "jsonify@npm:0.0.1" + checksum: 7f5499cdd59a0967ed35bda48b7cec43d850bbc8fb955cdd3a1717bb0efadbe300724d5646de765bb7a99fc1c3ab06eb80d93503c6faaf99b4ff50a3326692f6 + languageName: node + linkType: hard + "jsx-ast-utils@npm:^2.4.1 || ^3.0.0": version: 3.3.5 resolution: "jsx-ast-utils@npm:3.3.5" @@ -6993,6 +7070,15 @@ __metadata: languageName: node linkType: hard +"klaw-sync@npm:^6.0.0": + version: 6.0.0 + resolution: "klaw-sync@npm:6.0.0" + dependencies: + graceful-fs: "npm:^4.1.11" + checksum: 00d8e4c48d0d699b743b3b028e807295ea0b225caf6179f51029e19783a93ad8bb9bccde617d169659fbe99559d73fb35f796214de031d0023c26b906cecd70a + languageName: node + linkType: hard + "kleur@npm:^3.0.3": version: 3.0.3 resolution: "kleur@npm:3.0.3" @@ -7542,7 +7628,7 @@ __metadata: languageName: node linkType: hard -"micromatch@npm:^4.0.4": +"micromatch@npm:^4.0.2, micromatch@npm:^4.0.4": version: 4.0.5 resolution: "micromatch@npm:4.0.5" dependencies: @@ -8036,6 +8122,16 @@ __metadata: languageName: node linkType: hard +"open@npm:^7.4.2": + version: 7.4.2 + resolution: "open@npm:7.4.2" + dependencies: + is-docker: "npm:^2.0.0" + is-wsl: "npm:^2.1.1" + checksum: 77573a6a68f7364f3a19a4c80492712720746b63680ee304555112605ead196afe91052bd3c3d165efdf4e9d04d255e87de0d0a77acec11ef47fd5261251813f + languageName: node + linkType: hard + "optimism@npm:^0.17.5": version: 0.17.5 resolution: "optimism@npm:0.17.5" @@ -8078,6 +8174,13 @@ __metadata: languageName: node linkType: hard +"os-tmpdir@npm:~1.0.2": + version: 1.0.2 + resolution: "os-tmpdir@npm:1.0.2" + checksum: f438450224f8e2687605a8dd318f0db694b6293c5d835ae509a69e97c8de38b6994645337e5577f5001115470414638978cc49da1cdcc25106dad8738dc69990 + languageName: node + linkType: hard + "p-limit@npm:^2.0.0, p-limit@npm:^2.2.0": version: 2.3.0 resolution: "p-limit@npm:2.3.0" @@ -8177,6 +8280,31 @@ __metadata: languageName: node linkType: hard +"patch-package@npm:^8.0.0": + version: 8.0.0 + resolution: "patch-package@npm:8.0.0" + dependencies: + "@yarnpkg/lockfile": "npm:^1.1.0" + chalk: "npm:^4.1.2" + ci-info: "npm:^3.7.0" + cross-spawn: "npm:^7.0.3" + find-yarn-workspace-root: "npm:^2.0.0" + fs-extra: "npm:^9.0.0" + json-stable-stringify: "npm:^1.0.2" + klaw-sync: "npm:^6.0.0" + minimist: "npm:^1.2.6" + open: "npm:^7.4.2" + rimraf: "npm:^2.6.3" + semver: "npm:^7.5.3" + slash: "npm:^2.0.0" + tmp: "npm:^0.0.33" + yaml: "npm:^2.2.2" + bin: + patch-package: index.js + checksum: 690eab0537e953a3fd7d32bb23f0e82f97cd448f8244c3227ed55933611a126f9476397325c06ad2c11d881a19b427a02bd1881bee78d89f1731373fc4fe0fee + languageName: node + linkType: hard + "path-exists@npm:^3.0.0": version: 3.0.0 resolution: "path-exists@npm:3.0.0" @@ -8293,6 +8421,13 @@ __metadata: languageName: node linkType: hard +"postinstall-postinstall@npm:^2.1.0": + version: 2.1.0 + resolution: "postinstall-postinstall@npm:2.1.0" + checksum: 70488447292c712afa7806126824d6fe93362392cbe261ae60166d9119a350713e0dbf4deb2ca91637c1037bc030ed1de78d61d9041bf2504513070f1caacdfd + languageName: node + linkType: hard + "prelude-ls@npm:^1.2.1": version: 1.2.1 resolution: "prelude-ls@npm:1.2.1" @@ -8616,22 +8751,23 @@ __metadata: languageName: node linkType: hard -"react-native@npm:0.72.7": - version: 0.72.7 - resolution: "react-native@npm:0.72.7" +"react-native@npm:0.72.8": + version: 0.72.8 + resolution: "react-native@npm:0.72.8" dependencies: "@jest/create-cache-key-function": "npm:^29.2.1" "@react-native-community/cli": "npm:11.3.10" "@react-native-community/cli-platform-android": "npm:11.3.10" "@react-native-community/cli-platform-ios": "npm:11.3.10" "@react-native/assets-registry": "npm:^0.72.0" - "@react-native/codegen": "npm:^0.72.7" + "@react-native/codegen": "npm:^0.72.8" "@react-native/gradle-plugin": "npm:^0.72.11" "@react-native/js-polyfills": "npm:^0.72.1" "@react-native/normalize-colors": "npm:^0.72.0" "@react-native/virtualized-lists": "npm:^0.72.8" abort-controller: "npm:^3.0.0" anser: "npm:^1.4.9" + ansi-regex: "npm:^5.0.0" base64-js: "npm:^1.1.2" deprecated-react-native-prop-types: "npm:^4.2.3" event-target-shim: "npm:^5.0.1" @@ -8660,7 +8796,7 @@ __metadata: react: 18.2.0 bin: react-native: cli.js - checksum: c5f70323983401c55a301b518c615d6989199fa882f721994df9cfdf53989d38c6c1a658514d613fe89b932691b4df156ed0a72914b1c01c79f897e42bda1193 + checksum: fae1ce6c806993e7413b2fc69115941b185c5b39b1223744c1fa3d396f340ec891864ab38f42f3a47a088e641058c9169d95711bd399befd3e7c64c83fd281be languageName: node linkType: hard @@ -8980,6 +9116,17 @@ __metadata: languageName: node linkType: hard +"rimraf@npm:^2.6.3": + version: 2.7.1 + resolution: "rimraf@npm:2.7.1" + dependencies: + glob: "npm:^7.1.3" + bin: + rimraf: ./bin.js + checksum: 4eef73d406c6940927479a3a9dee551e14a54faf54b31ef861250ac815172bade86cc6f7d64a4dc5e98b65e4b18a2e1c9ff3b68d296be0c748413f092bb0dd40 + languageName: node + linkType: hard + "rimraf@npm:^3.0.2": version: 3.0.2 resolution: "rimraf@npm:3.0.2" @@ -9291,6 +9438,13 @@ __metadata: languageName: node linkType: hard +"slash@npm:^2.0.0": + version: 2.0.0 + resolution: "slash@npm:2.0.0" + checksum: f83dbd3cb62c41bb8fcbbc6bf5473f3234b97fa1d008f571710a9d3757a28c7169e1811cad1554ccb1cc531460b3d221c9a7b37f549398d9a30707f0a5af9193 + languageName: node + linkType: hard + "slash@npm:^3.0.0": version: 3.0.0 resolution: "slash@npm:3.0.0" @@ -9729,6 +9883,15 @@ __metadata: languageName: node linkType: hard +"tmp@npm:^0.0.33": + version: 0.0.33 + resolution: "tmp@npm:0.0.33" + dependencies: + os-tmpdir: "npm:~1.0.2" + checksum: 69863947b8c29cabad43fe0ce65cec5bb4b481d15d4b4b21e036b060b3edbf3bc7a5541de1bacb437bb3f7c4538f669752627fdf9b4aaf034cebd172ba373408 + languageName: node + linkType: hard + "tmpl@npm:1.0.5": version: 1.0.5 resolution: "tmpl@npm:1.0.5" @@ -10479,7 +10642,7 @@ __metadata: languageName: node linkType: hard -"yaml@npm:^2.2.1": +"yaml@npm:^2.2.1, yaml@npm:^2.2.2": version: 2.3.4 resolution: "yaml@npm:2.3.4" checksum: cf03b68f8fef5e8516b0f0b54edaf2459f1648317fc6210391cf606d247e678b449382f4bd01f77392538429e306c7cba8ff46ff6b37cac4de9a76aff33bd9e1