Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web adapter bugfix #15

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.1.1

- Bugfix: workaround for BrowserHttpAdapter issue
- Updated packages

## 1.1.0

- Added option to add permanent headers to client
Expand Down
3 changes: 2 additions & 1 deletion lib/src/client/wiseclient_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ base class WebWiseClient extends DioForBrowser with WiseClient {
Iterable<Interceptor>? replacementInterceptors,
}) {
options = baseOptions ?? BaseOptions();
httpClientAdapter = BrowserHttpClientAdapter();
httpClientAdapter = (HttpClientAdapter() as BrowserHttpClientAdapter)
..withCredentials = true;
if (replacementInterceptors != null) {
interceptors.addAll(replacementInterceptors);
} else {
Expand Down
10 changes: 4 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: wiseclient
description: A http client based on Dio with extra features and a few interceptors for basic functionality.
version: 1.1.0
version: 1.1.1
homepage: https://github.com/wisemen-digital/flutter-networking-client
repository: https://github.com/wisemen-digital/flutter-networking-client

Expand All @@ -14,21 +14,19 @@ dependencies:
sdk: flutter

# Dio
dio: ^5.5.0+1
dio: ^5.7.0
fresh_dio: ^0.4.2

# Secure storage
flutter_secure_storage: ^9.2.2

# Logging & Debugging
native_dio_adapter: ^1.3.0
talker_dio_logger: ">=4.0.0 <5.0.0"
talker_dio_logger: ">=4.4.1 <5.0.0"

dev_dependencies:
# Static analysis & linting
lints: ^4.0.0

# Testing
test: ^1.25.2

flutter:
test: ^1.25.8