Code Monkey home page Code Monkey logo

Comments (8)

greenrobot-team avatar greenrobot-team commented on June 10, 2024

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.

chengxingen avatar chengxingen commented on June 10, 2024

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.

greenrobot avatar greenrobot commented on June 10, 2024

So you are saying it's not compatible with Android? According to Wikipedia it's based on Android.

from objectbox-java.

chengxingen avatar chengxingen commented on June 10, 2024

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.

chengxingen avatar chengxingen commented on June 10, 2024

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.

chengxingen avatar chengxingen commented on June 10, 2024

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.

greenrobot avatar greenrobot commented on June 10, 2024

So, we have at least 3 eras, in which Harmony OS could be different:

  1. Gradle plugin (or whatever build tool we need)
  2. Java APIs
  3. 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.

chengxingen avatar chengxingen commented on June 10, 2024

So, we have at least 3 eras, in which Harmony OS could be different:

  1. Gradle plugin (or whatever build tool we need)
  2. Java APIs
  3. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.