diff --git a/packages/dynamite/lib/src/openapi_builder.dart b/packages/dynamite/lib/src/openapi_builder.dart index 64fbc7a7..156e3582 100644 --- a/packages/dynamite/lib/src/openapi_builder.dart +++ b/packages/dynamite/lib/src/openapi_builder.dart @@ -61,11 +61,11 @@ class OpenAPIBuilder implements Builder { '// ignore_for_file: camel_case_types', '// ignore_for_file: public_member_api_docs', "import 'dart:convert';", - "import 'dart:io';", "import 'dart:typed_data';", '', "import 'package:cookie_jar/cookie_jar.dart';", "import 'package:json_annotation/json_annotation.dart';", + "import 'package:universal_io/io.dart';", '', "export 'package:cookie_jar/cookie_jar.dart';", '', diff --git a/packages/nextcloud/lib/nextcloud.dart b/packages/nextcloud/lib/nextcloud.dart index 99618c44..99c430e0 100644 --- a/packages/nextcloud/lib/nextcloud.dart +++ b/packages/nextcloud/lib/nextcloud.dart @@ -1,12 +1,12 @@ library nextcloud; import 'dart:convert'; -import 'dart:io'; import 'dart:typed_data'; import 'package:crypto/crypto.dart'; import 'package:nextcloud/nextcloud.dart'; import 'package:nextcloud/src/nextcloud.openapi.dart' as openapi; +import 'package:universal_io/io.dart'; import 'package:version/version.dart'; import 'package:xml/xml.dart' as xml; diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.dart b/packages/nextcloud/lib/src/nextcloud.openapi.dart index db9e6912..9f52e168 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.dart @@ -2,11 +2,11 @@ // ignore_for_file: camel_case_types // ignore_for_file: public_member_api_docs import 'dart:convert'; -import 'dart:io'; import 'dart:typed_data'; import 'package:cookie_jar/cookie_jar.dart'; import 'package:json_annotation/json_annotation.dart'; +import 'package:universal_io/io.dart'; export 'package:cookie_jar/cookie_jar.dart'; diff --git a/packages/nextcloud/pubspec.yaml b/packages/nextcloud/pubspec.yaml index 92c2ee6b..4c26d28c 100644 --- a/packages/nextcloud/pubspec.yaml +++ b/packages/nextcloud/pubspec.yaml @@ -10,6 +10,7 @@ dependencies: crypton: ^2.0.5 intl: ^0.18.0 json_annotation: ^4.7.0 + universal_io: ^2.2.0 version: ^3.0.2 xml: ^6.1.0 xml_annotation: ^2.2.0