Don't load fb native library
Summary: We don't bundle this library with the yoga source, and it isn't needed. Reviewed By: emilsjolander Differential Revision: D5274172 fbshipit-source-id: fec47d2700da86498410fe445d2980f31a563551
This commit is contained in:
committed by
Facebook Github Bot
parent
4804bcd594
commit
11bc97b16c
@@ -3,7 +3,6 @@
|
|||||||
package com.facebook.jni;
|
package com.facebook.jni;
|
||||||
|
|
||||||
import com.facebook.proguard.annotations.DoNotStrip;
|
import com.facebook.proguard.annotations.DoNotStrip;
|
||||||
import com.facebook.soloader.SoLoader;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Java Object that has native memory allocated corresponding to this instance.
|
* A Java Object that has native memory allocated corresponding to this instance.
|
||||||
@@ -18,10 +17,6 @@ import com.facebook.soloader.SoLoader;
|
|||||||
@DoNotStrip
|
@DoNotStrip
|
||||||
public class Countable {
|
public class Countable {
|
||||||
|
|
||||||
static {
|
|
||||||
SoLoader.loadLibrary("fb");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Private C++ instance
|
// Private C++ instance
|
||||||
@DoNotStrip
|
@DoNotStrip
|
||||||
private long mInstance = 0;
|
private long mInstance = 0;
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
package com.facebook.jni;
|
package com.facebook.jni;
|
||||||
|
|
||||||
import com.facebook.proguard.annotations.DoNotStrip;
|
import com.facebook.proguard.annotations.DoNotStrip;
|
||||||
import com.facebook.soloader.SoLoader;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This object holds a native C++ member for hybrid Java/C++ objects.
|
* This object holds a native C++ member for hybrid Java/C++ objects.
|
||||||
@@ -19,10 +18,6 @@ import com.facebook.soloader.SoLoader;
|
|||||||
@DoNotStrip
|
@DoNotStrip
|
||||||
public class HybridData {
|
public class HybridData {
|
||||||
|
|
||||||
static {
|
|
||||||
SoLoader.loadLibrary("fb");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Private C++ instance
|
// Private C++ instance
|
||||||
@DoNotStrip
|
@DoNotStrip
|
||||||
private long mNativePointer = 0;
|
private long mNativePointer = 0;
|
||||||
|
@@ -3,14 +3,9 @@
|
|||||||
package com.facebook.jni;
|
package com.facebook.jni;
|
||||||
|
|
||||||
import com.facebook.proguard.annotations.DoNotStrip;
|
import com.facebook.proguard.annotations.DoNotStrip;
|
||||||
import com.facebook.soloader.SoLoader;
|
|
||||||
|
|
||||||
@DoNotStrip
|
@DoNotStrip
|
||||||
public class ThreadScopeSupport {
|
public class ThreadScopeSupport {
|
||||||
static {
|
|
||||||
SoLoader.loadLibrary("fb");
|
|
||||||
}
|
|
||||||
|
|
||||||
// This is just used for ThreadScope::withClassLoader to have a java function
|
// This is just used for ThreadScope::withClassLoader to have a java function
|
||||||
// in the stack so that jni has access to the correct classloader.
|
// in the stack so that jni has access to the correct classloader.
|
||||||
@DoNotStrip
|
@DoNotStrip
|
||||||
|
Reference in New Issue
Block a user