diff --git a/packages/nextcloud/lib/src/client.dart b/packages/nextcloud/lib/src/client.dart index 353e22eb287..67b41143c77 100644 --- a/packages/nextcloud/lib/src/client.dart +++ b/packages/nextcloud/lib/src/client.dart @@ -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? interceptors, }) : _interceptors = BuiltList.build((builder) { if (interceptors != null) { diff --git a/packages/nextcloud/test/client_test.dart b/packages/nextcloud/test/client_test.dart index c93d60f1d78..1633c227d95 100644 --- a/packages/nextcloud/test/client_test.dart +++ b/packages/nextcloud/test/client_test.dart @@ -97,6 +97,7 @@ void main() { final client = NextcloudClient( uri, httpClient: mockedClient, + // ignore: deprecated_member_use_from_same_package cookieJar: cookieJar, ); @@ -124,6 +125,7 @@ void main() { final client = NextcloudClient( uri, httpClient: mockedClient, + // ignore: deprecated_member_use_from_same_package cookieJar: cookieJar, );