From 329ccac0f5bccb983fe53a6d121c5100b35767d3 Mon Sep 17 00:00:00 2001 From: Sardar1208 Date: Mon, 12 Feb 2024 09:50:19 +0530 Subject: [PATCH] feat: removed deps overrides, fixed warnings --- .../example/ios/Podfile.lock | 75 ++++++++++--------- .../example/pubspec.yaml | 3 - .../widgets/add_contacts_group_dialog.dart | 2 +- .../lib/widgets/add_single_contact_group.dart | 2 +- .../lib/widgets/loading_widget.dart | 2 +- .../at_contacts_group_flutter/pubspec.yaml | 7 +- 6 files changed, 45 insertions(+), 46 deletions(-) diff --git a/packages/at_contacts_group_flutter/example/ios/Podfile.lock b/packages/at_contacts_group_flutter/example/ios/Podfile.lock index 03b87576e..bc518c702 100644 --- a/packages/at_contacts_group_flutter/example/ios/Podfile.lock +++ b/packages/at_contacts_group_flutter/example/ios/Podfile.lock @@ -62,38 +62,43 @@ PODS: - fluttertoast (0.0.2): - Flutter - Toast - - libwebp (1.2.4): - - libwebp/demux (= 1.2.4) - - libwebp/mux (= 1.2.4) - - libwebp/webp (= 1.2.4) - - libwebp/demux (1.2.4): + - libwebp (1.3.2): + - libwebp/demux (= 1.3.2) + - libwebp/mux (= 1.3.2) + - libwebp/sharpyuv (= 1.3.2) + - libwebp/webp (= 1.3.2) + - libwebp/demux (1.3.2): - libwebp/webp - - libwebp/mux (1.2.4): + - libwebp/mux (1.3.2): - libwebp/demux - - libwebp/webp (1.2.4) + - libwebp/sharpyuv (1.3.2) + - libwebp/webp (1.3.2): + - libwebp/sharpyuv - Mantle (2.2.0): - Mantle/extobjc (= 2.2.0) - Mantle/extobjc (2.2.0) - MTBBarcodeScanner (5.0.11) - package_info_plus (0.4.5): - Flutter - - path_provider_ios (0.0.1): + - path_provider_foundation (0.0.1): - Flutter - - permission_handler_apple (9.0.4): + - FlutterMacOS + - permission_handler_apple (9.1.1): - Flutter - qr_code_scanner (0.2.0): - Flutter - MTBBarcodeScanner - - SDWebImage (5.15.5): - - SDWebImage/Core (= 5.15.5) - - SDWebImage/Core (5.15.5) - - SDWebImageWebPCoder (0.11.0): + - SDWebImage (5.18.10): + - SDWebImage/Core (= 5.18.10) + - SDWebImage/Core (5.18.10) + - SDWebImageWebPCoder (0.14.5): - libwebp (~> 1.0) - - SDWebImage/Core (~> 5.15) + - SDWebImage/Core (~> 5.17) - share_plus (0.0.1): - Flutter - - shared_preferences_ios (0.0.1): + - shared_preferences_foundation (0.0.1): - Flutter + - FlutterMacOS - SwiftyGif (5.4.4) - Toast (4.0.0) - url_launcher_ios (0.0.1): @@ -117,11 +122,11 @@ DEPENDENCIES: - flutter_keychain (from `.symlinks/plugins/flutter_keychain/ios`) - fluttertoast (from `.symlinks/plugins/fluttertoast/ios`) - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) - - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`) + - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) - qr_code_scanner (from `.symlinks/plugins/qr_code_scanner/ios`) - share_plus (from `.symlinks/plugins/share_plus/ios`) - - shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`) + - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`) - webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`) @@ -168,16 +173,16 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/fluttertoast/ios" package_info_plus: :path: ".symlinks/plugins/package_info_plus/ios" - path_provider_ios: - :path: ".symlinks/plugins/path_provider_ios/ios" + path_provider_foundation: + :path: ".symlinks/plugins/path_provider_foundation/darwin" permission_handler_apple: :path: ".symlinks/plugins/permission_handler_apple/ios" qr_code_scanner: :path: ".symlinks/plugins/qr_code_scanner/ios" share_plus: :path: ".symlinks/plugins/share_plus/ios" - shared_preferences_ios: - :path: ".symlinks/plugins/shared_preferences_ios/ios" + shared_preferences_foundation: + :path: ".symlinks/plugins/shared_preferences_foundation/darwin" url_launcher_ios: :path: ".symlinks/plugins/url_launcher_ios/ios" webview_flutter_wkwebview: @@ -190,32 +195,32 @@ SPEC CHECKSUMS: at_file_saver: c0e052c72d8c0296318bd70f2ae7f510887014ce at_onboarding_flutter: e8219b6d0bfb236d3837ec3528871aebdcc56e8d biometric_storage: 1400f1382af3a4cc2bf05340e13c3d8de873ceb9 - device_info_plus: e5c5da33f982a436e103237c0c85f9031142abed + device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6 DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179 - emoji_picker_flutter: df19dac03a2b39ac667dc8d1da939ef3a9e21347 - file_picker: ce3938a0df3cc1ef404671531facef740d03f920 + emoji_picker_flutter: fe2e6151c5b548e975d546e6eeb567daf0962a58 + file_picker: 15fd9539e4eb735dc54bae8c0534a7a9511a03de file_selector_ios: 8c25d700d625e1dcdd6599f2d927072f2254647b Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 flutter_image_compress_common: ec1d45c362c9d30a3f6a0426c297f47c52007e3e flutter_keychain: 01aabf894ffe8b01adfda1d9df21c210c1b4b452 - fluttertoast: 74526702fea2c060ea55dde75895b7e1bde1c86b - libwebp: f62cb61d0a484ba548448a4bd52aabf150ff6eef + fluttertoast: fafc4fa4d01a6a9e4f772ecd190ffa525e9e2d9c + libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009 Mantle: c5aa8794a29a022dfbbfc9799af95f477a69b62d MTBBarcodeScanner: f453b33c4b7dfe545d8c6484ed744d55671788cb - package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e - path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02 - permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce + package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85 + path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 + permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6 qr_code_scanner: bb67d64904c3b9658ada8c402e8b4d406d5d796e - SDWebImage: fd7e1a22f00303e058058278639bf6196ee431fe - SDWebImageWebPCoder: 295a6573c512f54ad2dd58098e64e17dcf008499 - share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68 - shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad + SDWebImage: fc8f2d48bbfd72ef39d70e981bd24a3f3be53fec + SDWebImageWebPCoder: c94f09adbca681822edad9e532ac752db713eabf + share_plus: c3fef564749587fc939ef86ffb283ceac0baf9f5 + shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126 SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f Toast: 91b396c56ee72a5790816f40d3a94dd357abc196 - url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de + url_launcher_ios: bf5ce03e0e2088bad9cc378ea97fa0ed5b49673b webview_flutter_wkwebview: 2e2d318f21a5e036e2c3f26171342e95908bd60a PODFILE CHECKSUM: 00aeb49562056f541ea701239573568e7adc5deb -COCOAPODS: 1.11.3 +COCOAPODS: 1.12.1 diff --git a/packages/at_contacts_group_flutter/example/pubspec.yaml b/packages/at_contacts_group_flutter/example/pubspec.yaml index 370bf4451..b89738ef0 100644 --- a/packages/at_contacts_group_flutter/example/pubspec.yaml +++ b/packages/at_contacts_group_flutter/example/pubspec.yaml @@ -46,9 +46,6 @@ dependencies: flutter: sdk: flutter -dependency_overrides: - at_commons: ^4.0.1 - dev_dependencies: # The "flutter_lints" package below contains a set of recommended lints to # encourage good coding practices. The lint set provided by the package is diff --git a/packages/at_contacts_group_flutter/lib/widgets/add_contacts_group_dialog.dart b/packages/at_contacts_group_flutter/lib/widgets/add_contacts_group_dialog.dart index 2ecd8ebfe..af1678ae7 100644 --- a/packages/at_contacts_group_flutter/lib/widgets/add_contacts_group_dialog.dart +++ b/packages/at_contacts_group_flutter/lib/widgets/add_contacts_group_dialog.dart @@ -32,7 +32,7 @@ class _AddContactDialogState extends State { @override Widget build(BuildContext context) { var _contactService = ContactService(); - var deviceTextFactor = MediaQuery.of(context).textScaleFactor; + var deviceTextFactor = MediaQuery.of(context).textScaler.scale(20)/20; return SizedBox( height: 100.toHeight * deviceTextFactor, width: 100.toWidth, diff --git a/packages/at_contacts_group_flutter/lib/widgets/add_single_contact_group.dart b/packages/at_contacts_group_flutter/lib/widgets/add_single_contact_group.dart index bf435b27c..00b255bd8 100644 --- a/packages/at_contacts_group_flutter/lib/widgets/add_single_contact_group.dart +++ b/packages/at_contacts_group_flutter/lib/widgets/add_single_contact_group.dart @@ -25,7 +25,7 @@ class _AddSingleContactState extends State { @override Widget build(BuildContext context) { SizeConfig().init(context); - var deviceTextFactor = MediaQuery.of(context).textScaleFactor; + var deviceTextFactor = MediaQuery.of(context).textScaler.scale(20) / 20; return SizedBox( height: 100 * deviceTextFactor, width: 100, diff --git a/packages/at_contacts_group_flutter/lib/widgets/loading_widget.dart b/packages/at_contacts_group_flutter/lib/widgets/loading_widget.dart index 2495e4df6..699d7f176 100644 --- a/packages/at_contacts_group_flutter/lib/widgets/loading_widget.dart +++ b/packages/at_contacts_group_flutter/lib/widgets/loading_widget.dart @@ -44,7 +44,7 @@ class LoadingDialog { Flexible( child: Text( text, - textScaleFactor: 1, + textScaler: const TextScaler.linear(1), style: style ?? TextStyle( color: ColorConstants.mildGrey, diff --git a/packages/at_contacts_group_flutter/pubspec.yaml b/packages/at_contacts_group_flutter/pubspec.yaml index 8d5b9ddd7..fdcec9448 100644 --- a/packages/at_contacts_group_flutter/pubspec.yaml +++ b/packages/at_contacts_group_flutter/pubspec.yaml @@ -15,9 +15,9 @@ environment: dependencies: at_client_mobile: ^3.2.12 at_common_flutter: ^2.0.12 - at_commons: ^3.0.55 + at_commons: ^4.0.1 at_contact: ^3.0.8 - at_contacts_flutter: ^4.0.13 + at_contacts_flutter: ^4.0.14 at_utils: ^3.0.15 collection: ^1.17.0 emoji_picker_flutter: ^1.6.1 @@ -34,9 +34,6 @@ dependencies: image_compression: ^1.0.4 pedantic: ^1.11.1 -dependency_overrides: - at_commons: ^4.0.1 - dev_dependencies: flutter_lints: ^2.0.3 flutter_test: