Remove fb/xplat_init dependency
Summary: This diff removes the fb/xplat_init dependency from fabric onLoad class This is necessary to make RM compile in OSS changelog: [Internal] Internal Reviewed By: RSNara Differential Revision: D22875531 fbshipit-source-id: cc4cd2af875fe7eadfb3a8f4a9f16acf5fa415d8
This commit is contained in:
Родитель
f78fcf4a3f
Коммит
d39fe0fbf9
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
|
||||
#include <ReactCommon/TurboModulePerfLogger.h>
|
||||
#include <fb/xplat_init.h>
|
||||
#include <fbjni/fbjni.h>
|
||||
#include <reactperflogger/JNativeModulePerfLogger.h>
|
||||
|
||||
|
@ -21,7 +20,7 @@ void jniEnableCppLogging(
|
|||
}
|
||||
|
||||
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) {
|
||||
return facebook::xplat::initialize(vm, [] {
|
||||
return facebook::jni::initialize(vm, [] {
|
||||
// TODO: dvacca ramanpreet unify this with the way
|
||||
// "ComponentDescriptorFactory" is defined in Fabric
|
||||
facebook::react::TurboModuleManager::registerNatives();
|
||||
|
|
Загрузка…
Ссылка в новой задаче