Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
#include "JniJSModulesUnbundle.h"
#include "NativeArray.h"

#ifndef RCT_FIT_RM_OLD_RUNTIME

using namespace facebook::jni;

namespace facebook::react {
Expand Down Expand Up @@ -419,3 +421,5 @@ void CatalystInstanceImpl::unregisterFromInspector() {
}

} // namespace facebook::react

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include "ModuleRegistryBuilder.h"
#include "ReactInstanceManagerInspectorTarget.h"

#ifndef RCT_FIT_RM_OLD_RUNTIME

namespace facebook::react {

class Instance;
Expand Down Expand Up @@ -125,3 +127,5 @@ class CatalystInstanceImpl : public jni::HybridClass<CatalystInstanceImpl> {
};

} // namespace facebook::react

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include "CatalystInstanceImpl.h"
#include "ReadableNativeArray.h"

#ifndef RCT_FIT_RM_OLD_RUNTIME

using facebook::xplat::module::CxxModule;

namespace facebook::react {
Expand Down Expand Up @@ -152,3 +154,5 @@ jni::local_ref<JReflectMethod::javaobject> JMethodDescriptor::getMethod()
}

} // namespace facebook::react

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

#include "MethodInvoker.h"

#ifndef RCT_FIT_RM_OLD_RUNTIME

namespace facebook::react {

class Instance;
Expand Down Expand Up @@ -85,3 +87,5 @@ class JavaNativeModule : public NativeModule {
};

} // namespace facebook::react

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <cxxreact/JSExecutor.h>
#include <fbjni/fbjni.h>

#ifndef RCT_FIT_RM_OLD_RUNTIME

namespace facebook::react {

class JavaScriptExecutorHolder
Expand All @@ -31,3 +33,5 @@ class JavaScriptExecutorHolder
};

} // namespace facebook::react

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <sstream>
#include <utility>

#ifndef RCT_FIT_RM_OLD_RUNTIME

using magic_number_t = uint32_t;
const magic_number_t MAGIC_FILE_HEADER = 0xFB0BD1E5;
const char* MAGIC_FILE_NAME = "UNBUNDLE";
Expand Down Expand Up @@ -94,3 +96,5 @@ JSModulesUnbundle::Module JniJSModulesUnbundle::getModule(
}

} // namespace facebook::react

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include <android/asset_manager.h>
#include <cxxreact/JSModulesUnbundle.h>

#ifndef RCT_FIT_RM_OLD_RUNTIME

namespace facebook::react {

class JniJSModulesUnbundle : public JSModulesUnbundle {
Expand Down Expand Up @@ -41,3 +43,5 @@ class JniJSModulesUnbundle : public JSModulesUnbundle {
};

} // namespace facebook::react

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include "WritableNativeArray.h"
#include "WritableNativeMap.h"

#ifndef RCT_FIT_RM_OLD_RUNTIME

using namespace facebook::jni;

namespace facebook::react {
Expand Down Expand Up @@ -309,3 +311,5 @@ MethodCallResult MethodInvoker::invoke(
}

} // namespace facebook::react

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include <fbjni/fbjni.h>
#include <folly/dynamic.h>

#ifndef RCT_FIT_RM_OLD_RUNTIME

namespace facebook::react {

class Instance;
Expand Down Expand Up @@ -62,3 +64,5 @@ class MethodInvoker {
};

} // namespace facebook::react

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

#include <cxxreact/CxxNativeModule.h>

#ifndef RCT_FIT_RM_OLD_RUNTIME

namespace facebook::react {

std::string ModuleHolder::getName() const {
Expand Down Expand Up @@ -68,3 +70,5 @@ std::vector<std::unique_ptr<NativeModule>> buildNativeModuleList(
}

} // namespace facebook::react

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include "CxxModuleWrapper.h"
#include "JavaModuleWrapper.h"

#ifndef RCT_FIT_RM_OLD_RUNTIME

namespace facebook::react {

class MessageQueueThread;
Expand All @@ -36,3 +38,5 @@ std::vector<std::unique_ptr<NativeModule>> buildNativeModuleList(
cxxModules,
std::shared_ptr<MessageQueueThread> moduleMessageQueue);
} // namespace facebook::react

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ extern "C" JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
gloginit::initialize();
FLAGS_minloglevel = 0;
#endif
#ifndef RCT_FIT_RM_OLD_RUNTIME
CatalystInstanceImpl::registerNatives();
#endif
CxxModuleWrapperBase::registerNatives();
JInspector::registerNatives();
ReactInstanceManagerInspectorTarget::registerNatives();
Expand Down
Loading