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..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'; @@ -287,7 +286,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); 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 ..