Skip to content

Commit

Permalink
Add test to build flutter web
Browse files Browse the repository at this point in the history
  • Loading branch information
dshukertjr committed Jul 26, 2024
1 parent 821cad9 commit 22ea442
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/supabase_flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,8 @@ jobs:
run: |
flutter pub downgrade app_links
flutter test --concurrency=1
- name: Verify if Flutter web build is successful
run: |
cd packages/supabase_flutter/example
flutter build web
18 changes: 18 additions & 0 deletions packages/supabase_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,21 @@ dev_dependencies:

flutter:
uses-material-design: true
melos_managed_dependency_overrides: functions_client,gotrue,postgrest,realtime_client,storage_client,yet_another_json_isolate
dependency_overrides:
functions_client:
path: ../../functions_client
gotrue:
path: ../../gotrue
postgrest:
path: ../../postgrest
realtime_client:
path: ../../realtime_client
storage_client:
path: ../../storage_client
supabase:
path: ../../supabase
yet_another_json_isolate:
path: ../../yet_another_json_isolate
supabase_flutter:
path: ../
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class YAJsonIsolate {
return jsonDecode(json);
}

Future<String> encode(Map json) async {
Future<String> encode(Object? json) async {
await null;
return jsonEncode(json);
}
Expand Down

0 comments on commit 22ea442

Please sign in to comment.