pinchbv / floor

The typesafe, reactive, and lightweight SQLite abstraction for your Flutter applications
https://pinchbv.github.io/floor/
Apache License 2.0
965 stars 191 forks source link

Are there any plans to adapt HarmonyOS #810

Open jinliyuelong opened 7 months ago

jinliyuelong commented 7 months ago

Are there any plans to adapt HarmonyOS?

dkaera commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 1 week ago

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?