flutter_ota_kit_supabase 0.1.2 copy "flutter_ota_kit_supabase: ^0.1.2" to clipboard
flutter_ota_kit_supabase: ^0.1.2 copied to clipboard

Supabase plugin for flutter_ota_kit — database + storage backends.

flutter_ota_kit_supabase #

Supabase backend for flutter_ota_kit. Implements the bundle database (PostgREST bundles table) and storage (signed URLs) used both by the flutter-ota CLI and by the Flutter SDK's FlutterPatcher.configureSupabase(...).

What's inside #

  • supabaseDatabase / SupabaseDatabaseConfig — read/update bundles over the Supabase REST (PostgREST) API.
  • supabaseStorage / SupabaseStorageConfig / parseSupabaseStorageUri — resolve presigned download URLs.
  • Edge-function variants: supabaseEdgeFunctionDatabase, supabaseEdgeFunctionStorage (extra security boundary via a Supabase Edge Function instead of direct client access).
  • SupabaseClientFactory / createSupabaseHttpClient — test seams / custom HTTP clients.
  • SupabaseServiceRoleConfig — holds the service-role or anon key with a resolveKey() helper.

Configuration (environment) #

Variable Purpose
SUPABASE_URL Project REST URL (https://<ref>.supabase.co).
SUPABASE_ANON_KEY Public anon key (RLS-protected reads).
SUPABASE_SERVICE_ROLE_KEY Service-role key (migrations / writes).
SUPABASE_BUCKET Storage bucket holding patch artifacts.
SUPABASE_BASE_PATH Optional prefix for stored objects.
SUPABASE_DATABASE_URL Connection string for migrations (alternative).

Usage (Flutter SDK) #

import 'package:flutter_ota_kit/flutter_ota_kit.dart';

FlutterPatcher.configureSupabase(SupabaseUpdateConfig(
  supabaseUrl: 'https://<ref>.supabase.co',
  anonKey: '<anon>',
  bucket: 'bundles',
  channel: 'production',
  platform: Platform.android,
  updateStrategy: UpdateStrategy.appVersion,
  appVersion: '1.0.0',
));

See doc/backends.md.

License #

MIT.

0
likes
0
points
234
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

Supabase plugin for flutter_ota_kit — database + storage backends.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter_ota_kit_core, flutter_ota_kit_plugin_core, http, supabase

More

Packages that depend on flutter_ota_kit_supabase