Skip to content

Commit

Permalink
Merge pull request #199 from sjoulbak/feature/updating-dependencies-2…
Browse files Browse the repository at this point in the history
…022-06-08

Updating dependencies (allowing support toml ^0.13.1)
  • Loading branch information
ilteoood authored Jun 8, 2022
2 parents e13bc25 + c917141 commit 60d30a6
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 48 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,7 @@ Fix for #189
Fix for #190

## [0.32.3]
Fix for #197 and #196
Fix for #197 and #196

## [0.32.4]
Dependencies upgrade
2 changes: 0 additions & 2 deletions bin/flutter_i18n.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'package:flutter_i18n/utils/message_printer.dart';

import 'actions/ActionInterface.dart';
import 'actions/DiffAction.dart';
import 'actions/ValidateAction.dart';
Expand Down
2 changes: 0 additions & 2 deletions example/lib/basic_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:flutter_i18n/widgets/I18nPlural.dart';
import 'package:flutter_i18n/widgets/I18nText.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

Future main() async {
Expand Down
1 change: 0 additions & 1 deletion example/lib/local_example.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:async';
import 'dart:io';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n_delegate.dart';
import 'package:flutter_i18n/loaders/decoders/json_decode_strategy.dart';
Expand Down
1 change: 0 additions & 1 deletion example/lib/namespace_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:flutter_i18n/widgets/I18nText.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

Future main() async {
Expand Down
1 change: 0 additions & 1 deletion example/lib/network_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:flutter_i18n/loaders/decoders/json_decode_strategy.dart';
import 'package:flutter_i18n/widgets/I18nText.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

class CustomNetworkFileTranslationLoader extends NetworkFileTranslationLoader {
Expand Down
17 changes: 5 additions & 12 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.32.3"
version: "0.32.4"
flutter_localizations:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -329,7 +329,7 @@ packages:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "4.4.0"
version: "5.0.0"
platform:
dependency: transitive
description:
Expand Down Expand Up @@ -365,13 +365,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1+1"
shelf:
dependency: transitive
description:
Expand Down Expand Up @@ -488,7 +481,7 @@ packages:
name: toml
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.0"
version: "0.13.1"
typed_data:
dependency: transitive
description:
Expand Down Expand Up @@ -558,7 +551,7 @@ packages:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "5.3.1"
version: "5.4.1"
xml2json:
dependency: transitive
description:
Expand All @@ -574,5 +567,5 @@ packages:
source: hosted
version: "3.1.0"
sdks:
dart: ">=2.17.0-0 <3.0.0"
dart: ">=2.17.0 <3.0.0"
flutter: ">=2.5.0"
1 change: 0 additions & 1 deletion example/test/namespace_example_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_i18n_example/main.dart' as appmain;
import 'package:flutter_test/flutter_test.dart';
Expand Down
3 changes: 0 additions & 3 deletions lib/flutter_i18n.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:async';

import 'package:flutter/foundation.dart' as Foundation;
import 'package:flutter/widgets.dart';
import 'package:flutter_i18n/loaders/file_translation_loader.dart';
import 'package:flutter_i18n/loaders/translation_loader.dart';
Expand All @@ -9,8 +8,6 @@ import 'package:flutter_i18n/utils/plural_translator.dart';
import 'package:flutter_i18n/utils/simple_translator.dart';
import 'package:intl/intl.dart' as intl;

import 'utils/message_printer.dart';

export 'flutter_i18n_delegate.dart';
export 'loaders/e2e_file_translation_loader.dart';
export 'loaders/file_translation_loader.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/flutter_i18n_delegate.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_i18n/loaders/translation_loader.dart';
import 'package:flutter_i18n/utils/message_printer.dart';

import 'flutter_i18n.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/loaders/e2e_file_translation_loader.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:async';
import 'dart:convert';
import 'dart:typed_data';

import 'package:flutter/services.dart';

Expand Down
5 changes: 2 additions & 3 deletions lib/loaders/file_translation_loader.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:flutter/services.dart' show rootBundle;
import 'package:flutter/widgets.dart';
import 'package:flutter_i18n/loaders/decoders/base_decode_strategy.dart';
import 'package:flutter_i18n/loaders/decoders/json_decode_strategy.dart';
Expand Down Expand Up @@ -87,8 +86,8 @@ class FileTranslationLoader extends TranslationLoader implements IFileContent {
V mapResult;
if (result.containsKey(key)) {
if (p1 is Map && p2 is Map) {
Map map1 = p1 as Map;
Map map2 = p2 as Map;
Map map1 = p1;
Map map2 = p2;
mapResult = _deepMergeMaps(map1, map2) as V;
} else {
mapResult = p2;
Expand Down
1 change: 0 additions & 1 deletion lib/loaders/namespace_file_translation_loader.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/services.dart';
import 'package:flutter/services.dart' show rootBundle;
import 'package:flutter_i18n/loaders/file_translation_loader.dart';
import 'package:flutter_i18n/utils/message_printer.dart';

Expand Down
17 changes: 5 additions & 12 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,7 @@ packages:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "4.4.0"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.0"
version: "5.0.0"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -207,7 +200,7 @@ packages:
name: toml
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.0"
version: "0.13.1"
typed_data:
dependency: transitive
description:
Expand All @@ -228,14 +221,14 @@ packages:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "5.3.1"
version: "6.1.0"
xml2json:
dependency: "direct main"
description:
name: xml2json
url: "https://pub.dartlang.org"
source: hosted
version: "5.3.2"
version: "5.3.3"
yaml:
dependency: "direct main"
description:
Expand All @@ -244,4 +237,4 @@ packages:
source: hosted
version: "3.1.1"
sdks:
dart: ">=2.17.0-0 <3.0.0"
dart: ">=2.17.0 <3.0.0"
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_i18n
description: i18n made easy for Flutter. With flutter_i18n you can make your app international, using just a simple .json file!
version: 0.32.3
version: 0.32.4
homepage: https://github.com/ilteoood/flutter_i18n
issue_tracker: https://github.com/ilteoood/flutter_i18n/issues

Expand All @@ -15,7 +15,7 @@ dependencies:
yaml: ^3.1.0
xml2json: ^5.3.2
path: ^1.8.0
toml: ^0.12.0
toml: ^0.13.1
logging: ^1.0.2
http: ^0.13.4

Expand Down
2 changes: 0 additions & 2 deletions test/loaders/file_translation_loader_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:math';

import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:flutter_test/flutter_test.dart';
Expand Down
2 changes: 0 additions & 2 deletions test/loaders/network_file_translation_loader_test.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:flutter_test/flutter_test.dart';

import '../test_asset_bundle.dart';

class CustomNetworkFileTranslationLoader extends NetworkFileTranslationLoader {
CustomNetworkFileTranslationLoader({required baseUri})
: super(baseUri: baseUri);
Expand Down

0 comments on commit 60d30a6

Please sign in to comment.