Comments (8)
Thanks for the suggestion! For anyone else interested, please thumbs up the first comment. This helps us track interest.
Based on a quick search, it appears support for compiling native C++ code exists. This would be required to compile the ObjectBox core library for Harmony OS. But I can't find any docs on how to do it. So this may be possible, but not sure.
from objectbox-java.
Thanks for the suggestion! For anyone else interested, please thumbs up the first comment. This helps us track interest.
Based on a quick search, it appears support for compiling native C++ code exists. This would be required to compile the ObjectBox core library for Harmony OS. But I can't find any docs on how to do it. So this may be possible, but not sure.
Harmony OS's main market is in China and has been widely used. Here is its development documentation link.As a mobile application developer, I have used many libraries related to data storage, but so far only objectbox has the highest efficiency,and it is the best. Therefore, I hope to support Harmony OS.Thank you!
from objectbox-java.
So you are saying it's not compatible with Android? According to Wikipedia it's based on Android.
from objectbox-java.
So you are saying it's not compatible with Android? According to Wikipedia it's based on Android.
HarmonyOs is not AndroidOs,although their APIs have many similarities.For example, the objectbox uses the Context class,In Android SDK, its path is android.content.Context, but in Harmony SDK, its path is ohos.app.Context,this can lead to some compilation issues.Additionally, there are issues with plugins that are not supported.
from objectbox-java.
So you are saying it's not compatible with Android? According to Wikipedia it's based on Android.
HarmonyOs is not AndroidOs,although their APIs have many similarities.For example, the objectbox uses the Context class,In Android SDK, its path is android.content.Context, but in Harmony SDK, its path is ohos.app.Context,this can lead to some compilation issues.Additionally, there are issues with plugins that are not supported.
This is an error message that is not supported by the plugin:
An exception occurred applying plugin request [id: 'io.objectbox']
Failed to apply plugin 'io.objectbox'.
'io.objectbox' can only be applied to a project if one of the following is applied before:
* an Android plugin
* the Kotlin Android or JVM plugin
* the Java Library, Java Application or Java plugin
from objectbox-java.
So you are saying it's not compatible with Android? According to Wikipedia it's based on Android.
HarmonyOs is not AndroidOs,although their APIs have many similarities.For example, the objectbox uses the Context class,In Android SDK, its path is android.content.Context, but in Harmony SDK, its path is ohos.app.Context,this can lead to some compilation issues.Additionally, there are issues with plugins that are not supported.
This is an error message that is not supported by the plugin:
An exception occurred applying plugin request [id: 'io.objectbox']
Failed to apply plugin 'io.objectbox'.
'io.objectbox' can only be applied to a project if one of the following is applied before:
- an Android plugin
- the Kotlin Android or JVM plugin
- the Java Library, Java Application or Java plugin
I can use the objectbox in the HarmonyOs project by creating a Java library, which is supported by the plugin. However, because the objectbox uses reflection to call some Android APIs, Harmony SDK does not support Android APIs, so errors may also occur when loading so files.
from objectbox-java.
So, we have at least 3 eras, in which Harmony OS could be different:
- Gradle plugin (or whatever build tool we need)
- Java APIs
- Native libraries
And there seems to be also Harmony OS NEXT, which has a micro-kernel and thus could be different in many other ways too.
At this point it's not clear if we want to support it; it will depend on mainly two things, I guess. First, the amount of community support we would get. Second, how big the differences actually are.
from objectbox-java.
So, we have at least 3 eras, in which Harmony OS could be different:
- Gradle plugin (or whatever build tool we need)
- Java APIs
- Native libraries
And there seems to be also Harmony OS NEXT, which has a micro-kernel and thus could be different in many other ways too.
At this point it's not clear if we want to support it; it will depend on mainly two things, I guess. First, the amount of community support we would get. Second, how big the differences actually are.
Understood, thank you very much,looking forward to your support!
from objectbox-java.
Related Issues (20)
- Clarify documentation Getting started section for Java HOT 1
- Attempt to invoke virtual method 'boolean io.objectbox.relation.ToMany.add(java.lang.Object)' on a null object reference HOT 4
- io.objectbox.exception.DbException error code 30 HOT 4
- In a module based project the split package io.objectbox.converter prevents building HOT 1
- Adding an index on an Integer field with many repeating values results in very slow "find()" queries HOT 3
- Error after upgrade to Android Gradle Plugin 8.2.0 with org.gradle.configuration-cache=true HOT 1
- io.objectbox.exception.DbException: Could not get from cursor (-30787) (error code -30787) HOT 2
- Caused by: java.lang.IllegalStateException: No DB catalog present HOT 5
- Support Kotlin inline value classes(UInt, especially) HOT 6
- Adding an entity with a ToMany relationship to another ToMany relationship doesn't properly store the ToMany relationship. HOT 2
- In kotlin, "Unresolved references of converter" error message should be clear HOT 3
- Extended class SUPPORT HOT 2
- Failed to apply plugin 'io.objectbox' - Android Studio Hedgehog | 2023.1.1 - Groovy DSL Gradle HOT 4
- Android Studio/Kotlin (Jetpack Compose) Test DB is not created using `File("directory/test-database-file-name")` HOT 11
- ObjectBox returns more elements than what it should when using `equal()` query HOT 3
- Native heap increases when we have indexing for tables HOT 4
- recompile objectbox with the new ndk and enable 16k page support HOT 5
- ToOne<Object> relation not obtaining the target Object when doing query. HOT 3
- cannot read first N elements of a box without a filter with objectbox 4.0.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from objectbox-java.