From 8c25e2c65c21d916a5384decaf59d9a40e8d5e9c Mon Sep 17 00:00:00 2001 From: "mr.mojtaba" Date: Tue, 30 Dec 2025 09:54:30 +0330 Subject: [PATCH] chore: remove unused dependencies from pubspec.lock files and update Flutter SDK version constraints --- lib/presentation/pages/splash/logic.dart | 27 ++++-- packages/chicken/pubspec.lock | 114 +---------------------- pubspec.lock | 114 +---------------------- 3 files changed, 21 insertions(+), 234 deletions(-) diff --git a/lib/presentation/pages/splash/logic.dart b/lib/presentation/pages/splash/logic.dart index d088dfc..8094576 100644 --- a/lib/presentation/pages/splash/logic.dart +++ b/lib/presentation/pages/splash/logic.dart @@ -1,5 +1,6 @@ import 'dart:io'; +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:rasadyar_app/data/model/app_info_model.dart'; @@ -35,9 +36,15 @@ class SplashLogic extends GetxController with GetTickerProviderStateMixin { duration: const Duration(milliseconds: 8000), ); - scaleAnimation.value = Tween(begin: 0.8, end: 1.2).animate(scaleController); + scaleAnimation.value = Tween( + begin: 0.8, + end: 1.2, + ).animate(scaleController); - rotationAnimation.value = Tween(begin: 0.0, end: 1).animate(rotateController); + rotationAnimation.value = Tween( + begin: 0.0, + end: 1, + ).animate(rotateController); rotateController.forward(); rotateController.addStatusListener((status) { @@ -152,8 +159,10 @@ class SplashLogic extends GetxController with GetTickerProviderStateMixin { Future.delayed(const Duration(milliseconds: 250), () async { try { - final isUpdateNeeded = await checkVersion(); - if (isUpdateNeeded) return; + if (!kDebugMode) { + final isUpdateNeeded = await checkVersion(); + if (isUpdateNeeded) return; + } final module = gService.getSelectedModule(); final target = gService.getTargetPage(module); @@ -164,8 +173,6 @@ class SplashLogic extends GetxController with GetTickerProviderStateMixin { if (target != null) { var mFuns = getFunctionsList(target.functions); await Future.wait(mFuns ?? []); - - iLog("target.route ===>${target.route!}"); Get.offAndToNamed(target.route!); } } catch (e, st) { @@ -185,7 +192,9 @@ class SplashLogic extends GetxController with GetTickerProviderStateMixin { try { final info = await PackageInfo.fromPlatform(); int version = info.version.versionNumber; - var res = await _dio.get("https://rsibackend.rasadyar.com/app/rasadyar-app-info/"); + var res = await _dio.get( + "https://rsibackend.rasadyar.com/app/rasadyar-app-info/", + ); appInfoModel = AppInfoModel.fromJson(res.data); @@ -244,7 +253,9 @@ class SplashLogic extends GetxController with GetTickerProviderStateMixin { Future installApk() async { try { eLog(_updateFilePath.value); - await platform.invokeMethod('apk_installer', {'appPath': _updateFilePath.value}); + await platform.invokeMethod('apk_installer', { + 'appPath': _updateFilePath.value, + }); } catch (e) { eLog(e); } diff --git a/packages/chicken/pubspec.lock b/packages/chicken/pubspec.lock index 4744afb..c14cd6d 100644 --- a/packages/chicken/pubspec.lock +++ b/packages/chicken/pubspec.lock @@ -49,14 +49,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.7.0" - asn1lib: - dependency: transitive - description: - name: asn1lib - sha256: "9a8f69025044eb466b9b60ef3bc3ac99b4dc6c158ae9c56d25eeccf5bc56d024" - url: "https://pub.dev" - source: hosted - version: "1.6.5" async: dependency: transitive description: @@ -337,14 +329,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.7.11" - device_frame_plus: - dependency: transitive - description: - name: device_frame_plus - sha256: ccc94abccd4d9f0a9f19ef239001b3a59896e678ad42601371d7065889f2bf78 - url: "https://pub.dev" - source: hosted - version: "1.5.0" device_info_plus: dependency: transitive description: @@ -361,14 +345,6 @@ packages: url: "https://pub.dev" source: hosted version: "7.0.3" - device_preview_plus: - dependency: transitive - description: - name: device_preview_plus - sha256: eb3e67929c9f04759e0d3708ad91d1018235549bcf8699f8a94909684c6555ae - url: "https://pub.dev" - source: hosted - version: "2.5.5" dio: dependency: transitive description: @@ -385,14 +361,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.1" - encrypt: - dependency: transitive - description: - name: encrypt - sha256: "62d9aa4670cc2a8798bab89b39fc71b6dfbacf615de6cf5001fb39f7e4a996a2" - url: "https://pub.dev" - source: hosted - version: "5.0.3" fake_async: dependency: transitive description: @@ -1309,14 +1277,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.8" - pointycastle: - dependency: transitive - description: - name: pointycastle - sha256: "4be0097fcf3fd3e8449e53730c631200ebc7b88016acecab2b0da2f0149222fe" - url: "https://pub.dev" - source: hosted - version: "3.9.1" pool: dependency: transitive description: @@ -1380,22 +1340,6 @@ packages: relative: true source: path version: "1.3.0" - rive: - dependency: transitive - description: - name: rive - sha256: "2551a44fa766a7ed3f52aa2b94feda6d18d00edc25dee5f66e72e9b365bb6d6c" - url: "https://pub.dev" - source: hosted - version: "0.13.20" - rive_common: - dependency: transitive - description: - name: rive_common - sha256: "2ba42f80d37a4efd0696fb715787c4785f8a13361e8aea9227c50f1e78cf763a" - url: "https://pub.dev" - source: hosted - version: "0.4.15" rxdart: dependency: transitive description: @@ -1412,62 +1356,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.1" - shared_preferences: - dependency: transitive - description: - name: shared_preferences - sha256: "2939ae520c9024cb197fc20dee269cd8cdbf564c8b5746374ec6cacdc5169e64" - url: "https://pub.dev" - source: hosted - version: "2.5.4" - shared_preferences_android: - dependency: transitive - description: - name: shared_preferences_android - sha256: "83af5c682796c0f7719c2bbf74792d113e40ae97981b8f266fa84574573556bc" - url: "https://pub.dev" - source: hosted - version: "2.4.18" - shared_preferences_foundation: - dependency: transitive - description: - name: shared_preferences_foundation - sha256: "4e7eaffc2b17ba398759f1151415869a34771ba11ebbccd1b0145472a619a64f" - url: "https://pub.dev" - source: hosted - version: "2.5.6" - shared_preferences_linux: - dependency: transitive - description: - name: shared_preferences_linux - sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_platform_interface: - dependency: transitive - description: - name: shared_preferences_platform_interface - sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_web: - dependency: transitive - description: - name: shared_preferences_web - sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019 - url: "https://pub.dev" - source: hosted - version: "2.4.3" - shared_preferences_windows: - dependency: transitive - description: - name: shared_preferences_windows - sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" - url: "https://pub.dev" - source: hosted - version: "2.4.1" shelf: dependency: transitive description: @@ -1843,4 +1731,4 @@ packages: version: "2.1.0" sdks: dart: ">=3.10.0 <4.0.0" - flutter: ">=3.35.7" + flutter: ">=3.35.0" diff --git a/pubspec.lock b/pubspec.lock index 71dc334..c7e01c6 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -49,14 +49,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.7.0" - asn1lib: - dependency: transitive - description: - name: asn1lib - sha256: "9a8f69025044eb466b9b60ef3bc3ac99b4dc6c158ae9c56d25eeccf5bc56d024" - url: "https://pub.dev" - source: hosted - version: "1.6.5" async: dependency: transitive description: @@ -337,14 +329,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.7.11" - device_frame_plus: - dependency: transitive - description: - name: device_frame_plus - sha256: ccc94abccd4d9f0a9f19ef239001b3a59896e678ad42601371d7065889f2bf78 - url: "https://pub.dev" - source: hosted - version: "1.5.0" device_info_plus: dependency: transitive description: @@ -361,14 +345,6 @@ packages: url: "https://pub.dev" source: hosted version: "7.0.3" - device_preview_plus: - dependency: transitive - description: - name: device_preview_plus - sha256: d55e6197bad38b5eb304ba4e3ec3979971d8f69599b5109406022cf978dd2be2 - url: "https://pub.dev" - source: hosted - version: "2.5.6" dio: dependency: transitive description: @@ -385,14 +361,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.1" - encrypt: - dependency: transitive - description: - name: encrypt - sha256: "62d9aa4670cc2a8798bab89b39fc71b6dfbacf615de6cf5001fb39f7e4a996a2" - url: "https://pub.dev" - source: hosted - version: "5.0.3" fake_async: dependency: transitive description: @@ -1316,14 +1284,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.8" - pointycastle: - dependency: transitive - description: - name: pointycastle - sha256: "4be0097fcf3fd3e8449e53730c631200ebc7b88016acecab2b0da2f0149222fe" - url: "https://pub.dev" - source: hosted - version: "3.9.1" pool: dependency: transitive description: @@ -1416,22 +1376,6 @@ packages: relative: true source: path version: "2.0.1" - rive: - dependency: transitive - description: - name: rive - sha256: "2551a44fa766a7ed3f52aa2b94feda6d18d00edc25dee5f66e72e9b365bb6d6c" - url: "https://pub.dev" - source: hosted - version: "0.13.20" - rive_common: - dependency: transitive - description: - name: rive_common - sha256: "2ba42f80d37a4efd0696fb715787c4785f8a13361e8aea9227c50f1e78cf763a" - url: "https://pub.dev" - source: hosted - version: "0.4.15" rxdart: dependency: transitive description: @@ -1448,62 +1392,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.1" - shared_preferences: - dependency: transitive - description: - name: shared_preferences - sha256: "2939ae520c9024cb197fc20dee269cd8cdbf564c8b5746374ec6cacdc5169e64" - url: "https://pub.dev" - source: hosted - version: "2.5.4" - shared_preferences_android: - dependency: transitive - description: - name: shared_preferences_android - sha256: "83af5c682796c0f7719c2bbf74792d113e40ae97981b8f266fa84574573556bc" - url: "https://pub.dev" - source: hosted - version: "2.4.18" - shared_preferences_foundation: - dependency: transitive - description: - name: shared_preferences_foundation - sha256: "4e7eaffc2b17ba398759f1151415869a34771ba11ebbccd1b0145472a619a64f" - url: "https://pub.dev" - source: hosted - version: "2.5.6" - shared_preferences_linux: - dependency: transitive - description: - name: shared_preferences_linux - sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_platform_interface: - dependency: transitive - description: - name: shared_preferences_platform_interface - sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_web: - dependency: transitive - description: - name: shared_preferences_web - sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019 - url: "https://pub.dev" - source: hosted - version: "2.4.3" - shared_preferences_windows: - dependency: transitive - description: - name: shared_preferences_windows - sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" - url: "https://pub.dev" - source: hosted - version: "2.4.1" shelf: dependency: transitive description: @@ -1839,4 +1727,4 @@ packages: version: "2.1.0" sdks: dart: ">=3.10.0 <4.0.0" - flutter: ">=3.35.7" + flutter: ">=3.35.0"