Files
yoga/lib/fb/src/main/cpp/jni/OnLoad.cpp

19 lines
471 B
C++
Raw Normal View History

/**
* Copyright (c) Facebook, Inc. and its affiliates.
2016-08-31 16:15:15 +01:00
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
2016-08-31 16:15:15 +01:00
*/
#include <fbjni/fbjni.h>
#include <fbjni/NativeRunnable.h>
2016-08-31 16:15:15 +01:00
using namespace facebook::jni;
JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
return facebook::jni::initialize(vm, [] {
HybridDataOnLoad();
JNativeRunnable::OnLoad();
ThreadScope::OnLoad();
});
2016-08-31 16:15:15 +01:00
}