Skip to content

Commit

Permalink
Merge pull request #2413 from nextcloud/refactor/cookie_store/remove_…
Browse files Browse the repository at this point in the history
…universal_io

refactor(cookie_store): remove universal_io dependency.
  • Loading branch information
Leptopoda authored Aug 21, 2024
2 parents b433431 + 30383c6 commit 4b6319e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
10 changes: 10 additions & 0 deletions packages/cookie_store/dart_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
platforms:
- vm
- chrome

define_platforms:
chromium:
name: Chromium
extends: chrome
settings:
executable: chromium
2 changes: 1 addition & 1 deletion packages/cookie_store/lib/src/cookie_persistence.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'dart:async';
import 'dart:io' show Cookie;

import 'package:cookie_store/src/storable_cookie.dart';
import 'package:cookie_store/src/utils.dart';
import 'package:timezone/timezone.dart' as tz;
import 'package:universal_io/io.dart' show Cookie;

/// Interface for a Storage backend persisting [StorableCookie]s.
///
Expand Down
2 changes: 1 addition & 1 deletion packages/cookie_store/lib/src/cookie_store.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// ignore_for_file: prefer_final_locals, omit_local_variable_types

import 'dart:async';
import 'dart:io' show Cookie;

import 'package:cookie_store/src/cookie_persistence.dart';
import 'package:cookie_store/src/storable_cookie.dart';
import 'package:cookie_store/src/utils.dart';
import 'package:timezone/timezone.dart' as tz;
import 'package:universal_io/io.dart' show Cookie;

// DateTimes can represent time values that are at a distance of at most 100,000,000
// days from epoch (1970-01-01 UTC): -271821-04-20 to 275760-09-13.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:io' show Cookie, SameSite;

import 'package:meta/meta.dart';
import 'package:universal_io/io.dart';

/// Converts the given cookies to strings containing only the [Cookie.name] and
/// `Cookie.vale` and sorts the resulting list.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dependencies:
path: packages/cookie_store
meta: ^1.0.0
test: ^1.21.2
universal_io: ^2.0.0

dev_dependencies:
neon_lints:
Expand Down
1 change: 0 additions & 1 deletion packages/cookie_store/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ environment:
dependencies:
meta: ^1.0.0
timezone: ^0.9.4
universal_io: ^2.0.0

dev_dependencies:
cookie_store_conformance_tests:
Expand Down

0 comments on commit 4b6319e

Please sign in to comment.