From 518e7f46324706f8c1d8363d7e9696daaa2f63dc Mon Sep 17 00:00:00 2001 From: jld3103 Date: Mon, 27 Mar 2023 18:41:27 +0200 Subject: [PATCH 1/2] dynamite: Use universal_io to make it work on web --- packages/dynamite/lib/src/openapi_builder.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';", '', From a129e954011e8e6d83e9dc19359f70b27f7fd417 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Mon, 27 Mar 2023 18:41:40 +0200 Subject: [PATCH 2/2] 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