@_nazmiforreal/flutter-ota 0.1.9 → 0.1.10

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.
@@ -1,6 +1,6 @@
1
1
  name: flutter_ota_kit_supabase
2
2
  description: Supabase plugin for flutter_ota_kit — database + storage backends.
3
- version: 0.1.0
3
+ version: 0.1.1
4
4
  publish_to: https://pub.dev
5
5
  homepage: https://github.com/HYPER12755/flutter_ota_kit
6
6
  repository: https://github.com/HYPER12755/flutter_ota_kit
@@ -46,3 +46,14 @@ ALTER FUNCTION public.get_update_info_by_app_version(
46
46
  text
47
47
  )
48
48
  SET search_path = public, pg_catalog;
49
+
50
+ -- OTA update checks are unauthenticated by design (the device only carries the
51
+ -- anon key), so bundle metadata must be publicly readable. hot-updater's hosted
52
+ -- Supabase flow relies on these policies existing.
53
+ CREATE POLICY "allow public read bundles" ON public.bundles FOR SELECT USING (true);
54
+ CREATE POLICY "allow public read bundle_patches" ON public.bundle_patches FOR SELECT USING (true);
55
+
56
+ -- Allow anon/authenticated to resolve signed download URLs for the bundles bucket.
57
+ CREATE POLICY "public bundles read" ON storage.objects
58
+ FOR SELECT TO anon, authenticated
59
+ USING (bucket_id = 'bundles');
@@ -46,3 +46,14 @@ ALTER FUNCTION public.get_update_info_by_app_version(
46
46
  text
47
47
  )
48
48
  SET search_path = public, pg_catalog;
49
+
50
+ -- OTA update checks are unauthenticated by design (the device only carries the
51
+ -- anon key), so bundle metadata must be publicly readable. hot-updater's hosted
52
+ -- Supabase flow relies on these policies existing.
53
+ CREATE POLICY "allow public read bundles" ON public.bundles FOR SELECT USING (true);
54
+ CREATE POLICY "allow public read bundle_patches" ON public.bundle_patches FOR SELECT USING (true);
55
+
56
+ -- Allow anon/authenticated to resolve signed download URLs for the bundles bucket.
57
+ CREATE POLICY "public bundles read" ON storage.objects
58
+ FOR SELECT TO anon, authenticated
59
+ USING (bucket_id = 'bundles');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_nazmiforreal/flutter-ota",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
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"