diff --git a/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp b/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp index 1e2420d0e5b0..0e22d6dbd384 100644 --- a/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +++ b/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp @@ -29,12 +29,7 @@ #include #include -#if __has_include("") -#define AUTOLINKING_AVAILABLE 1 #include -#else -#define AUTOLINKING_AVAILABLE 0 -#endif #include #include #include @@ -61,10 +56,8 @@ void registerComponents( REACT_NATIVE_APP_COMPONENT_REGISTRATION(registry); #endif -#if AUTOLINKING_AVAILABLE // And we fallback to the components autolinked autolinking_registerProviders(registry); -#endif } std::shared_ptr cxxModuleProvider( @@ -78,10 +71,8 @@ std::shared_ptr cxxModuleProvider( // return std::make_shared(jsInvoker); // } -#if AUTOLINKING_AVAILABLE // And we fallback to the CXX module providers autolinked return autolinking_cxxModuleProvider(name, jsInvoker); -#endif return nullptr; } @@ -112,12 +103,10 @@ std::shared_ptr javaModuleProvider( return module; } -#if AUTOLINKING_AVAILABLE // And we fallback to the module providers autolinked if (auto module = autolinking_ModuleProvider(name, params)) { return module; } -#endif return nullptr; }