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

feat(dynamite)!: allow clients from the http package #1448

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

Leptopoda
Copy link
Member

@Leptopoda Leptopoda commented Jan 12, 2024

Signed-off-by: Nikolas Rimikis [email protected]

towards: #788
fixes: #1307

Sorry for the big PR but it couldn't be done in smaller ones.
The fixtures now only include the headers explicitly added and not the ones added by the cleint itself.

I haven't checked every edge case but regarding the NC code (without the reexported dynamite_runtime) the only breaking change should be that the httpClient parameter now takes a Client instead of an HttpClient.

Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good!

packages/nextcloud_test/pubspec.yaml Outdated Show resolved Hide resolved
packages/dynamite/dynamite_runtime/pubspec.yaml Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/client.dart Outdated Show resolved Hide resolved
packages/nextcloud/pubspec.yaml Outdated Show resolved Hide resolved
packages/nextcloud/test/webdav_test.dart Outdated Show resolved Hide resolved
@Leptopoda
Copy link
Member Author

making this a draft as there is no timeline yet for the next http package release

@Leptopoda Leptopoda marked this pull request as draft January 16, 2024 15:06
@Leptopoda Leptopoda force-pushed the refactor/dynamite/allow_http_clients branch from f41398f to 2cb926e Compare January 18, 2024 06:20
@Leptopoda Leptopoda marked this pull request as ready for review January 18, 2024 06:21
Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependency check for the http package is missing in dynamite

packages/nextcloud/lib/src/webdav/client.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/client.dart Show resolved Hide resolved
packages/nextcloud/test/webdav_test.dart Outdated Show resolved Hide resolved
packages/dynamite/dynamite_end_to_end_test/pubspec.yaml Outdated Show resolved Hide resolved
The useragent should be passed with the baseHeaders instead

Signed-off-by: Nikolas Rimikis <[email protected]>
@Leptopoda Leptopoda force-pushed the refactor/dynamite/allow_http_clients branch from 2cb926e to 9d7d86a Compare January 18, 2024 08:06
@Leptopoda Leptopoda merged commit 2b0628e into main Jan 18, 2024
8 checks passed
@Leptopoda Leptopoda deleted the refactor/dynamite/allow_http_clients branch January 18, 2024 11:49
@Leptopoda Leptopoda removed this from the Nextcloud package release milestone May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch mockito usage to mocktail
2 participants