Add separate classes to implement JNI methods suing vanilla JNI

Summary:
This diffs adds a separate file YGJNIVanilla.cpp to add jni methods which uses vanilla JNI instead of FBJNI.
In this diff only one method has been added to setup the experiment boolean setup.

At the end of this diff stack , we will be able to experiment between fbjni and vanilla jni in yoga and finally get rid of fbjni which saves us around 300Kb per architecture in yoga binary size.

Reviewed By: Andrey-Mishanin

Differential Revision: D17601591

fbshipit-source-id: a88520c625bd8b5d9ffcf8ab5f02fc71dc800081
This commit is contained in:
Sidharth Guglani
2019-09-26 17:30:28 -07:00
committed by Facebook Github Bot
parent f00116c3a6
commit b29e144649
5 changed files with 73 additions and 2 deletions

9
java/jni/YGJNIVanilla.h Normal file
View File

@@ -0,0 +1,9 @@
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*/
namespace YGJNIVanilla {
void registerNatives(JNIEnv* env);
};