Set up Yoga experiment

Reviewed By: priteshrnandgaonkar

Differential Revision: D9943869

fbshipit-source-id: 6b6550f453ab4e0ab8305401b299f2d0ed415f72
This commit is contained in:
David Aurelio
2018-09-25 15:44:45 -07:00
committed by Facebook Github Bot
parent 6e46eec58f
commit 357ca78f9f
2 changed files with 7 additions and 0 deletions

View File

@@ -20,6 +20,9 @@ yoga_cxx_library(
"-std=c++11",
],
platforms = ANDROID,
preprocessor_flags = [
"-DFBJNI_WITH_FAST_CALLS",
],
soname = "libyoga.$(ext)",
visibility = ["PUBLIC"],
deps = [

View File

@@ -10,6 +10,10 @@ package com.facebook.yoga;
import com.facebook.soloader.SoLoader;
public class YogaJNI {
// Known constants. 1-3 used in previous experiments. Do not reuse.
public static int JNI_FAST_CALLS = 4;
// set before loading any other Yoga code
public static boolean useFastCall = false;