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:
David Vacca 2020-08-01 13:26:35 -07:00 коммит произвёл Facebook GitHub Bot
Родитель f78fcf4a3f
Коммит d39fe0fbf9
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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();