From d28649e983ea1d5b8d394fdb382e1db3c03c4c54 Mon Sep 17 00:00:00 2001 From: Airyzz <36567925+Airyzz@users.noreply.github.com> Date: Mon, 26 Jan 2026 20:20:18 +1030 Subject: [PATCH 1/3] fix web builds --- .../settings/categories/developer/developer_settings_page.dart | 3 ++- commet/scripts/prepare-web.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/commet/lib/ui/pages/settings/categories/developer/developer_settings_page.dart b/commet/lib/ui/pages/settings/categories/developer/developer_settings_page.dart index 419b4128b..5cf786d92 100644 --- a/commet/lib/ui/pages/settings/categories/developer/developer_settings_page.dart +++ b/commet/lib/ui/pages/settings/categories/developer/developer_settings_page.dart @@ -3,6 +3,7 @@ import 'package:commet/client/components/push_notification/notification_content. import 'package:commet/client/components/push_notification/notification_manager.dart'; import 'package:commet/config/app_config.dart'; import 'package:commet/config/build_config.dart'; +import 'package:commet/config/platform_utils.dart'; import 'package:commet/diagnostic/diagnostics.dart'; import 'package:commet/main.dart'; import 'package:commet/ui/navigation/navigation_utils.dart'; @@ -37,7 +38,7 @@ class _DeveloperSettingsPageState extends State { notificationTests(), rendering(), error(), - if (Platform.isAndroid) shortcuts(), + if (PlatformUtils.isAndroid) shortcuts(), backgroundTasks(), dumpDatabases(), tiamat.Panel( diff --git a/commet/scripts/prepare-web.sh b/commet/scripts/prepare-web.sh index 875ae0a46..1160ffc57 100755 --- a/commet/scripts/prepare-web.sh +++ b/commet/scripts/prepare-web.sh @@ -2,6 +2,7 @@ git clone https://github.com/famedly/dart-vodozemac.git .vodozemac cd .vodozemac +git checkout 0.2.2 cargo install flutter_rust_bridge_codegen flutter_rust_bridge_codegen build-web --dart-root dart --rust-root $(readlink -f rust) --release cd .. From fa95e2f9564328f37e99f0af06db8c526a751000 Mon Sep 17 00:00:00 2001 From: Airyzz <36567925+Airyzz@users.noreply.github.com> Date: Mon, 26 Jan 2026 20:24:20 +1030 Subject: [PATCH 2/3] Update matrix_livekit_voip_session.dart --- .../components/voip_room/matrix_livekit_voip_session.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commet/lib/client/matrix/components/voip_room/matrix_livekit_voip_session.dart b/commet/lib/client/matrix/components/voip_room/matrix_livekit_voip_session.dart index 9760055a9..be1d1ec51 100644 --- a/commet/lib/client/matrix/components/voip_room/matrix_livekit_voip_session.dart +++ b/commet/lib/client/matrix/components/voip_room/matrix_livekit_voip_session.dart @@ -287,7 +287,7 @@ class MatrixLivekitVoipSession implements VoipSession { @override Future pickScreenCapture(BuildContext context) async { - if (Platform.isAndroid) { + if (PlatformUtils.isAndroid) { return WebrtcAndroidScreencaptureSource.getCaptureSource(context); } return WebrtcScreencaptureSource.showSelectSourcePrompt(context); From 95c1e8e15ef3737866863a040cf5557ec6f28214 Mon Sep 17 00:00:00 2001 From: Airyzz <36567925+Airyzz@users.noreply.github.com> Date: Mon, 26 Jan 2026 20:35:16 +1030 Subject: [PATCH 3/3] Update matrix_livekit_voip_session.dart --- .../matrix/components/voip_room/matrix_livekit_voip_session.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/commet/lib/client/matrix/components/voip_room/matrix_livekit_voip_session.dart b/commet/lib/client/matrix/components/voip_room/matrix_livekit_voip_session.dart index be1d1ec51..a06e89064 100644 --- a/commet/lib/client/matrix/components/voip_room/matrix_livekit_voip_session.dart +++ b/commet/lib/client/matrix/components/voip_room/matrix_livekit_voip_session.dart @@ -1,6 +1,5 @@ import 'dart:async'; import 'dart:convert'; -import 'dart:io'; import 'dart:math'; import 'package:commet/client/client.dart';