Skip to content

Commit

Permalink
fix: can not run in android
Browse files Browse the repository at this point in the history
  • Loading branch information
chopper985 committed Dec 16, 2024
1 parent ea2f6d3 commit 408d47f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/core/api/base/dio_configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 408d47f

Please sign in to comment.