flutter_ota_kit_supabase library
flutter_ota_kit_supabase — Supabase backend for flutter_ota_kit.
Faithful Dart translation of hot-updater's plugins/supabase:
database + storage plugins (direct + edge-function variants) over the
Supabase REST (PostgREST) API.
Classes
- SupabaseBundleRow
-
Row type from Supabase
bundlestable. - SupabaseClientLike
- The top-level Supabase client surface used by both plugins.
- SupabaseEdgeFunctionDatabaseConfig
- Config for the Supabase edge-function database plugin.
- SupabaseEdgeFunctionStorageConfig
- Config for the Supabase edge-function storage plugin.
- SupabaseServiceRoleConfig
- Configuration requiring either a service role key or an anon key.
- SupabaseStorageConfig
- Configuration for the Supabase storage plugin.
Properties
- supabaseDatabase ↔ DatabasePlugin Function() Function(SupabaseDatabaseConfig config, [DatabasePluginHooks? hooks])
-
Supabase-backed
DatabasePluginfactory.getter/setter pair - supabaseEdgeFunctionStorage → StoragePlugin Function(SupabaseEdgeFunctionStorageConfig config, [StoragePluginHooks? hooks])
-
Edge-function variant of supabaseStorage: a runtime-only storage plugin
(no node profile) backed by the Supabase client.
final
- supabaseStorage → StoragePlugin Function(SupabaseStorageConfig config, [StoragePluginHooks? hooks])
-
Supabase-backed universal (node + runtime) storage plugin.
final
Functions
-
createSupabaseHttpClient(
String url, String key) → SupabaseClientLike -
Default factory: builds a
SupabaseHttpClientfrom credentials. -
createSupabaseSignedUrlBatcher(
{required CreateSignedUrls createSignedUrls, required int expiresIn, required String formatObjectPath(String bucketName, String key)}) → ResolveSignedUrl -
Creates a function that batches signed URL generation requests per
bucket and flushes them on the next microtask, mirroring Supabase's
createSignedUrlsbatch API. -
mapRowToBundle(
SupabaseBundleRow row, [List< SupabaseBundlePatchRow> patchRows = const []]) → Bundle -
Map a Supabase bundle row + optional patch rows to a
Bundle. -
parseSupabaseStorageUri(
String storageUri) → ParsedStorageUri -
Parse a
supabase-storage://URI into bucket + key. -
supabaseEdgeFunctionDatabase(
SupabaseEdgeFunctionDatabaseConfig config, [DatabasePluginHooks? hooks]) → DatabasePlugin Function() - Edge-function variant of supabaseDatabase: builds the same database plugin from a url + service-role key pair (no anon key).
Typedefs
-
ResolveSignedUrl
= Future<
String> Function(String bucketName, String key) - Resolved function returned by createSupabaseSignedUrlBatcher.
- SupabaseClientFactory = SupabaseClientLike Function(String url, String key)
- Factory that builds a SupabaseClientLike from credentials.
- SupabaseDatabaseConfig = SupabaseServiceRoleConfig
- Configuration for the Supabase database plugin.