From a129e954011e8e6d83e9dc19359f70b27f7fd417 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Mon, 27 Mar 2023 18:41:40 +0200 Subject: [PATCH] nextcloud: Add web support --- packages/nextcloud/lib/nextcloud.dart | 2 +- packages/nextcloud/lib/src/nextcloud.openapi.dart | 2 +- packages/nextcloud/pubspec.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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