From d9ca70b85e109373bf76133b9843468ba14f8d4e Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Tue, 21 Jan 2025 15:27:23 +0100 Subject: [PATCH] chore: Run nitrogen --- .../nitrogen/generated/android/NitroImageOnLoad.cpp | 2 -- .../android/c++/views/JHybridTestViewStateUpdater.cpp | 6 +----- .../android/c++/views/JHybridTestViewStateUpdater.hpp | 6 +----- .../generated/ios/c++/views/HybridTestViewComponent.mm | 5 +---- .../shared/c++/views/HybridTestViewComponent.cpp | 5 +---- .../shared/c++/views/HybridTestViewComponent.hpp | 8 +------- 6 files changed, 5 insertions(+), 27 deletions(-) diff --git a/packages/react-native-nitro-image/nitrogen/generated/android/NitroImageOnLoad.cpp b/packages/react-native-nitro-image/nitrogen/generated/android/NitroImageOnLoad.cpp index b2104a50..9abb5e47 100644 --- a/packages/react-native-nitro-image/nitrogen/generated/android/NitroImageOnLoad.cpp +++ b/packages/react-native-nitro-image/nitrogen/generated/android/NitroImageOnLoad.cpp @@ -59,9 +59,7 @@ int initialize(JavaVM* vm) { margelo::nitro::image::JHybridBaseSpec::registerNatives(); margelo::nitro::image::JHybridChildSpec::registerNatives(); margelo::nitro::image::JHybridTestViewSpec::registerNatives(); - #if REACT_NATIVE_VERSION_MINOR >= 78 margelo::nitro::image::views::JHybridTestViewStateUpdater::registerNatives(); - #endif // Register Nitro Hybrid Objects HybridObjectRegistry::registerHybridObjectConstructor( diff --git a/packages/react-native-nitro-image/nitrogen/generated/android/c++/views/JHybridTestViewStateUpdater.cpp b/packages/react-native-nitro-image/nitrogen/generated/android/c++/views/JHybridTestViewStateUpdater.cpp index ef73cf55..ab0043d2 100644 --- a/packages/react-native-nitro-image/nitrogen/generated/android/c++/views/JHybridTestViewStateUpdater.cpp +++ b/packages/react-native-nitro-image/nitrogen/generated/android/c++/views/JHybridTestViewStateUpdater.cpp @@ -6,10 +6,8 @@ /// #include "JHybridTestViewStateUpdater.hpp" -#include -#if REACT_NATIVE_VERSION_MINOR >= 78 - #include "views/HybridTestViewComponent.hpp" +#include namespace margelo::nitro::image::views { @@ -39,5 +37,3 @@ void JHybridTestViewStateUpdater::updateViewProps(jni::alias_ref, } } // namespace margelo::nitro::image::views - -#endif diff --git a/packages/react-native-nitro-image/nitrogen/generated/android/c++/views/JHybridTestViewStateUpdater.hpp b/packages/react-native-nitro-image/nitrogen/generated/android/c++/views/JHybridTestViewStateUpdater.hpp index 444c63ee..6e53bf8b 100644 --- a/packages/react-native-nitro-image/nitrogen/generated/android/c++/views/JHybridTestViewStateUpdater.hpp +++ b/packages/react-native-nitro-image/nitrogen/generated/android/c++/views/JHybridTestViewStateUpdater.hpp @@ -7,10 +7,8 @@ #pragma once -#include -#if REACT_NATIVE_VERSION_MINOR >= 78 - #include +#include #include #include "JHybridTestViewSpec.hpp" @@ -36,5 +34,3 @@ class JHybridTestViewStateUpdater: jni::HybridClass }; } // namespace margelo::nitro::image::views - -#endif diff --git a/packages/react-native-nitro-image/nitrogen/generated/ios/c++/views/HybridTestViewComponent.mm b/packages/react-native-nitro-image/nitrogen/generated/ios/c++/views/HybridTestViewComponent.mm index 9e8b08a1..f5059de2 100644 --- a/packages/react-native-nitro-image/nitrogen/generated/ios/c++/views/HybridTestViewComponent.mm +++ b/packages/react-native-nitro-image/nitrogen/generated/ios/c++/views/HybridTestViewComponent.mm @@ -6,10 +6,9 @@ /// #import "HybridTestViewComponent.hpp" -#include -#if REACT_NATIVE_VERSION_MINOR >= 78 #import +#import #import #import #import @@ -89,5 +88,3 @@ - (void) updateProps:(const react::Props::Shared&)props } @end - -#endif diff --git a/packages/react-native-nitro-image/nitrogen/generated/shared/c++/views/HybridTestViewComponent.cpp b/packages/react-native-nitro-image/nitrogen/generated/shared/c++/views/HybridTestViewComponent.cpp index 5edf6d43..91889030 100644 --- a/packages/react-native-nitro-image/nitrogen/generated/shared/c++/views/HybridTestViewComponent.cpp +++ b/packages/react-native-nitro-image/nitrogen/generated/shared/c++/views/HybridTestViewComponent.cpp @@ -6,12 +6,11 @@ /// #include "HybridTestViewComponent.hpp" -#include -#if REACT_NATIVE_VERSION_MINOR >= 78 #include #include #include +#include #include #include #include @@ -77,5 +76,3 @@ namespace margelo::nitro::image::views { } } // namespace margelo::nitro::image::views - -#endif diff --git a/packages/react-native-nitro-image/nitrogen/generated/shared/c++/views/HybridTestViewComponent.hpp b/packages/react-native-nitro-image/nitrogen/generated/shared/c++/views/HybridTestViewComponent.hpp index c6faca73..ac5a1443 100644 --- a/packages/react-native-nitro-image/nitrogen/generated/shared/c++/views/HybridTestViewComponent.hpp +++ b/packages/react-native-nitro-image/nitrogen/generated/shared/c++/views/HybridTestViewComponent.hpp @@ -7,10 +7,8 @@ #pragma once -#include -#if REACT_NATIVE_VERSION_MINOR >= 78 - #include +#include #include #include #include @@ -96,7 +94,3 @@ namespace margelo::nitro::image::views { /* The actual view for "TestView" needs to be implemented in platform-specific code. */ } // namespace margelo::nitro::image::views - -#else -#warning "View Component 'HybridTestView' will be unavailable in React Native, because it requires React Native 78 or higher." -#endif