meeting_place_drift_repository 0.0.1-dev.8 copy "meeting_place_drift_repository: ^0.0.1-dev.8" to clipboard
meeting_place_drift_repository: ^0.0.1-dev.8 copied to clipboard

The Meeting Place Drift Repository is a package that uses Drift to persist and manage channels, connection offers, groups, anc chat history in local device storage.

Affinidi Meeting Place - Drift Repository SDK for Dart #

The Affinidi Meeting Place - Drift Repository SDK is a package that implements the Drift database to persist and manage channels, connection offers, groups, and chat history in the device's local storage.

Key Features #

  • Manage channels

    • Create a channel
    • Retrieve a channel via either your DID or the other party DID
    • Retrieve a channel via the other party DID
    • Retrieve a channel via an offerLink
    • Update a channel
    • Delete a channel
  • Manage connections

    • Create a connection offer
    • Retrieve a connection via an offerLink
    • Retrieve a connection via a permanent channel DID
    • Retrieve a connection via a group DID
    • Retrieve all connection offers
    • Update a connection offer
    • Delete a connection offer
  • Manage groups

    • Create a group
    • Retrieve a group by id
    • Retrieve a group by offerLink
    • Update a group
    • Delete a group
  • Manage chat history

    • Create a message
    • Retrieve all messages associated to a chatId
    • Retrieve a message within a chat by Id
    • Update a message

Requirements #

  • Dart SDK version ^3.9.2

Installation #

Run:

dart pub add meeting_place_drift_repository

or manually add the package to your pubspec.yaml file:

dependencies:
  meeting_place_drift_repository: ^<version_number>

and then run the command below to install the package:

dart pub get

For more information, visit the pub.flutter-io.cn install page of the package.

Regenerate Database Classes #

The package uses drift code generation. To regenerate database classes, run:

dart run build_runner build --delete-conflicting-outputs

Workaround to open sqlcipher on old Android versions. #

On old Android versions, this method can help if you're having issues opening sqlite3 (e.g. if you're seeing crashes about libsqlcipher.so not being available). To be safe, call this method before using apis from package:sqlite3 or package:moor/ffi.dart.

Future<void> setupSqlCipher() async {
  await applyWorkaroundToOpenSqlCipherOnOldAndroidVersions();
  open.overrideFor(OperatingSystem.android, openCipherOnAndroid);
}

Declared in package:sqlcipher_flutter_libs/sqlcipher_flutter_libs.dart.

1
likes
0
points
481
downloads

Publisher

verified publisheraffinidi.com

Weekly Downloads

The Meeting Place Drift Repository is a package that uses Drift to persist and manage channels, connection offers, groups, anc chat history in local device storage.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

clock, drift, meeting_place_chat, meeting_place_core, path, sqlite3, uuid

More

Packages that depend on meeting_place_drift_repository