From 5efff387ccc88a1d723b14ae67aa44d5c1e96492 Mon Sep 17 00:00:00 2001 From: Aaron Madlon-Kay Date: Mon, 4 Mar 2024 14:42:55 +0900 Subject: [PATCH] v2.1.0 --- flutter_charset_detector/CHANGELOG.md | 3 +++ flutter_charset_detector/README.md | 4 ++++ flutter_charset_detector/example/pubspec.lock | 21 +++++++++++++++++++ flutter_charset_detector/pubspec.lock | 9 ++++---- flutter_charset_detector/pubspec.yaml | 4 ++-- 5 files changed, 35 insertions(+), 6 deletions(-) diff --git a/flutter_charset_detector/CHANGELOG.md b/flutter_charset_detector/CHANGELOG.md index 6d959d6..2824776 100644 --- a/flutter_charset_detector/CHANGELOG.md +++ b/flutter_charset_detector/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.1.0 +* Add web implementation + ## 2.0.0 * Drop older Android Gradle Plugin support diff --git a/flutter_charset_detector/README.md b/flutter_charset_detector/README.md index 47882ec..eb17902 100644 --- a/flutter_charset_detector/README.md +++ b/flutter_charset_detector/README.md @@ -15,11 +15,14 @@ libraries created by Mozilla. - Android: [juniversalchardet](https://github.com/albfernandez/juniversalchardet), a Java implementation of universalchardet +- Web: [jschardet](https://github.com/aadsm/jschardet), a JavaScript port of the + Python [chardet](https://github.com/chardet/chardet) ## Supported platforms - Android 4.1 (SDK 16) and higher - iOS 9 and higher +- Web (requires [TextDecoder](https://caniuse.com/textencoder) support) ## Supported charsets @@ -28,6 +31,7 @@ underlying library; for specifics see: - [iOS](https://gitlab.freedesktop.org/uchardet/uchardet/-/blob/v0.0.8/README.md#supported-languagesencodings) - [Android](https://github.com/albfernandez/juniversalchardet/blob/v2.4.0/README.md#encodings-that-can-be-detected) +- [Web](https://github.com/aadsm/jschardet/blob/v3.0.0/README.md#supported-charsets) ## Usage diff --git a/flutter_charset_detector/example/pubspec.lock b/flutter_charset_detector/example/pubspec.lock index 09f86ee..44397c4 100644 --- a/flutter_charset_detector/example/pubspec.lock +++ b/flutter_charset_detector/example/pubspec.lock @@ -85,6 +85,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.0" + flutter_charset_detector_web: + dependency: transitive + description: + name: flutter_charset_detector_web + sha256: d8495115abada771c75f9395aae3e5809ffd506e8fc8f62b403ae11fc29e1d2b + url: "https://pub.dev" + source: hosted + version: "1.0.2" flutter_lints: dependency: "direct dev" description: @@ -98,6 +106,19 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + js: + dependency: transitive + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" leak_tracker: dependency: transitive description: diff --git a/flutter_charset_detector/pubspec.lock b/flutter_charset_detector/pubspec.lock index 536a0fa..2f2e56c 100644 --- a/flutter_charset_detector/pubspec.lock +++ b/flutter_charset_detector/pubspec.lock @@ -81,10 +81,11 @@ packages: flutter_charset_detector_web: dependency: "direct main" description: - path: "../flutter_charset_detector_web" - relative: true - source: path - version: "1.0.1" + name: flutter_charset_detector_web + sha256: d8495115abada771c75f9395aae3e5809ffd506e8fc8f62b403ae11fc29e1d2b + url: "https://pub.dev" + source: hosted + version: "1.0.2" flutter_lints: dependency: "direct dev" description: diff --git a/flutter_charset_detector/pubspec.yaml b/flutter_charset_detector/pubspec.yaml index ecfcb68..ea78aed 100644 --- a/flutter_charset_detector/pubspec.yaml +++ b/flutter_charset_detector/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_charset_detector description: Detect and decode the charset (character encoding) of text bytes -version: 2.0.0 +version: 2.1.0 homepage: https://github.com/amake/flutter_charset_detector environment: @@ -16,7 +16,7 @@ dependencies: flutter_charset_detector_ios: ^1.0.0 # flutter_charset_detector_ios: # path: ../flutter_charset_detector_ios - flutter_charset_detector_web: ^1.0.0 + flutter_charset_detector_web: ^1.0.2 # flutter_charset_detector_web: # path: ../flutter_charset_detector_web flutter_charset_detector_platform_interface: ^1.0.0