Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:math';

import 'package:commet/client/client.dart';
Expand Down Expand Up @@ -287,7 +286,7 @@ class MatrixLivekitVoipSession implements VoipSession {

@override
Future<ScreenCaptureSource?> pickScreenCapture(BuildContext context) async {
if (Platform.isAndroid) {
if (PlatformUtils.isAndroid) {
return WebrtcAndroidScreencaptureSource.getCaptureSource(context);
}
return WebrtcScreencaptureSource.showSelectSourcePrompt(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -37,7 +38,7 @@ class _DeveloperSettingsPageState extends State<DeveloperSettingsPage> {
notificationTests(),
rendering(),
error(),
if (Platform.isAndroid) shortcuts(),
if (PlatformUtils.isAndroid) shortcuts(),
backgroundTasks(),
dumpDatabases(),
tiamat.Panel(
Expand Down
1 change: 1 addition & 0 deletions commet/scripts/prepare-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..
Expand Down