From 408d47f3b1767514a445a5b569914792f7a62316 Mon Sep 17 00:00:00 2001 From: Tran Thai Tuan Date: Mon, 16 Dec 2024 22:50:47 +0700 Subject: [PATCH] fix: can not run in android --- lib/core/api/base/dio_configuration.dart | 6 ++++-- pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/core/api/base/dio_configuration.dart b/lib/core/api/base/dio_configuration.dart index 015d3fb..4e618fb 100644 --- a/lib/core/api/base/dio_configuration.dart +++ b/lib/core/api/base/dio_configuration.dart @@ -37,8 +37,10 @@ class DioConfiguration { await Rhttp.init(); final rhttpAdapter = await RhttpCompatibleClient.create( settings: ClientSettings( - timeout: 10.seconds, - connectTimeout: 10.seconds, + timeoutSettings: TimeoutSettings( + timeout: 10.seconds, + connectTimeout: 10.seconds, + ), throwOnStatusCode: false, ), ); diff --git a/pubspec.yaml b/pubspec.yaml index 99478d6..4b8e219 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: # Network connectivity_plus: ^6.0.5 - rhttp: ^0.6.1 + rhttp: ^0.9.8 http: ^1.2.2 dio: ^5.6.0 dio_smart_retry: ^6.0.0