Update Android API 35 (#3874)

This commit is contained in:
Dat Dang
2025-07-18 10:15:25 +07:00
committed by GitHub
parent 6f87058459
commit 78cb93ef1c
19 changed files with 191 additions and 128 deletions
+1 -2
View File
@@ -9,7 +9,7 @@ import 'package:flutter_charset_detector/flutter_charset_detector.dart';
import 'package:path_provider/path_provider.dart';
class FileUtils {
static const String DEFAULT_CHARSET = 'uft-8';
static const String DEFAULT_CHARSET = 'utf-8';
static const String TEXT_PLAIN_MIME_TYPE = 'text/plain';
Future<String> _getInternalStorageDirPath({
@@ -140,7 +140,6 @@ class FileUtils {
Future<String> getCharsetFromBytes(Uint8List bytes) async {
try {
if (PlatformInfo.isIOS || PlatformInfo.isMacOS) return DEFAULT_CHARSET;
final decodedResult = await CharsetDetector.autoDecode(bytes);
log('FileUtils::getCharsetFromBytes: FILE_CHARSET = ${decodedResult.charset}');
return decodedResult.charset;
+21 -14
View File
@@ -337,20 +337,27 @@ packages:
flutter_charset_detector:
dependency: "direct main"
description:
path: flutter_charset_detector
ref: main
resolved-ref: "36c3ffeea65f7b362c1e47e608802f0ca941f4d4"
url: "https://github.com/dab246/flutter_charset_detector.git"
source: git
version: "5.0.0"
name: flutter_charset_detector
sha256: "5d4796d43dac2f37e14149b0f0c676fa08e8eb1ada8e99342a838d971d2fb9b1"
url: "https://pub.dev"
source: hosted
version: "3.0.0"
flutter_charset_detector_android:
dependency: transitive
description:
name: flutter_charset_detector_android
sha256: "443145e8fc8515b3b32aee375691e40dd59197a86a2ae153166bc88c8200d83b"
sha256: bee057133d5f134fe211523a27200dd22c782b93777f43359a571bd2c77da2cc
url: "https://pub.dev"
source: hosted
version: "3.0.0"
version: "2.1.1"
flutter_charset_detector_darwin:
dependency: transitive
description:
name: flutter_charset_detector_darwin
sha256: "65d91133ea8ef06a440941b1126702b4735a8bd487430b41760e706a0b6b26d4"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
flutter_charset_detector_platform_interface:
dependency: transitive
description:
@@ -363,10 +370,10 @@ packages:
dependency: transitive
description:
name: flutter_charset_detector_web
sha256: e3ac65f94b12f4887937b21a19365d7927db816840cb93274e3861241cb0e9f2
sha256: d8495115abada771c75f9395aae3e5809ffd506e8fc8f62b403ae11fc29e1d2b
url: "https://pub.dev"
source: hosted
version: "2.0.0"
version: "1.0.2"
flutter_image_compress:
dependency: "direct main"
description:
@@ -765,18 +772,18 @@ packages:
dependency: "direct main"
description:
name: package_info_plus
sha256: "7e76fad405b3e4016cd39d08f455a4eb5199723cf594cd1b8916d47140d93017"
sha256: a75164ade98cb7d24cfd0a13c6408927c6b217fa60dee5a7ff5c116a58f28918
url: "https://pub.dev"
source: hosted
version: "4.2.0"
version: "8.0.2"
package_info_plus_platform_interface:
dependency: transitive
description:
name: package_info_plus_platform_interface
sha256: "9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6"
sha256: "6c935fb612dff8e3cc9632c2b301720c77450a126114126ffaafe28d2e87956c"
url: "https://pub.dev"
source: hosted
version: "2.0.1"
version: "3.2.0"
path:
dependency: transitive
description:
+2 -9
View File
@@ -85,18 +85,11 @@ dependencies:
printing: 5.12.0
package_info_plus: 4.2.0
package_info_plus: 8.0.2
fk_user_agent: 2.1.0
# flutter_charset_detector: 3.0.0
# TODO: Disable charset detector on IOS/MACOS to wait for migration status to complete.
# https://gitlab.freedesktop.org/uchardet/uchardet.git
flutter_charset_detector:
git:
url: https://github.com/dab246/flutter_charset_detector.git
ref: main
path: flutter_charset_detector
flutter_charset_detector: 3.0.0
debounce_throttle: 2.0.0