remove client side ua parsing

This commit is contained in:
Hiroshi Horie
2022-01-31 19:57:25 +07:00
parent 4aa0e0f427
commit cf476e365b
4 changed files with 0 additions and 75 deletions
-35
View File
@@ -50,13 +50,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
csslib:
dependency: transitive
description:
name: csslib
url: "https://pub.dartlang.org"
source: hosted
version: "0.17.1"
dart_webrtc:
dependency: transitive
description:
@@ -191,13 +184,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
html:
dependency: transitive
description:
name: html
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0"
http:
dependency: transitive
description:
@@ -497,20 +483,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
universal_html:
dependency: transitive
description:
name: universal_html
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
universal_io:
dependency: transitive
description:
name: universal_io
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.4"
uuid:
dependency: transitive
description:
@@ -525,13 +497,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
web_browser_detect:
dependency: transitive
description:
name: web_browser_detect
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
webrtc_interface:
dependency: transitive
description:
-4
View File
@@ -5,7 +5,6 @@ import 'package:device_info_plus/device_info_plus.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter_webrtc/flutter_webrtc.dart' as rtc;
import 'package:meta/meta.dart';
import 'package:web_browser_detect/web_browser_detect.dart' as bd;
import './proto/livekit_models.pb.dart' as lk_models;
import './support/native.dart';
@@ -68,11 +67,8 @@ class Utils {
static Future<lk_models.ClientInfo?> _clientInfo() async {
switch (lkPlatform()) {
case PlatformType.web:
final browser = bd.Browser();
return lk_models.ClientInfo(
os: defaultTargetPlatform.name,
browser: browser.browserAgent.name,
browserVersion: browser.version,
);
case PlatformType.windows:
return lk_models.ClientInfo(
-35
View File
@@ -57,13 +57,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
csslib:
dependency: transitive
description:
name: csslib
url: "https://pub.dartlang.org"
source: hosted
version: "0.17.1"
dart_webrtc:
dependency: "direct main"
description:
@@ -170,13 +163,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.8.1"
html:
dependency: transitive
description:
name: html
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0"
http:
dependency: "direct main"
description:
@@ -385,20 +371,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
universal_html:
dependency: transitive
description:
name: universal_html
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
universal_io:
dependency: transitive
description:
name: universal_io
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.4"
uuid:
dependency: "direct main"
description:
@@ -413,13 +385,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
web_browser_detect:
dependency: "direct main"
description:
name: web_browser_detect
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
webrtc_interface:
dependency: transitive
description:
-1
View File
@@ -25,7 +25,6 @@ dependencies:
flutter_webrtc: ^0.8.1
dart_webrtc: ^1.0.3
device_info_plus: ^3.2.1
web_browser_detect: ^2.0.2
dev_dependencies:
flutter_test: