π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Upgrade dio
Neeraj Gupta5a639a9c60c9
diff --git a/mobile/lib/core/error-reporting/super_logging.dart b/mobile/lib/core/error-reporting/super_logging.dartindex 7c0bef58be..55e93c5947 100644--- a/mobile/lib/core/error-reporting/super_logging.dart+++ b/mobile/lib/core/error-reporting/super_logging.dart@@ -236,7 +236,7 @@ class SuperLogging {}static _shouldSkipSentry(Object error) {- if (error is DioError) {+ if (error is DioException) {return true;}final bool result = error is StorageLimitExceededError ||diff --git a/mobile/lib/core/network/network.dart b/mobile/lib/core/network/network.dartindex a55a1a807e..9722a40f24 100644--- a/mobile/lib/core/network/network.dart+++ b/mobile/lib/core/network/network.dart@@ -8,18 +8,17 @@ import 'package:photos/core/network/ente_interceptor.dart';import "package:photos/events/endpoint_updated_event.dart";import "package:ua_client_hints/ua_client_hints.dart";-int kConnectTimeout = 15000;-class NetworkClient {late Dio _dio;late Dio _enteDio;+ static const kConnectTimeout = 15;Future<void> init(PackageInfo packageInfo) async {final String ua = await userAgent();final endpoint = Configuration.instance.getHttpEndpoint();_dio = Dio(BaseOptions(- connectTimeout: kConnectTimeout,+ connectTimeout: const Duration(seconds: kConnectTimeout),headers: {HttpHeaders.userAgentHeader: ua,'X-Client-Version': packageInfo.version,@@ -30,7 +29,7 @@ class NetworkClient {_enteDio = Dio(BaseOptions(baseUrl: endpoint,- connectTimeout: kConnectTimeout,+ connectTimeout: const Duration(seconds: kConnectTimeout),headers: {HttpHeaders.userAgentHeader: ua,'X-Client-Version': packageInfo.version,diff --git a/mobile/lib/gateways/cast_gw.dart b/mobile/lib/gateways/cast_gw.dartindex bc8af897ab..3db3894ad4 100644--- a/mobile/lib/gateways/cast_gw.dart+++ b/mobile/lib/gateways/cast_gw.dart@@ -12,7 +12,7 @@ class CastGateway {);return response.data["publicKey"];} catch (e) {- if (e is DioError && e.response != null) {+ if (e is DioException && e.response != null) {if (e.response!.statusCode == 404) {return null;} else if (e.response!.statusCode == 403) {diff --git a/mobile/lib/gateways/entity_gw.dart b/mobile/lib/gateways/entity_gw.dartindex a88d31eeb9..0e4b8bb2bc 100644--- a/mobile/lib/gateways/entity_gw.dart+++ b/mobile/lib/gateways/entity_gw.dart@@ -32,7 +32,7 @@ class EntityGateway {},);return EntityKey.fromMap(response.data);- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response != null && (e.response!.statusCode ?? 0) == 404) {throw EntityKeyNotFound();} else {diff --git a/mobile/lib/module/upload/service/multipart.dart b/mobile/lib/module/upload/service/multipart.dartindex 163f055845..762d26301e 100644--- a/mobile/lib/module/upload/service/multipart.dart+++ b/mobile/lib/module/upload/service/multipart.dart@@ -132,7 +132,7 @@ class MultiPartUploader {// upload individual parts and get their etagstry {etags = await _uploadParts(multipartInfo, encryptedFile);- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response?.statusCode == 404) {_logger.severe("Multipart upload not found for key ${multipartInfo.urls.objectKey}",@@ -157,7 +157,7 @@ class MultiPartUploader {etags,multipartInfo.urls.completeURL,);- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response?.statusCode == 404) {_logger.severe("Multipart upload not found for key ${multipartInfo.urls.objectKey}",diff --git a/mobile/lib/services/billing_service.dart b/mobile/lib/services/billing_service.dartindex b26d4507a3..130a26241d 100644--- a/mobile/lib/services/billing_service.dart+++ b/mobile/lib/services/billing_service.dart@@ -92,7 +92,7 @@ class BillingService {},);return Subscription.fromMap(response.data["subscription"]);- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response != null && e.response!.statusCode == 409) {throw SubscriptionAlreadyClaimedError();} else {@@ -109,7 +109,7 @@ class BillingService {final response = await _enteDio.get("/billing/subscription");final subscription = Subscription.fromMap(response.data["subscription"]);return subscription;- } on DioError catch (e, s) {+ } on DioException catch (e, s) {_logger.severe(e, s);rethrow;}@@ -121,7 +121,7 @@ class BillingService {await _enteDio.post("/billing/stripe/cancel-subscription");final subscription = Subscription.fromMap(response.data["subscription"]);return subscription;- } on DioError catch (e, s) {+ } on DioException catch (e, s) {_logger.severe(e, s);rethrow;}@@ -133,7 +133,7 @@ class BillingService {await _enteDio.post("/billing/stripe/activate-subscription");final subscription = Subscription.fromMap(response.data["subscription"]);return subscription;- } on DioError catch (e, s) {+ } on DioException catch (e, s) {_logger.severe(e, s);rethrow;}@@ -150,7 +150,7 @@ class BillingService {},);return response.data["url"];- } on DioError catch (e, s) {+ } on DioException catch (e, s) {_logger.severe(e, s);rethrow;}diff --git a/mobile/lib/services/collections_service.dart b/mobile/lib/services/collections_service.dartindex 7c5de3985b..3bac9fe978 100644--- a/mobile/lib/services/collections_service.dart+++ b/mobile/lib/services/collections_service.dart@@ -553,7 +553,7 @@ class CollectionsService {unawaited(_db.insert([_collectionIDToCollections[collectionID]!]));RemoteSyncService.instance.sync(silently: true).ignore();return sharees;- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response?.statusCode == 402) {throw SharingNotPermittedForFreeAccountsError();}@@ -641,7 +641,7 @@ class CollectionsService {} else {await _handleCollectionDeletion(collection);}- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response != null) {debugPrint("Error " + e.response!.toString());}@@ -808,7 +808,7 @@ class CollectionsService {// trigger sync to fetch the latest collection state from serversync().ignore();- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response != null && e.response?.statusCode == 409) {_logger.severe('collection magic data out of sync');sync().ignore();@@ -867,7 +867,7 @@ class CollectionsService {_cacheLocalPathAndCollection(collection);// trigger sync to fetch the latest collection state from serversync().ignore();- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response != null && e.response?.statusCode == 409) {_logger.severe('collection magic data out of sync');sync().ignore();@@ -927,7 +927,7 @@ class CollectionsService {_cacheLocalPathAndCollection(collection);// trigger sync to fetch the latest collection state from serversync().ignore();- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response != null && e.response?.statusCode == 409) {_logger.severe('collection magic data out of sync');sync().ignore();@@ -958,7 +958,7 @@ class CollectionsService {Bus.instance.fire(CollectionUpdatedEvent(collection.id, <EnteFile>[], "shareUrL"),);- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response?.statusCode == 402) {throw SharingNotPermittedForFreeAccountsError();}@@ -987,7 +987,7 @@ class CollectionsService {Bus.instance.fire(CollectionUpdatedEvent(collection.id, <EnteFile>[], "updateUrl"),);- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response?.statusCode == 402) {throw SharingNotPermittedForFreeAccountsError();}@@ -1013,7 +1013,7 @@ class CollectionsService {"disableShareUrl",),);- } on DioError catch (e) {+ } on DioException catch (e) {_logger.info(e);rethrow;}@@ -1038,7 +1038,7 @@ class CollectionsService {return collections;} catch (e, s) {_logger.warning(e, s);- if (e is DioError && e.response?.statusCode == 401) {+ if (e is DioException && e.response?.statusCode == 401) {throw UnauthorizedError();}rethrow;@@ -1091,7 +1091,7 @@ class CollectionsService {} catch (e, s) {_logger.warning(e, s);_logger.severe("Failed to fetch public collection");- if (e is DioError && e.response?.statusCode == 410) {+ if (e is DioException && e.response?.statusCode == 410) {await showInfoDialog(context,title: S.of(context).linkExpired,@@ -1100,7 +1100,7 @@ class CollectionsService {throw UnauthorizedError();}await showGenericErrorDialog(context: context, error: e);- if (e is DioError && e.response?.statusCode == 401) {+ if (e is DioException && e.response?.statusCode == 401) {throw UnauthorizedError();}rethrow;@@ -1300,7 +1300,7 @@ class CollectionsService {_cacheLocalPathAndCollection(collection);return collection;} catch (e) {- if (e is DioError && e.response?.statusCode == 401) {+ if (e is DioException && e.response?.statusCode == 401) {throw UnauthorizedError();}_logger.severe('failed to fetch collection: $collectionID', e);diff --git a/mobile/lib/services/file_magic_service.dart b/mobile/lib/services/file_magic_service.dartindex 9fbbfb9760..30e74d9c73 100644--- a/mobile/lib/services/file_magic_service.dart+++ b/mobile/lib/services/file_magic_service.dart@@ -117,7 +117,7 @@ class FileMagicService {// should be eventually synced after remote sync has completedawait _filesDB.insertMultiple(files);RemoteSyncService.instance.sync(silently: true).ignore();- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response != null && e.response!.statusCode == 409) {RemoteSyncService.instance.sync(silently: true).ignore();}@@ -185,7 +185,7 @@ class FileMagicService {// update the state of the selected file. Same file in other collection// should be eventually synced after remote sync has completedRemoteSyncService.instance.sync(silently: true).ignore();- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response != null && e.response!.statusCode == 409) {RemoteSyncService.instance.sync(silently: true).ignore();}diff --git a/mobile/lib/services/sync_service.dart b/mobile/lib/services/sync_service.dartindex 873270f349..bf42fecf26 100644--- a/mobile/lib/services/sync_service.dart+++ b/mobile/lib/services/sync_service.dart@@ -131,11 +131,11 @@ class SyncService {),);} catch (e) {- if (e is DioError) {- if (e.type == DioErrorType.connectTimeout ||- e.type == DioErrorType.sendTimeout ||- e.type == DioErrorType.receiveTimeout ||- e.type == DioErrorType.other) {+ if (e is DioException) {+ if (e.type == DioExceptionType.connectionTimeout ||+ e.type == DioExceptionType.sendTimeout ||+ e.type == DioExceptionType.receiveTimeout ||+ e.type == DioExceptionType.unknown) {Bus.instance.fire(SyncStatusUpdate(SyncStatus.paused,diff --git a/mobile/lib/services/user_service.dart b/mobile/lib/services/user_service.dartindex 80d0cf1caa..7e6223476d 100644--- a/mobile/lib/services/user_service.dart+++ b/mobile/lib/services/user_service.dart@@ -124,7 +124,7 @@ class UserService {} else {throw Exception("send-ott action failed, non-200");}- } on DioError catch (e) {+ } on DioException catch (e) {await dialog.hide();_logger.info(e);final String? enteErrCode = e.response?.data["code"];@@ -185,7 +185,7 @@ class UserService {);final publicKey = response.data["publicKey"];return publicKey;- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response != null && e.response?.statusCode == 404) {return null;}@@ -221,7 +221,7 @@ class UserService {}}return userDetails;- } on DioError catch (e) {+ } on DioException catch (e) {_logger.info(e);rethrow;}@@ -231,7 +231,7 @@ class UserService {try {final response = await _enteDio.get("/users/sessions");return Sessions.fromMap(response.data);- } on DioError catch (e) {+ } on DioException catch (e) {_logger.info(e);rethrow;}@@ -245,7 +245,7 @@ class UserService {"token": token,},);- } on DioError catch (e) {+ } on DioException catch (e) {_logger.info(e);rethrow;}@@ -254,7 +254,7 @@ class UserService {Future<void> leaveFamilyPlan() async {try {await _enteDio.delete("/family/leave");- } on DioError catch (e) {+ } on DioException catch (e) {_logger.warning('failed to leave family plan', e);rethrow;}@@ -271,7 +271,7 @@ class UserService {}} catch (e) {// check if token is already invalid- if (e is DioError && e.response?.statusCode == 401) {+ if (e is DioException && e.response?.statusCode == 401) {await Configuration.instance.logout();Navigator.of(context).popUntil((route) => route.isFirst);return;@@ -342,7 +342,7 @@ class UserService {},);return response.data;- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response != null) {if (e.response!.statusCode == 404 || e.response!.statusCode == 410) {throw PassKeySessionExpiredError();@@ -460,7 +460,7 @@ class UserService {// should never reach herethrow Exception("unexpected response during email verification");}- } on DioError catch (e) {+ } on DioException catch (e) {_logger.info(e);await dialog.hide();if (e.response != null && e.response!.statusCode == 410) {@@ -532,7 +532,7 @@ class UserService {S.of(context).oops,S.of(context).verificationFailedPleaseTryAgain,);- } on DioError catch (e) {+ } on DioException catch (e) {await dialog.hide();if (e.response != null && e.response!.statusCode == 403) {// ignore: unawaited_futures@@ -592,7 +592,7 @@ class UserService {} else {throw Exception("get-srp-attributes action failed");}- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response != null && e.response!.statusCode == 404) {throw SrpSetupNotCompleteError();}@@ -865,7 +865,7 @@ class UserService {(route) => route.isFirst,);}- } on DioError catch (e) {+ } on DioException catch (e) {await dialog.hide();_logger.severe(e);if (e.response != null && e.response!.statusCode == 404) {@@ -932,7 +932,7 @@ class UserService {(route) => route.isFirst,);}- } on DioError catch (e) {+ } on DioException catch (e) {await dialog.hide();_logger.severe('error while recovery 2fa', e);if (e.response != null && e.response!.statusCode == 404) {@@ -1031,7 +1031,7 @@ class UserService {(route) => route.isFirst,);}- } on DioError catch (e) {+ } on DioException catch (e) {await dialog.hide();_logger.severe("error during recovery", e);if (e.response != null && e.response!.statusCode == 404) {@@ -1126,7 +1126,7 @@ class UserService {} catch (e, s) {await dialog.hide();_logger.severe(e, s);- if (e is DioError) {+ if (e is DioException) {if (e.response != null && e.response!.statusCode == 401) {// ignore: unawaited_futuresshowErrorDialog(diff --git a/mobile/lib/ui/account/login_pwd_verification_page.dart b/mobile/lib/ui/account/login_pwd_verification_page.dartindex ac974c20da..2d5e9237ce 100644--- a/mobile/lib/ui/account/login_pwd_verification_page.dart+++ b/mobile/lib/ui/account/login_pwd_verification_page.dart@@ -113,7 +113,7 @@ class _LoginPasswordVerificationPageStatepassword,dialog,);- } on DioError catch (e, s) {+ } on DioException catch (e, s) {await dialog.hide();if (e.response != null && e.response!.statusCode == 401) {_logger.severe('server reject, failed verify SRP login', e, s);@@ -123,8 +123,10 @@ class _LoginPasswordVerificationPageStateS.of(context).pleaseTryAgain,);} else {- _logger.severe('API failure during SRP login', e, s);- if (e.type == DioErrorType.other) {+ _logger.severe('API failure during SRP login ${e.type}', e, s);+ if (e.type == DioExceptionType.connectionTimeout ||+ e.type == DioExceptionType.receiveTimeout ||+ e.type == DioExceptionType.sendTimeout) {await _showContactSupportDialog(context,S.of(context).noInternetConnection,diff --git a/mobile/lib/ui/account/verify_recovery_page.dart b/mobile/lib/ui/account/verify_recovery_page.dartindex 54c8595977..46585a734d 100644--- a/mobile/lib/ui/account/verify_recovery_page.dart+++ b/mobile/lib/ui/account/verify_recovery_page.dart@@ -43,7 +43,7 @@ class _VerifyRecoveryPageState extends State<VerifyRecoveryPage> {await userRemoteFlagService.markRecoveryVerificationAsDone();} catch (e) {await dialog.hide();- if (e is DioError && e.type == DioErrorType.other) {+ if (e is DioException && e.type == DioExceptionType.connectionError) {await showErrorDialog(context,S.of(context).noInternetConnection,diff --git a/mobile/lib/ui/growth/referral_code_widget.dart b/mobile/lib/ui/growth/referral_code_widget.dartindex cb139c7263..7620aff22d 100644--- a/mobile/lib/ui/growth/referral_code_widget.dart+++ b/mobile/lib/ui/growth/referral_code_widget.dart@@ -108,7 +108,7 @@ class ReferralCodeWidget extends StatelessWidget {notifyParent?.call();} catch (e, s) {Logger("ReferralCodeWidget").severe("Failed to update code", e, s);- if (e is DioError) {+ if (e is DioException) {if (e.response?.statusCode == 400) {await showInfoDialog(context,diff --git a/mobile/lib/utils/dialog_util.dart b/mobile/lib/utils/dialog_util.dartindex 8d3f65e438..9fcadb2763 100644--- a/mobile/lib/utils/dialog_util.dart+++ b/mobile/lib/utils/dialog_util.dart@@ -76,7 +76,7 @@ Future<ButtonResult?> showErrorDialogForException({}) async {String errorMessage =message ?? S.of(context).tempErrorContactSupportIfPersists;- if (exception is DioError &&+ if (exception is DioException &&exception.response != null &&exception.response!.data["code"] != null) {errorMessage =@@ -107,9 +107,12 @@ String parseErrorForUI(if (error == null) {return genericError;}- if (error is DioError) {- final DioError dioError = error;- if (dioError.type == DioErrorType.other) {+ if (error is DioException) {+ final DioException dioError = error;+ if (dioError.type == DioExceptionType.receiveTimeout ||+ dioError.type == DioExceptionType.connectionError ||+ dioError.type == DioExceptionType.sendTimeout ||+ dioError.type == DioExceptionType.cancel) {if (dioError.error.toString().contains('Failed host lookup')) {return S.of(context).networkHostLookUpErr;} else if (dioError.error.toString().contains('SocketException')) {@@ -122,15 +125,15 @@ String parseErrorForUI(return genericError;}String errorInfo = "";- if (error is DioError) {- final DioError dioError = error;- if (dioError.type == DioErrorType.response) {+ if (error is DioException) {+ final DioException dioError = error;+ if (dioError.type == DioExceptionType.badResponse) {if (dioError.response?.data["code"] != null) {errorInfo = "Reason: " + dioError.response!.data["code"];} else {errorInfo = "Reason: " + dioError.response!.data.toString();}- } else if (dioError.type == DioErrorType.other) {+ } else if (dioError.type == DioExceptionType.badCertificate) {errorInfo = "Reason: " + dioError.error.toString();} else {errorInfo = "Reason: " + dioError.type.toString();diff --git a/mobile/lib/utils/file_uploader.dart b/mobile/lib/utils/file_uploader.dartindex 049c0f6b8f..22f00f2f12 100644--- a/mobile/lib/utils/file_uploader.dart+++ b/mobile/lib/utils/file_uploader.dart@@ -858,7 +858,7 @@ class FileUploader {}bool isPutOrUpdateFileError(Object e) {- if (e is DioError) {+ if (e is DioException) {return e.requestOptions.path.contains("/files") ||e.requestOptions.path.contains("/files/update");}@@ -1153,7 +1153,7 @@ class FileUploader {file.thumbnailDecryptionHeader = thumbnailDecryptionHeader;file.metadataDecryptionHeader = metadataDecryptionHeader;return file;- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response?.statusCode == 413) {throw FileTooLargeForPlanError();} else if (e.response?.statusCode == 426) {@@ -1221,7 +1221,7 @@ class FileUploader {file.thumbnailDecryptionHeader = thumbnailDecryptionHeader;file.metadataDecryptionHeader = metadataDecryptionHeader;return file;- } on DioError catch (e) {+ } on DioException catch (e) {if (e.response?.statusCode == 426) {_onStorageLimitExceeded();} else if (attempt < kMaximumUploadAttempts) {@@ -1277,7 +1277,7 @@ class FileUploader {.map((e) => UploadURL.fromMap(e)).toList();_uploadURLs.addAll(urls);- } on DioError catch (e, s) {+ } on DioException catch (e, s) {if (e.response != null) {if (e.response!.statusCode == 402) {final error = NoActiveSubscriptionError();@@ -1327,8 +1327,8 @@ class FileUploader {);return uploadURL.objectKey;- } on DioError catch (e) {- if (e.message.startsWith("HttpException: Content size")) {+ } on DioException catch (e) {+ if (e.message?.startsWith("HttpException: Content size") ?? false) {rethrow;} else if (attempt < kMaximumUploadAttempts) {_logger.info("Upload failed for $fileName, retrying");diff --git a/mobile/lib/utils/thumbnail_util.dart b/mobile/lib/utils/thumbnail_util.dartindex c8db830735..7769976888 100644--- a/mobile/lib/utils/thumbnail_util.dart+++ b/mobile/lib/utils/thumbnail_util.dart@@ -192,7 +192,7 @@ Future<void> _downloadAndDecryptThumbnail(FileDownloadItem item) async {.data;}} catch (e) {- if (e is DioError && CancelToken.isCancel(e)) {+ if (e is DioException && CancelToken.isCancel(e)) {return;}rethrow;diff --git a/mobile/plugins/ente_cast/pubspec.yaml b/mobile/plugins/ente_cast/pubspec.yamlindex 967e147e91..6cc08a0849 100644--- a/mobile/plugins/ente_cast/pubspec.yaml+++ b/mobile/plugins/ente_cast/pubspec.yaml@@ -7,7 +7,7 @@ environment:dependencies:collection:- dio: ^4.0.6+ dio: ^5.8.0+1flutter:sdk: fluttershared_preferences: ^2.0.5diff --git a/mobile/plugins/ente_feature_flag/pubspec.lock b/mobile/plugins/ente_feature_flag/pubspec.lockindex 4f2db8cd08..e58ff1231c 100644--- a/mobile/plugins/ente_feature_flag/pubspec.lock+++ b/mobile/plugins/ente_feature_flag/pubspec.lock@@ -1,6 +1,14 @@# Generated by pub# See https://dart.dev/tools/pub/glossary#lockfilepackages:+ async:+ dependency: transitive+ description:+ name: async+ sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63+ url: "https://pub.dev"+ source: hosted+ version: "2.12.0"characters:dependency: transitivedescription:@@ -21,10 +29,18 @@ packages:dependency: "direct main"description:name: dio- sha256: "7d328c4d898a61efc3cd93655a0955858e29a0aa647f0f9e02d59b3bb275e2e8"+ sha256: "253a18bbd4851fecba42f7343a1df3a9a4c1d31a2c1b37e221086b4fa8c8dbc9"+ url: "https://pub.dev"+ source: hosted+ version: "5.8.0+1"+ dio_web_adapter:+ dependency: transitive+ description:+ name: dio_web_adapter+ sha256: e485c7a39ff2b384fa1d7e09b4e25f755804de8384358049124830b04fc4f93aurl: "https://pub.dev"source: hosted- version: "4.0.6"+ version: "2.1.0"ffi:dependency: transitivedescription:@@ -273,5 +289,5 @@ packages:source: hostedversion: "1.0.4"sdks:- dart: ">=3.3.0 <4.0.0"+ dart: ">=3.4.0 <4.0.0"flutter: ">=3.19.0"diff --git a/mobile/plugins/ente_feature_flag/pubspec.yaml b/mobile/plugins/ente_feature_flag/pubspec.yamlindex 7507d61f1c..6ad2c7626d 100644--- a/mobile/plugins/ente_feature_flag/pubspec.yaml+++ b/mobile/plugins/ente_feature_flag/pubspec.yaml@@ -7,7 +7,7 @@ environment:dependencies:collection:- dio: ^4.0.6+ dio: ^5.8.0+1flutter:sdk: fluttershared_preferences: ^2.0.5diff --git a/mobile/pubspec.lock b/mobile/pubspec.lockindex 28219c70d9..c5e9d6a0a1 100644--- a/mobile/pubspec.lock+++ b/mobile/pubspec.lock@@ -413,10 +413,18 @@ packages:dependency: "direct main"description:name: dio- sha256: "7d328c4d898a61efc3cd93655a0955858e29a0aa647f0f9e02d59b3bb275e2e8"+ sha256: "253a18bbd4851fecba42f7343a1df3a9a4c1d31a2c1b37e221086b4fa8c8dbc9"url: "https://pub.dev"source: hosted- version: "4.0.6"+ version: "5.8.0+1"+ dio_web_adapter:+ dependency: transitive+ description:+ name: dio_web_adapter+ sha256: e485c7a39ff2b384fa1d7e09b4e25f755804de8384358049124830b04fc4f93a+ url: "https://pub.dev"+ source: hosted+ version: "2.1.0"dots_indicator:dependency: "direct main"description:diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yamlindex 07b2938512..6caa8a8a0f 100644--- a/mobile/pubspec.yaml+++ b/mobile/pubspec.yaml@@ -42,7 +42,7 @@ dependencies:dart_ui_isolate: ^1.1.1defer_pointer: ^0.0.2device_info_plus: ^9.0.3- dio: ^4.0.6+ dio: ^5.8.0+1dots_indicator: ^2.0.0dotted_border: ^2.1.0dropdown_button2: ^2.0.0