Skip to content

Commit

Permalink
refactor: add TomeLibrary
Browse files Browse the repository at this point in the history
  • Loading branch information
nesquikm committed Oct 25, 2023
1 parent 8ca43ce commit 094f8d5
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion lib/features/library/library.dart
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export 'page/page.dart';
export 'tome_list/tome_list.dart';
export 'tome_library/tome_library.dart';
Empty file.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:convert';
import 'dart:io';

import 'package:bsr/features/library/tome_list/cached_tome/tome/tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/tome/tome.dart';
import 'package:image/image.dart';
import 'package:path/path.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:io';

import 'package:bsr/features/library/tome_list/cached_tome/tome/tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/tome/tome.dart';
import 'package:epubx/epubx.dart';

class EpubTome extends Tome {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:convert';

import 'package:archive/archive_io.dart';
import 'package:bsr/features/library/tome_list/cached_tome/tome/tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/tome/tome.dart';
import 'package:crypto/crypto.dart';
import 'package:fb2_parse/fb2_parse.dart';
import 'package:image/image.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import 'dart:io';
import 'dart:typed_data';

import 'package:async/async.dart';
import 'package:bsr/features/library/tome_list/cached_tome/tome/epub_tome.dart';
import 'package:bsr/features/library/tome_list/cached_tome/tome/fb2_tome.dart';
import 'package:bsr/features/library/tome_list/cached_tome/tome/tome_info.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/tome/epub_tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/tome/fb2_tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/tome/tome_info.dart';
import 'package:convert/convert.dart';
import 'package:crypto/crypto.dart';
import 'package:image/image.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import 'dart:async';
import 'dart:io';

import 'package:bsr/features/library/tome_list/cached_tome/cached_tome.dart';
import 'package:bsr/features/library/tome_list/exceptions.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/cached_tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/exceptions.dart';
import 'package:logging/logging.dart';
import 'package:path/path.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';

export 'cached_tome/cached_tome.dart';
export 'exceptions.dart';
export 'tome_list.dart';

part 'tome_list.g.dart';

Expand Down
2 changes: 1 addition & 1 deletion test/library/cached_tome_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:io';

import 'package:bsr/features/library/tome_list/cached_tome/cached_tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/cached_tome.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:image/image.dart';
import 'package:path/path.dart';
Expand Down
2 changes: 1 addition & 1 deletion test/library/epub_tome_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:bsr/features/library/tome_list/cached_tome/tome/epub_tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/tome/epub_tome.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion test/library/fb2_tome_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:bsr/features/library/tome_list/cached_tome/tome/fb2_tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/tome/fb2_tome.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
Expand Down
3 changes: 1 addition & 2 deletions test/library/tome_list_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:io';

import 'package:bsr/features/library/library.dart';
import 'package:bsr/features/library/tome_list/cached_tome/cached_tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/tome_list.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:path/path.dart';
import 'package:riverpod/riverpod.dart';
Expand Down
6 changes: 3 additions & 3 deletions test/library/tome_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:bsr/features/library/tome_list/cached_tome/tome/epub_tome.dart';
import 'package:bsr/features/library/tome_list/cached_tome/tome/fb2_tome.dart';
import 'package:bsr/features/library/tome_list/cached_tome/tome/tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/tome/epub_tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/tome/fb2_tome.dart';
import 'package:bsr/features/library/tome_library/tome_list/cached_tome/tome/tome.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
Expand Down

0 comments on commit 094f8d5

Please sign in to comment.