-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification on Android/iOS use #16
Comments
Yes, there are improvements possible in the docs. TLDR: Android comes with a "double feature" lib, that has JNI and the native C API. For iOS, Swift even builds upon the C API, so this is possible too. |
I also want to use objectbox-c in my Android/iOS app using C++/QT5/QML. |
@srdw Basically, you just get the compiled binary for C, from the java lib from maven repository or whatever (I don't use Java). |
Thanks a Lot. By the way, are you using the objectbox-swift(https://github.com/objectbox/objectbox-swift) Lib file to build the iOS version? |
@srdw Nah, sorry. |
😄 (Using DeepL) I'm also planning to use Sqlite if ObjectBox is not available. It's a game application, and we will be storing a lot of logs in a database. I'll also try to build on iOS! |
Hi @greenrobot (Using DeepL) I'm testing ObjectBox-C combined with Swift library files.
objectbox.hpp ObjectBox-Swift allows you to specify the DirectoryPath when initializing the Store, while the c/c++ interface does not seem to have such a specification. If you could let me know how to handle this, that would be great! |
|
I'm sorry. The following code worked for me on Qt+iOS Device!
thx! |
Nothing to be sorry about |
Hi @srdw , |
Hello @mohammadjalalis. I'm using Qt + Felgo, so I'm using qmake. I have added each of them to the pro file. Source files Library files (probably redundant. Path is also a local environment, so just a little reference)
|
I'd love to use ObjectBox in a multi-platform Android/iOS app (C++, QT/QML stack), as it looks to be pretty much perfect for my use case. But. It is unclear to me if that is supported - the main library/project says that it is, but the C/C++ wrapper does not mention so, and there are no binaries on the releases page for Android or iOS.
There's #4, but in the replies, it is not clear to me what "Android APIs also include the C interface" means. Am I supposed to get the Java jars from the gradle repository, and those would expose the C interface?
So effectively, this is both a question, as well as a request for clarification in the readme/releases if ObjectBox can be used from Android and iOS. If yes, then a tutorial/tips on how to do so, would be very much appreciated.
The text was updated successfully, but these errors were encountered: