Skip to content

Commit

Permalink
refactor(nextcloud): deprecate the cookieJar parameter
Browse files Browse the repository at this point in the history
Users should migrate to the CookieInterceptor

Signed-off-by: Nikolas Rimikis <[email protected]>
  • Loading branch information
Leptopoda committed Jul 4, 2024
1 parent 271f3e2 commit d995854
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextcloud/lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class NextcloudClient extends DynamiteClient with http.BaseClient {
String? appPassword,
String? userAgent,
super.httpClient,
cookie_jar.CookieJar? cookieJar,
@Deprecated('Use the CookieJarInterceptor instead') cookie_jar.CookieJar? cookieJar,
Iterable<NextCloudInterceptor>? interceptors,
}) : _interceptors = BuiltList.build((builder) {
if (interceptors != null) {
Expand Down
2 changes: 2 additions & 0 deletions packages/nextcloud/test/client_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ void main() {
final client = NextcloudClient(
uri,
httpClient: mockedClient,
// ignore: deprecated_member_use_from_same_package
cookieJar: cookieJar,
);

Expand Down Expand Up @@ -124,6 +125,7 @@ void main() {
final client = NextcloudClient(
uri,
httpClient: mockedClient,
// ignore: deprecated_member_use_from_same_package
cookieJar: cookieJar,
);

Expand Down

0 comments on commit d995854

Please sign in to comment.