2016-08-31 16:15:15 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-16 18:24:55 -08: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 <jni/Countable.h>
|
|
|
|
#include <fb/Environment.h>
|
|
|
|
#include <fb/fbjni.h>
|
|
|
|
#include <fb/fbjni/NativeRunnable.h>
|
|
|
|
|
|
|
|
using namespace facebook::jni;
|
|
|
|
|
|
|
|
void initialize_fbjni() {
|
|
|
|
CountableOnLoad(Environment::current());
|
|
|
|
HybridDataOnLoad();
|
|
|
|
JNativeRunnable::OnLoad();
|
|
|
|
ThreadScope::OnLoad();
|
|
|
|
}
|