From 2c9a54e1241a8beb451341faa42459586efb4381 Mon Sep 17 00:00:00 2001 From: Dominik Krajcer Date: Sat, 15 Apr 2023 18:39:08 +0200 Subject: [PATCH] 0.7.1 * update CHANGELOG * update dependencies * fix typos * fix attachments in README --- CHANGELOG.md | 6 + README.md | 16 +- example/ios/Flutter/AppFrameworkInfo.plist | 52 +-- example/ios/Podfile | 82 ++--- example/ios/Podfile.lock | 6 +- example/ios/Runner.xcodeproj/project.pbxproj | 9 +- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- example/pubspec.lock | 72 ++-- example/pubspec.yaml | 2 +- .../ios/Flutter/AppFrameworkInfo.plist | 52 +-- example_with_tests/ios/Podfile | 82 ++--- example_with_tests/ios/Podfile.lock | 6 +- .../ios/Runner.xcodeproj/project.pbxproj | 9 +- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- example_with_tests/pubspec.lock | 324 ++---------------- example_with_tests/pubspec.yaml | 4 +- ..._error.dart => not_initialized_error.dart} | 2 +- lib/system_date_time_format.dart | 2 +- pubspec.yaml | 10 +- .../errors/not_ititialized_error_test.dart | 4 +- .../system_date_time_format_error_test.dart | 2 +- 21 files changed, 258 insertions(+), 488 deletions(-) rename lib/src/errors/{not_ititialized_error.dart => not_initialized_error.dart} (63%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63289ec..a979782 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.7.1 + +- Fixed attachments in [README](https://github.com/Nikoro/system_date_time_format/blob/main/README.md) +- Fixed typos +- Updated dependencies + ## 0.7.0 Added logo diff --git a/README.md b/README.md index 29eba65..a4cac01 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -

+

+ +

A plugin for getting date & time format from device system settings.

@@ -39,27 +41,27 @@ print(datePattern); // e.g. "M/d/yy" ### Examples | iOS (Region: United States πŸ‡ΊπŸ‡Έ) | Result | | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| ![ios_setup](https://github.com/Nikoro/system_date_time_format/blob/main/screenshots/ios_setup.jpg) | ![ios_result](https://github.com/Nikoro/system_date_time_format/blob/main/screenshots/ios_result.jpg) | +| ![ios_setup](https://raw.githubusercontent.com/nikoro/system_date_time_format/main/screenshots/ios_setup.jpg) | ![ios_result](https://raw.githubusercontent.com/nikoro/system_date_time_format/main/screenshots/ios_result.jpg) | | Android (Region: United Kingdom πŸ‡¬πŸ‡§) | Result | | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| ![android_setup](https://github.com/Nikoro/system_date_time_format/blob/main/screenshots/android_setup.jpg) | ![android_result](https://github.com/Nikoro/system_date_time_format/blob/main/screenshots/android_result.jpg) | +| ![android_setup](https://raw.githubusercontent.com/nikoro/system_date_time_format/main/screenshots/android_setup.jpg) | ![android_result](https://raw.githubusercontent.com/nikoro/system_date_time_format/main/screenshots/android_result.jpg) | | macOS (Region: Poland πŸ‡΅πŸ‡±) | Result | | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| ![macos_setup](https://github.com/Nikoro/system_date_time_format/blob/main/screenshots/macos_setup.png) | ![macos_result](https://github.com/Nikoro/system_date_time_format/blob/main/screenshots/macos_result.png) | +| ![macos_setup](https://raw.githubusercontent.com/nikoro/system_date_time_format/main/screenshots/macos_setup.png) | ![macos_result](https://raw.githubusercontent.com/nikoro/system_date_time_format/main/screenshots/macos_result.png) | | windows (Region: United States πŸ‡ΊπŸ‡Έ) | Result | | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| ![windows_setup](https://github.com/Nikoro/system_date_time_format/blob/main/screenshots/windows_setup.jpg) | ![windows_result](https://github.com/Nikoro/system_date_time_format/blob/main/screenshots/windows_result.jpg) | +| ![windows_setup](https://raw.githubusercontent.com/nikoro/system_date_time_format/main/screenshots/windows_setup.jpg) | ![windows_result](https://raw.githubusercontent.com/nikoro/system_date_time_format/main/screenshots/windows_result.jpg) | | linux (Region: United States πŸ‡ΊπŸ‡Έ) | Result | |---------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------| -| ![linux_setup](https://github.com/Nikoro/system_date_time_format/blob/main/screenshots/linux_setup.png) | ![linux_result](https://github.com/Nikoro/system_date_time_format/blob/main/screenshots/linux_result.png) | +| ![linux_setup](https://raw.githubusercontent.com/nikoro/system_date_time_format/main/screenshots/linux_setup.png) | ![linux_result](https://raw.githubusercontent.com/nikoro/system_date_time_format/main/screenshots/linux_result.png) | | web (Region: Poland πŸ‡΅πŸ‡±) | |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| ![web_result](https://github.com/Nikoro/system_date_time_format/blob/main/screenshots/web_result.png) +| ![web_result](https://raw.githubusercontent.com/nikoro/system_date_time_format/main/screenshots/web_result.png) ## Usage diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/example/ios/Flutter/AppFrameworkInfo.plist index 0d9747f..7c56964 100644 --- a/example/ios/Flutter/AppFrameworkInfo.plist +++ b/example/ios/Flutter/AppFrameworkInfo.plist @@ -1,26 +1,26 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - App - CFBundleIdentifier - io.flutter.flutter.app - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - App - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - MinimumOSVersion - 11.0 - - + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/example/ios/Podfile b/example/ios/Podfile index 5689f55..279576f 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -1,41 +1,41 @@ -# Uncomment this line to define a global platform for your project -# platform :ios, '11.0' - -# CocoaPods analytics sends network stats synchronously affecting flutter build latency. -ENV['COCOAPODS_DISABLE_STATS'] = 'true' - -project 'Runner', { - 'Debug' => :debug, - 'Profile' => :release, - 'Release' => :release, -} - -def flutter_root - generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) - unless File.exist?(generated_xcode_build_settings_path) - raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" - end - - File.foreach(generated_xcode_build_settings_path) do |line| - matches = line.match(/FLUTTER_ROOT\=(.*)/) - return matches[1].strip if matches - end - raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" -end - -require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) - -flutter_ios_podfile_setup - -target 'Runner' do - use_frameworks! - use_modular_headers! - - flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) -end - -post_install do |installer| - installer.pods_project.targets.each do |target| - flutter_additional_ios_build_settings(target) - end -end +# Uncomment this line to define a global platform for your project +# platform :ios, '12.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index e1b8cc5..d81296e 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -14,9 +14,9 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/system_date_time_format/ios" SPEC CHECKSUMS: - Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 + Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 system_date_time_format: b7d92d72dea1a17adc3b14b8c467ae6bc6181c00 -PODFILE CHECKSUM: 542a9c7d9a0b78ac8dc6b785dd41c4bfaaaf6a68 +PODFILE CHECKSUM: c4c93c5f6502fe2754f48404d3594bf779584011 -COCOAPODS: 1.12.0 +COCOAPODS: 1.13.0 diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index dbd3426..3b869cb 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -156,7 +156,7 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1300; + LastUpgradeCheck = 1430; ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { @@ -222,6 +222,7 @@ files = ( ); inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", ); name = "Thin Binary"; outputPaths = ( @@ -342,7 +343,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -420,7 +421,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -469,7 +470,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index c87d15a..a6b826d 100644 --- a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ =2.18.6 <3.0.0" + dart: ">=3.2.0-194.0.dev <4.0.0" flutter: ">=2.5.0" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index a732e2d..c17889b 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.1 + flutter_lints: ^3.0.1 flutter: uses-material-design: true diff --git a/example_with_tests/ios/Flutter/AppFrameworkInfo.plist b/example_with_tests/ios/Flutter/AppFrameworkInfo.plist index 0d9747f..7c56964 100644 --- a/example_with_tests/ios/Flutter/AppFrameworkInfo.plist +++ b/example_with_tests/ios/Flutter/AppFrameworkInfo.plist @@ -1,26 +1,26 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - App - CFBundleIdentifier - io.flutter.flutter.app - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - App - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - MinimumOSVersion - 11.0 - - + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/example_with_tests/ios/Podfile b/example_with_tests/ios/Podfile index 5689f55..279576f 100644 --- a/example_with_tests/ios/Podfile +++ b/example_with_tests/ios/Podfile @@ -1,41 +1,41 @@ -# Uncomment this line to define a global platform for your project -# platform :ios, '11.0' - -# CocoaPods analytics sends network stats synchronously affecting flutter build latency. -ENV['COCOAPODS_DISABLE_STATS'] = 'true' - -project 'Runner', { - 'Debug' => :debug, - 'Profile' => :release, - 'Release' => :release, -} - -def flutter_root - generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) - unless File.exist?(generated_xcode_build_settings_path) - raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" - end - - File.foreach(generated_xcode_build_settings_path) do |line| - matches = line.match(/FLUTTER_ROOT\=(.*)/) - return matches[1].strip if matches - end - raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" -end - -require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) - -flutter_ios_podfile_setup - -target 'Runner' do - use_frameworks! - use_modular_headers! - - flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) -end - -post_install do |installer| - installer.pods_project.targets.each do |target| - flutter_additional_ios_build_settings(target) - end -end +# Uncomment this line to define a global platform for your project +# platform :ios, '12.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/example_with_tests/ios/Podfile.lock b/example_with_tests/ios/Podfile.lock index e1b8cc5..d81296e 100644 --- a/example_with_tests/ios/Podfile.lock +++ b/example_with_tests/ios/Podfile.lock @@ -14,9 +14,9 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/system_date_time_format/ios" SPEC CHECKSUMS: - Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 + Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 system_date_time_format: b7d92d72dea1a17adc3b14b8c467ae6bc6181c00 -PODFILE CHECKSUM: 542a9c7d9a0b78ac8dc6b785dd41c4bfaaaf6a68 +PODFILE CHECKSUM: c4c93c5f6502fe2754f48404d3594bf779584011 -COCOAPODS: 1.12.0 +COCOAPODS: 1.13.0 diff --git a/example_with_tests/ios/Runner.xcodeproj/project.pbxproj b/example_with_tests/ios/Runner.xcodeproj/project.pbxproj index 9beef37..0952eca 100644 --- a/example_with_tests/ios/Runner.xcodeproj/project.pbxproj +++ b/example_with_tests/ios/Runner.xcodeproj/project.pbxproj @@ -156,7 +156,7 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1300; + LastUpgradeCheck = 1430; ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { @@ -205,6 +205,7 @@ files = ( ); inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", ); name = "Thin Binary"; outputPaths = ( @@ -342,7 +343,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -420,7 +421,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -469,7 +470,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/example_with_tests/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example_with_tests/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index c87d15a..a6b826d 100644 --- a/example_with_tests/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example_with_tests/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ =2.18.6 <3.0.0" + dart: ">=3.2.0-194.0.dev <4.0.0" flutter: ">=2.5.0" diff --git a/example_with_tests/pubspec.yaml b/example_with_tests/pubspec.yaml index 68fdd45..65d092d 100644 --- a/example_with_tests/pubspec.yaml +++ b/example_with_tests/pubspec.yaml @@ -15,8 +15,8 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.1 - mocktail: ^0.3.0 + flutter_lints: ^3.0.1 + mocktail: ^1.0.3 flutter: uses-material-design: true diff --git a/lib/src/errors/not_ititialized_error.dart b/lib/src/errors/not_initialized_error.dart similarity index 63% rename from lib/src/errors/not_ititialized_error.dart rename to lib/src/errors/not_initialized_error.dart index e0603ff..7a4647a 100644 --- a/lib/src/errors/not_ititialized_error.dart +++ b/lib/src/errors/not_initialized_error.dart @@ -6,6 +6,6 @@ class NotInitializedError extends Error { @override String toString() { - return '$name was called before initalization\n\n\nDid you forget to call:\n\nSystemDateTimeFormat().initialize()\n\n'; + return '$name was called before initialization\n\n\nDid you forget to call:\n\nSystemDateTimeFormat().initialize()\n\n'; } } diff --git a/lib/system_date_time_format.dart b/lib/system_date_time_format.dart index 259bf72..400d2e6 100644 --- a/lib/system_date_time_format.dart +++ b/lib/system_date_time_format.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:system_date_time_format/src/errors/not_ititialized_error.dart'; +import 'package:system_date_time_format/src/errors/not_initialized_error.dart'; import 'package:system_date_time_format/src/errors/sdtf_scope_not_found_error.dart'; import 'package:system_date_time_format/src/fallbacks.dart'; import 'package:system_date_time_format/src/patterns.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 4f17ab4..95bc923 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: system_date_time_format description: A plugin for getting date and time format patterns from device system settings. -version: 0.7.0 +version: 0.7.1 repository: https://github.com/Nikoro/system_date_time_format issue_tracker: https://github.com/Nikoro/system_date_time_format/issues @@ -13,14 +13,14 @@ dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - js: ^0.6.5 - plugin_platform_interface: ^2.1.4 + js: ^0.7.0 + plugin_platform_interface: ^2.1.8 dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.1 - mocktail: ^0.3.0 + flutter_lints: ^3.0.1 + mocktail: ^1.0.3 flutter: plugin: diff --git a/test/src/errors/not_ititialized_error_test.dart b/test/src/errors/not_ititialized_error_test.dart index 1c08971..890ba63 100644 --- a/test/src/errors/not_ititialized_error_test.dart +++ b/test/src/errors/not_ititialized_error_test.dart @@ -1,5 +1,5 @@ import 'package:flutter_test/flutter_test.dart'; -import 'package:system_date_time_format/src/errors/not_ititialized_error.dart'; +import 'package:system_date_time_format/src/errors/not_initialized_error.dart'; void main() { group('NotInitializedError', () { @@ -7,7 +7,7 @@ void main() { const name = 'name'; final error = NotInitializedError(name); const expected = - '$name was called before initalization\n\n\nDid you forget to call:\n\nSystemDateTimeFormat().initialize()\n\n'; + '$name was called before initialization\n\n\nDid you forget to call:\n\nSystemDateTimeFormat().initialize()\n\n'; expect(error.toString(), expected); }); }); diff --git a/test/system_date_time_format/system_date_time_format_error_test.dart b/test/system_date_time_format/system_date_time_format_error_test.dart index af67595..6207b18 100644 --- a/test/system_date_time_format/system_date_time_format_error_test.dart +++ b/test/system_date_time_format/system_date_time_format_error_test.dart @@ -1,5 +1,5 @@ import 'package:flutter_test/flutter_test.dart'; -import 'package:system_date_time_format/src/errors/not_ititialized_error.dart'; +import 'package:system_date_time_format/src/errors/not_initialized_error.dart'; import 'package:system_date_time_format/system_date_time_format.dart'; void main() {