ObjectBox runs on Android, Linux, and Windows. Add MacOS support.
Note, that you can use MacOS to create Android apps with ObjectBox, of course.
Is it possible to get a sense of where this fits in the priority list? Will it come soonish or later on?
We aim for pre 1.0.
Any update for that feature?
I'm stuck on writing the unit test. Still we are seeing issue on mac. could please provide some workaround or quickfix ?
Version : 1.2.0 & 1.2.0-RC
public class NoSqlDatabaseTest {
@Rule
public TemporaryFolder mTempFolder = new TemporaryFolder();
Context context = mock(Context.class);
@Before
public void setup() throws IOException {
}
@Test
public void testDatabase() throws Exception {
// Mockito
assertNotNull(context);
Mockito.when(context.getFilesDir()).thenReturn(mTempFolder.newFolder());
BoxDatabase db = new BoxDatabase(context);
assertNotNull(db.getBoxStore());
assertNotNull(db.getDatabase(User.class));
}
}
Error
java.lang.UnsatisfiedLinkError: no objectbox in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at io.objectbox.internal.NativeLibraryLoader.<clinit>(NativeLibraryLoader.java:44)
at io.objectbox.BoxStore.<init>(BoxStore.java:170)
at io.objectbox.BoxStoreBuilder.build(BoxStoreBuilder.java:259)
at com.jega.mrc.database.NoSqlDatabase.<init>(NoSqlDatabase.java:22)
Is there an ETA for this? It's the only thing blocking us from moving to ObjectBox.
I get same error in unit test
java.lang.UnsatisfiedLinkError: no objectbox in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at io.objectbox.internal.NativeLibraryLoader.<clinit>(NativeLibraryLoader.java:44)
at io.objectbox.BoxStore.<init>(BoxStore.java:177)
at io.objectbox.BoxStoreBuilder.build(BoxStoreBuilder.java:308)
at io.objectbox.BoxStoreBuilder.buildDefault(BoxStoreBuilder.java:327)
need unittest support on mac
We need mac support :/
Whole project using Objectbox and now we cant test :/
Any update on when this is planned for?
We just released macOS support with 1.4.3. Until we have proper docs in place please check this example. For local unit tests you may want to use the testImplementation dependency scope.
Please let us know if it's working for you. Thank you!
Thanks, it is working!
Most helpful comment
Thanks, it is working!