Package io.objectbox.internal
Class NativeLibraryLoader
java.lang.Object
io.objectbox.internal.NativeLibraryLoader
Separate class, so we can mock BoxStore.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcheckUnpackLib(String filename) static voidprivate static StringGet CPU architecture of the JVM (Note: this can not be used for Android, Android decides arch on its own and looks for library in appropriately named folder).private static StringGet architecture using operating system tools.private static StringReturn a string containing a list of ABIs that are supported by the current Android device.private static boolean
-
Field Details
-
OBJECTBOX_JNI
- See Also:
-
-
Constructor Details
-
NativeLibraryLoader
public NativeLibraryLoader()
-
-
Method Details
-
getCpuArch
Get CPU architecture of the JVM (Note: this can not be used for Android, Android decides arch on its own and looks for library in appropriately named folder).Note that this may not be the architecture of the actual hardware (e.g. when running a x86 JVM on an amd64 machine).
-
getCpuArchOSOrNull
Get architecture using operating system tools. Currently only Linux is supported (using uname). -
checkUnpackLib
-
loadLibraryAndroid
private static boolean loadLibraryAndroid() -
getSupportedABIsAndroid
Return a string containing a list of ABIs that are supported by the current Android device. If the Android device is below API level 21 (Android 5) or if looking up the value fails, returns an empty string. -
ensureLoaded
public static void ensureLoaded()
-