From b94f32779dd482a7001375ef644d38e3bb895e8a Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Fri, 2 Sep 2022 16:06:15 +0300 Subject: [PATCH] Update dependencies --- lib/core/context/tb_context.dart | 4 +-- pubspec.lock | 61 ++++++++++++++++++++++++++++---- pubspec.yaml | 2 +- 3 files changed, 58 insertions(+), 9 deletions(-) diff --git a/lib/core/context/tb_context.dart b/lib/core/context/tb_context.dart index 76a9a0e..ade19bd 100644 --- a/lib/core/context/tb_context.dart +++ b/lib/core/context/tb_context.dart @@ -1,6 +1,6 @@ import 'dart:async'; import 'package:universal_platform/universal_platform.dart'; -import 'package:device_info/device_info.dart'; +import 'package:device_info_plus/device_info_plus.dart'; import 'package:fluro/fluro.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; @@ -371,7 +371,7 @@ class TbContext { bool isPhysicalDevice() { if (UniversalPlatform.isAndroid) { - return _androidInfo!.isPhysicalDevice; + return _androidInfo!.isPhysicalDevice == true; } else if (UniversalPlatform.isIOS) { return _iosInfo!.isPhysicalDevice; } else { diff --git a/pubspec.lock b/pubspec.lock index 1d6a48d..2f42238 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -127,20 +127,48 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.4.2" - device_info: + device_info_plus: dependency: "direct main" description: - name: device_info + name: device_info_plus url: "https://pub.dartlang.org" source: hosted - version: "2.0.3" - device_info_platform_interface: + version: "4.1.2" + device_info_plus_linux: dependency: transitive description: - name: device_info_platform_interface + name: device_info_plus_linux url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "3.0.0" + device_info_plus_macos: + dependency: transitive + description: + name: device_info_plus_macos + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.0" + device_info_plus_platform_interface: + dependency: transitive + description: + name: device_info_plus_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.0" + device_info_plus_web: + dependency: transitive + description: + name: device_info_plus_web + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.0" + device_info_plus_windows: + dependency: transitive + description: + name: device_info_plus_windows + url: "https://pub.dartlang.org" + source: hosted + version: "4.0.0" dio: dependency: transitive description: @@ -162,6 +190,20 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.3.1" + ffi: + dependency: transitive + description: + name: ffi + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.1" + file: + dependency: transitive + description: + name: file + url: "https://pub.dartlang.org" + source: hosted + version: "6.1.4" fluro: dependency: "direct main" description: @@ -695,6 +737,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.2.0" + win32: + dependency: transitive + description: + name: win32 + url: "https://pub.dartlang.org" + source: hosted + version: "2.7.0" xml: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 0ba04cf..a93c0cc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -37,7 +37,7 @@ dependencies: mime: ^1.0.0 logger: ^1.0.0 qr_code_scanner: ^1.0.0 - device_info: ^2.0.0 + device_info_plus: ^4.1.2 geolocator: ^9.0.1 material_design_icons_flutter: ^5.0.5955-rc.1 package_info: ^2.0.2