ActivityStoreConfig constructor

const ActivityStoreConfig({
  1. required String localStorePath,
  2. required String logsDir,
  3. String supabaseUrl = '',
  4. String supabaseAnonKey = '',
  5. String storageBucketName = '',
  6. String shareWebBaseUrl = '',
  7. bool syncEnabled = false,
})

Creates an ActivityStoreConfig.

Parameters

  • localStorePath: Absolute path of the local SQLite store, the offline system of record.
  • logsDir: Absolute path of the recorded logs folder; device paths of files under it are stored relative to it.
  • supabaseUrl: The backend project URL, such as https://xxxx.supabase.co.
  • supabaseAnonKey: The backend public API key.
  • storageBucketName: The storage bucket of the activity files, such as activities.
  • shareWebBaseUrl: The base of the share links, such as https://example.com/activity/; the share token is appended to it. When empty, the share links point to the backend preview function.
  • syncEnabled: Master switch of activity sync and sharing: activity uploads, fetches and shared activity resolves. Profile sync is not affected. Defaults to false.

Implementation

const ActivityStoreConfig({
  required this.localStorePath,
  required this.logsDir,
  this.supabaseUrl = '',
  this.supabaseAnonKey = '',
  this.storageBucketName = '',
  this.shareWebBaseUrl = '',
  this.syncEnabled = false,
});