Skip to content

Commit 22ea442

Browse files
committed
Add test to build flutter web
1 parent 821cad9 commit 22ea442

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.github/workflows/supabase_flutter.yml

+5
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,8 @@ jobs:
7676
run: |
7777
flutter pub downgrade app_links
7878
flutter test --concurrency=1
79+
80+
- name: Verify if Flutter web build is successful
81+
run: |
82+
cd packages/supabase_flutter/example
83+
flutter build web

packages/supabase_flutter/example/pubspec.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,21 @@ dev_dependencies:
2121

2222
flutter:
2323
uses-material-design: true
24+
melos_managed_dependency_overrides: functions_client,gotrue,postgrest,realtime_client,storage_client,yet_another_json_isolate
25+
dependency_overrides:
26+
functions_client:
27+
path: ../../functions_client
28+
gotrue:
29+
path: ../../gotrue
30+
postgrest:
31+
path: ../../postgrest
32+
realtime_client:
33+
path: ../../realtime_client
34+
storage_client:
35+
path: ../../storage_client
36+
supabase:
37+
path: ../../supabase
38+
yet_another_json_isolate:
39+
path: ../../yet_another_json_isolate
40+
supabase_flutter:
41+
path: ../

packages/yet_another_json_isolate/lib/src/_isolates_web.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class YAJsonIsolate {
1010
return jsonDecode(json);
1111
}
1212

13-
Future<String> encode(Map json) async {
13+
Future<String> encode(Object? json) async {
1414
await null;
1515
return jsonEncode(json);
1616
}

0 commit comments

Comments
 (0)