Browse Source

neon: Move sort_box to it's own library and export the package

pull/436/head
jld3103 2 years ago
parent
commit
1e452f2374
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 3
      packages/neon/neon/lib/sort_box.dart
  2. 0
      packages/neon/neon/lib/src/sort_box/sort_box_builder.dart
  3. 0
      packages/neon/neon/lib/src/sort_box/sort_box_order_option_values.dart
  4. 2
      packages/neon/neon/lib/utils.dart
  5. 2
      packages/neon/neon_files/lib/neon_files.dart
  6. 4
      packages/neon/neon_files/pubspec.yaml
  7. 2
      packages/neon/neon_news/lib/neon_news.dart
  8. 4
      packages/neon/neon_news/pubspec.yaml
  9. 2
      packages/neon/neon_notes/lib/neon_notes.dart
  10. 4
      packages/neon/neon_notes/pubspec.yaml

3
packages/neon/neon/lib/sort_box.dart

@ -0,0 +1,3 @@
export 'package:neon/src/sort_box/sort_box_builder.dart';
export 'package:neon/src/sort_box/sort_box_order_option_values.dart';
export 'package:sort_box/sort_box.dart';

0
packages/neon/neon/lib/src/utils/sort_box_builder.dart → packages/neon/neon/lib/src/sort_box/sort_box_builder.dart

0
packages/neon/neon/lib/src/utils/sort_box_order_option_values.dart → packages/neon/neon/lib/src/sort_box/sort_box_order_option_values.dart

2
packages/neon/neon/lib/utils.dart

@ -3,6 +3,4 @@ export 'package:neon/src/utils/exceptions.dart';
export 'package:neon/src/utils/hex_color.dart';
export 'package:neon/src/utils/rename_dialog.dart';
export 'package:neon/src/utils/request_manager.dart';
export 'package:neon/src/utils/sort_box_builder.dart';
export 'package:neon/src/utils/sort_box_order_option_values.dart';
export 'package:neon/src/utils/validators.dart';

2
packages/neon/neon_files/lib/neon_files.dart

@ -16,6 +16,7 @@ import 'package:neon/blocs.dart';
import 'package:neon/models.dart';
import 'package:neon/platform.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_files/l10n/localizations.dart';
@ -25,7 +26,6 @@ import 'package:path/path.dart' as p;
import 'package:provider/provider.dart';
import 'package:queue/queue.dart';
import 'package:rxdart/rxdart.dart';
import 'package:sort_box/sort_box.dart';
part 'blocs/browser.dart';
part 'blocs/files.dart';

4
packages/neon/neon_files/pubspec.yaml

@ -33,10 +33,6 @@ dependencies:
queue: ^3.1.0+2
rxdart: ^0.27.7
share_plus: ^7.0.0
sort_box:
git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/sort_box
dev_dependencies:
nit_picking:

2
packages/neon/neon_news/lib/neon_news.dart

@ -12,6 +12,7 @@ import 'package:neon/blocs.dart';
import 'package:neon/models.dart';
import 'package:neon/platform.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_news/l10n/localizations.dart';
@ -19,7 +20,6 @@ import 'package:nextcloud/nextcloud.dart';
import 'package:provider/provider.dart';
import 'package:rxdart/rxdart.dart';
import 'package:share_plus/share_plus.dart';
import 'package:sort_box/sort_box.dart';
import 'package:url_launcher/url_launcher_string.dart';
import 'package:wakelock/wakelock.dart';
import 'package:webview_flutter/webview_flutter.dart';

4
packages/neon/neon_news/pubspec.yaml

@ -23,10 +23,6 @@ dependencies:
provider: ^6.0.5
rxdart: ^0.27.7
share_plus: ^7.0.0
sort_box:
git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/sort_box
url_launcher: ^6.1.11
wakelock: ^0.6.2
webview_flutter: ^4.2.0

2
packages/neon/neon_notes/lib/neon_notes.dart

@ -12,6 +12,7 @@ import 'package:neon/blocs.dart';
import 'package:neon/models.dart';
import 'package:neon/platform.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';
@ -19,7 +20,6 @@ import 'package:nextcloud/nextcloud.dart';
import 'package:provider/provider.dart';
import 'package:queue/queue.dart';
import 'package:rxdart/rxdart.dart';
import 'package:sort_box/sort_box.dart';
import 'package:url_launcher/url_launcher_string.dart';
import 'package:wakelock/wakelock.dart';

4
packages/neon/neon_notes/pubspec.yaml

@ -24,10 +24,6 @@ dependencies:
provider: ^6.0.5
queue: ^3.1.0+2
rxdart: ^0.27.7
sort_box:
git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/sort_box
url_launcher: ^6.1.11
wakelock: ^0.6.2

Loading…
Cancel
Save