Remove fb/xplat_init dependency

Summary:
This diff removes the fb/xplat_init dependency from fabric onLoad class

This is necessary to make fabric compile in OSS

changelog: [Internal] Internal

Reviewed By: RSNara

Differential Revision: D22874850

fbshipit-source-id: 0c61a366e09ab072215ba2fe651f96ef4c2e455a
This commit is contained in:
David Vacca
2020-08-01 13:31:02 -07:00
committed by Facebook GitHub Bot
parent aee1ae9e92
commit f78fcf4a3f
@@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*/
#include <fb/xplat_init.h>
#include <fbjni/fbjni.h>
#include "Binding.h"
@@ -14,7 +13,7 @@
#include "StateWrapperImpl.h"
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) {
return facebook::xplat::initialize(vm, [] {
return facebook::jni::initialize(vm, [] {
facebook::react::Binding::registerNatives();
facebook::react::EventBeatManager::registerNatives();
facebook::react::EventEmitterWrapper::registerNatives();