Skip to content
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

Are there any plans to adapt HarmonyOS #810

Open
jinliyuelong opened this issue Mar 8, 2024 · 5 comments
Open

Are there any plans to adapt HarmonyOS #810

jinliyuelong opened this issue Mar 8, 2024 · 5 comments

Comments

@jinliyuelong
Copy link

Are there any plans to adapt HarmonyOS?

@dkaera
Copy link
Collaborator

dkaera commented Mar 8, 2024

Hi @jinliyuelong

HarmonyOS is indeed based on Android. Given that the Floor library leverages the SQLite plugin to interact with the native database, there's no specific adaptation required for HarmonyOS compatibility.

@jinliyuelong
Copy link
Author

jinliyuelong commented Mar 8, 2024

Hi @jinliyuelong

HarmonyOS is indeed based on Android. Given that the Floor library leverages the SQLite plugin to interact with the native database, there's no specific adaptation required for HarmonyOS compatibility.

Pure Blood HarmonyOS Oho named HarmonyOS Next , not compatible with Android version. I found SQFlite based on OHOS, and then modified the support platform as below.

if (Platform.isAndroid || Platform.isIOS || defaultTargetPlatform == TargetPlatform.ohos) {
    return databaseFactory;
    }

Results to report an error

image

i

@jinliyuelong
Copy link
Author

jinliyuelong commented Mar 8, 2024

Hi @jinliyuelong

HarmonyOS is indeed based on Android. Given that the Floor library leverages the SQLite plugin to interact with the native database, there's no specific adaptation required for HarmonyOS compatibility.

If the sqflite ohos version is OK, is the position I modified correct? Do I need to modify other places

@dkaera
Copy link
Collaborator

dkaera commented Mar 8, 2024

ah, got it
to be honest, I don't know much about Harmony OS. It seems that Harmony OS needs a bit more research to ensure that it is supported correctly.

@kylechandev
Copy link

Hi @jinliyuelong
HarmonyOS is indeed based on Android. Given that the Floor library leverages the SQLite plugin to interact with the native database, there's no specific adaptation required for HarmonyOS compatibility.

If the sqflite ohos version is OK, is the position I modified correct? Do I need to modify other places

Hi~ @jinliyuelong,
Is there any new progress in supporting HarmonyOS Next to use floor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants