Open jinliyuelong opened 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.
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
i
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
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.
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?
Are there any plans to adapt HarmonyOS?