@_nazmiforreal/flutter-ota 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -191,7 +191,7 @@ class InitCommand extends FlutterPatcherCommand {
191
191
  url: _p('Supabase URL', env['SUPABASE_URL']),
192
192
  serviceRoleKey: _p(
193
193
  'Supabase service role key', env['SUPABASE_SERVICE_ROLE_KEY']),
194
- anonKey: _p('Supabase anon key', env['SUPABASE_ANON_KEY']),
194
+ anonKey: _p('Supabase publishable key', env['SUPABASE_PUBLISHABLE_KEY']),
195
195
  bucket: _p('Storage bucket', env['SUPABASE_BUCKET'] ?? 'bundles'),
196
196
  basePath: _p('Storage base path', env['SUPABASE_BASE_PATH']),
197
197
  managementKey: _p(
@@ -337,7 +337,7 @@ class InitCommand extends FlutterPatcherCommand {
337
337
  entries['POSTGRES_PASSWORD'] = c.password ?? '';
338
338
  entries['POSTGRES_SERVING_BASE_URL'] = c.servingBaseUrl ?? '';
339
339
  entries['CHANNEL'] = cfg.channel;
340
- entries['APP_VERSION'] = '1.0.0';
340
+ entries['APP_VERSION'] = '';
341
341
  case 'cloudflare':
342
342
  final c = cfg.cloudflare;
343
343
  entries['CLOUDFLARE_ACCOUNT_ID'] = c.accountId ?? '';
@@ -348,7 +348,7 @@ class InitCommand extends FlutterPatcherCommand {
348
348
  entries['R2_SECRET_ACCESS_KEY'] = c.r2SecretAccessKey ?? '';
349
349
  entries['R2_BASE_PATH'] = c.r2BasePath ?? '';
350
350
  entries['CHANNEL'] = cfg.channel;
351
- entries['APP_VERSION'] = '1.0.0';
351
+ entries['APP_VERSION'] = '';
352
352
  case 'aws':
353
353
  final c = cfg.aws;
354
354
  entries['AWS_BUCKET'] = c.bucket ?? '';
@@ -359,15 +359,15 @@ class InitCommand extends FlutterPatcherCommand {
359
359
  entries['AWS_BASE_PATH'] = c.basePath ?? '';
360
360
  entries['AWS_SESSION_TOKEN'] = c.sessionToken ?? '';
361
361
  entries['CHANNEL'] = cfg.channel;
362
- entries['APP_VERSION'] = '1.0.0';
362
+ entries['APP_VERSION'] = '';
363
363
  case 'supabase':
364
364
  default:
365
365
  final c = cfg.supabase;
366
366
  entries['SUPABASE_URL'] = c.url ?? '';
367
- entries['SUPABASE_ANON_KEY'] = c.anonKey ?? '';
367
+ entries['SUPABASE_PUBLISHABLE_KEY'] = c.anonKey ?? '';
368
368
  entries['SUPABASE_BUCKET'] = c.bucket ?? 'bundles';
369
369
  entries['CHANNEL'] = cfg.channel;
370
- entries['APP_VERSION'] = '1.0.0';
370
+ entries['APP_VERSION'] = '';
371
371
  entries['SDK_VERSION'] = '1.0.0';
372
372
  }
373
373
 
@@ -414,7 +414,7 @@ class InitCommand extends FlutterPatcherCommand {
414
414
  String _setupBody(FlutterPatcherConfig cfg, String provider) {
415
415
  final channel = _q(cfg.channel);
416
416
  final appVersionExpr =
417
- "const String.fromEnvironment('APP_VERSION', defaultValue: '1.0.0')";
417
+ "const String.fromEnvironment('APP_VERSION', defaultValue: '')";
418
418
 
419
419
  late final String configure;
420
420
  switch (provider) {
@@ -469,9 +469,9 @@ class InitCommand extends FlutterPatcherCommand {
469
469
  final c = cfg.supabase;
470
470
  configure = '''
471
471
  FlutterPatcher.configureSupabase(SupabaseUpdateConfig(
472
- supabaseUrl: const String.fromEnvironment('SUPABASE_URL', defaultValue: ${_q(c.url ?? '')}),
473
- anonKey: const String.fromEnvironment('SUPABASE_ANON_KEY', defaultValue: ''),
474
- bucket: const String.fromEnvironment('SUPABASE_BUCKET', defaultValue: ${_q(c.bucket ?? 'bundles')}),
472
+ supabaseUrl: const String.fromEnvironment('SUPABASE_URL', defaultValue: ${_q(c.url ?? '')}),
473
+ anonKey: const String.fromEnvironment('SUPABASE_PUBLISHABLE_KEY', defaultValue: ''),
474
+ bucket: const String.fromEnvironment('SUPABASE_BUCKET', defaultValue: ${_q(c.bucket ?? 'bundles')}),
475
475
  channel: const String.fromEnvironment('CHANNEL', defaultValue: $channel),
476
476
  platform: Platform.android,
477
477
  updateStrategy: UpdateStrategy.appVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_nazmiforreal/flutter-ota",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Command-line interface for flutter_ota_kit — an OTA code-push tool for Flutter, hot-updater compatible.",
5
5
  "bin": {
6
6
  "flutter-ota": "./bin/flutter-ota.js"
@@ -23,4 +23,4 @@
23
23
  "type": "git",
24
24
  "url": "https://github.com/HYPER12755/flutter_ota_kit"
25
25
  }
26
- }
26
+ }