HivePersistenceConfig.clientDefaults constructor

HivePersistenceConfig.clientDefaults({
  1. required String storagePath,
  2. String? backendMarkerPath,
})

Convenience constructor for at_client_sdk-shaped consumers: opts in to the keystore only. The keystore is created commit-log-free — clients no longer rely on a commit log — so the .unused_* paths below are never opened.

Implementation

factory HivePersistenceConfig.clientDefaults({
  required String storagePath,
  String? backendMarkerPath,
}) =>
    HivePersistenceConfig(
      storagePath: storagePath,
      commitLogPath: '$storagePath/.unused_commit_log',
      accessLogPath: '$storagePath/.unused_access_log',
      notificationStoragePath: '$storagePath/.unused_notifications',
      backendMarkerPath: backendMarkerPath,
      enableAccessLog: false,
      enableNotificationKeystore: false,
      enableCommitLog: false,
    );