From 45833bdb73852155aecb6502b3857380ec169413 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 8 Aug 2023 18:13:13 +0200 Subject: [PATCH] refactor(neon): Export nextcloud package --- packages/neon/neon/lib/nextcloud.dart | 1 + packages/neon/neon_files/lib/neon_files.dart | 2 +- packages/neon/neon_files/pubspec.yaml | 4 ---- packages/neon/neon_news/lib/neon_news.dart | 2 +- packages/neon/neon_news/pubspec.yaml | 4 ---- packages/neon/neon_notes/lib/neon_notes.dart | 2 +- packages/neon/neon_notes/pubspec.yaml | 4 ---- packages/neon/neon_notifications/lib/neon_notifications.dart | 2 +- packages/neon/neon_notifications/pubspec.yaml | 4 ---- 9 files changed, 5 insertions(+), 20 deletions(-) create mode 100644 packages/neon/neon/lib/nextcloud.dart diff --git a/packages/neon/neon/lib/nextcloud.dart b/packages/neon/neon/lib/nextcloud.dart new file mode 100644 index 00000000..ec6929ce --- /dev/null +++ b/packages/neon/neon/lib/nextcloud.dart @@ -0,0 +1 @@ +export 'package:nextcloud/nextcloud.dart'; diff --git a/packages/neon/neon_files/lib/neon_files.dart b/packages/neon/neon_files/lib/neon_files.dart index 59d1a17c..dbd95530 100644 --- a/packages/neon/neon_files/lib/neon_files.dart +++ b/packages/neon/neon_files/lib/neon_files.dart @@ -15,6 +15,7 @@ import 'package:intersperse/intersperse.dart'; import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; import 'package:neon/blocs.dart'; import 'package:neon/models.dart'; +import 'package:neon/nextcloud.dart'; import 'package:neon/platform.dart'; import 'package:neon/settings.dart'; import 'package:neon/sort_box.dart'; @@ -23,7 +24,6 @@ import 'package:neon/utils.dart'; import 'package:neon/widgets.dart'; import 'package:neon_files/l10n/localizations.dart'; import 'package:neon_files/routes.dart'; -import 'package:nextcloud/nextcloud.dart'; import 'package:open_file/open_file.dart'; import 'package:path/path.dart' as p; import 'package:provider/provider.dart'; diff --git a/packages/neon/neon_files/pubspec.yaml b/packages/neon/neon_files/pubspec.yaml index b6fab5c6..5eb0e99a 100644 --- a/packages/neon/neon_files/pubspec.yaml +++ b/packages/neon/neon_files/pubspec.yaml @@ -24,10 +24,6 @@ dependencies: git: url: https://github.com/provokateurin/nextcloud-neon path: packages/neon/neon - nextcloud: - git: - url: https://github.com/provokateurin/nextcloud-neon - path: packages/nextcloud open_file: ^3.3.1 path: ^1.8.3 provider: ^6.0.5 diff --git a/packages/neon/neon_news/lib/neon_news.dart b/packages/neon/neon_news/lib/neon_news.dart index 8284e769..412ab5d1 100644 --- a/packages/neon/neon_news/lib/neon_news.dart +++ b/packages/neon/neon_news/lib/neon_news.dart @@ -11,6 +11,7 @@ import 'package:html/parser.dart' as html_parser; import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; import 'package:neon/blocs.dart'; import 'package:neon/models.dart'; +import 'package:neon/nextcloud.dart'; import 'package:neon/platform.dart'; import 'package:neon/settings.dart'; import 'package:neon/sort_box.dart'; @@ -18,7 +19,6 @@ import 'package:neon/utils.dart'; import 'package:neon/widgets.dart'; import 'package:neon_news/l10n/localizations.dart'; import 'package:neon_news/routes.dart'; -import 'package:nextcloud/nextcloud.dart'; import 'package:provider/provider.dart'; import 'package:rxdart/rxdart.dart'; import 'package:share_plus/share_plus.dart'; diff --git a/packages/neon/neon_news/pubspec.yaml b/packages/neon/neon_news/pubspec.yaml index b43df5c0..c7f72f62 100644 --- a/packages/neon/neon_news/pubspec.yaml +++ b/packages/neon/neon_news/pubspec.yaml @@ -17,10 +17,6 @@ dependencies: git: url: https://github.com/provokateurin/nextcloud-neon path: packages/neon/neon - nextcloud: - git: - url: https://github.com/provokateurin/nextcloud-neon - path: packages/nextcloud provider: ^6.0.5 rxdart: ^0.27.7 share_plus: ^7.0.0 diff --git a/packages/neon/neon_notes/lib/neon_notes.dart b/packages/neon/neon_notes/lib/neon_notes.dart index eb2838f5..5cd6dec2 100644 --- a/packages/neon/neon_notes/lib/neon_notes.dart +++ b/packages/neon/neon_notes/lib/neon_notes.dart @@ -11,13 +11,13 @@ import 'package:go_router/go_router.dart'; import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; import 'package:neon/blocs.dart'; import 'package:neon/models.dart'; +import 'package:neon/nextcloud.dart'; import 'package:neon/settings.dart'; import 'package:neon/sort_box.dart'; import 'package:neon/utils.dart'; import 'package:neon/widgets.dart'; import 'package:neon_notes/l10n/localizations.dart'; import 'package:neon_notes/routes.dart'; -import 'package:nextcloud/nextcloud.dart'; import 'package:provider/provider.dart'; import 'package:queue/queue.dart'; import 'package:rxdart/rxdart.dart'; diff --git a/packages/neon/neon_notes/pubspec.yaml b/packages/neon/neon_notes/pubspec.yaml index 31f9a3bc..4abff6ac 100644 --- a/packages/neon/neon_notes/pubspec.yaml +++ b/packages/neon/neon_notes/pubspec.yaml @@ -18,10 +18,6 @@ dependencies: git: url: https://github.com/provokateurin/nextcloud-neon path: packages/neon/neon - nextcloud: - git: - url: https://github.com/provokateurin/nextcloud-neon - path: packages/nextcloud provider: ^6.0.5 queue: ^3.1.0+2 rxdart: ^0.27.7 diff --git a/packages/neon/neon_notifications/lib/neon_notifications.dart b/packages/neon/neon_notifications/lib/neon_notifications.dart index 9c5c2661..7760a412 100644 --- a/packages/neon/neon_notifications/lib/neon_notifications.dart +++ b/packages/neon/neon_notifications/lib/neon_notifications.dart @@ -7,12 +7,12 @@ import 'package:go_router/go_router.dart'; import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; import 'package:neon/blocs.dart'; import 'package:neon/models.dart'; +import 'package:neon/nextcloud.dart'; import 'package:neon/settings.dart'; import 'package:neon/utils.dart'; import 'package:neon/widgets.dart'; import 'package:neon_notifications/l10n/localizations.dart'; import 'package:neon_notifications/routes.dart'; -import 'package:nextcloud/nextcloud.dart'; import 'package:provider/provider.dart'; import 'package:rxdart/rxdart.dart'; diff --git a/packages/neon/neon_notifications/pubspec.yaml b/packages/neon/neon_notifications/pubspec.yaml index e601ae47..5044589d 100644 --- a/packages/neon/neon_notifications/pubspec.yaml +++ b/packages/neon/neon_notifications/pubspec.yaml @@ -15,10 +15,6 @@ dependencies: git: url: https://github.com/provokateurin/nextcloud-neon path: packages/neon/neon - nextcloud: - git: - url: https://github.com/provokateurin/nextcloud-neon - path: packages/nextcloud provider: ^6.0.5 rxdart: ^0.27.7