Skip to content

Unsupported operation: Could not load ObjectBox core dynamic library. Platform: ohos #698

Open
@zhouzhuo810

Description

@zhouzhuo810
import 'package:path/path.dart' as p;
import 'package:path_provider/path_provider.dart';

import '../objectbox.g.dart';

class ObjectBox {
  late final Store store;

  ObjectBox._create(this.store) {
    // Add any additional setup code, e.g. build queries.
  }

  static Future<ObjectBox> create() async {
    final store = await openStore(
        directory: p.join(
            (await getApplicationDocumentsDirectory()).path, "test"));
    return ObjectBox._create(store);
  }
}

Do you have any plans to adapt the HarmonyOS platform?

[https://gitee.com/openharmony-sig/flutter_plus_plugins)](https://gitee.com/openharmony-sig/flutter_plus_plugins

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions