From 8c9d01fe6d79ef745505b729a9b88f754ae81f21 Mon Sep 17 00:00:00 2001 From: wyyadd Date: Mon, 9 Oct 2023 11:19:43 +0800 Subject: [PATCH 1/2] Export File System --- flutter_cache_manager/lib/flutter_cache_manager.dart | 1 + .../lib/src/storage/file_system/file_system.dart | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/flutter_cache_manager/lib/flutter_cache_manager.dart b/flutter_cache_manager/lib/flutter_cache_manager.dart index 40741985..943d910a 100644 --- a/flutter_cache_manager/lib/flutter_cache_manager.dart +++ b/flutter_cache_manager/lib/flutter_cache_manager.dart @@ -10,5 +10,6 @@ export 'src/logger.dart'; export 'src/result/result.dart'; export 'src/storage/cache_info_repositories/cache_info_repositories.dart'; export 'src/storage/cache_object.dart'; +export 'src/storage/file_system/file_system.dart'; export 'src/web/file_service.dart'; export 'src/web/web_helper.dart' show HttpExceptionWithStatus; diff --git a/flutter_cache_manager/lib/src/storage/file_system/file_system.dart b/flutter_cache_manager/lib/src/storage/file_system/file_system.dart index e5bb1427..2cd9764b 100644 --- a/flutter_cache_manager/lib/src/storage/file_system/file_system.dart +++ b/flutter_cache_manager/lib/src/storage/file_system/file_system.dart @@ -1,3 +1,7 @@ +export 'file_system.dart'; +export 'file_system_io.dart'; +export 'file_system_web.dart'; + import 'package:file/file.dart'; abstract class FileSystem { From 818051ca733f478769da667728157db9fb6e5b6e Mon Sep 17 00:00:00 2001 From: Martijn van Dijk Date: Wed, 31 Jul 2024 22:17:21 +0200 Subject: [PATCH 2/2] Fix --- flutter_cache_manager/lib/src/cache_store.dart | 1 - flutter_cache_manager/lib/src/config/_config_io.dart | 2 -- flutter_cache_manager/lib/src/config/_config_web.dart | 1 - flutter_cache_manager/lib/src/config/config.dart | 1 - 4 files changed, 5 deletions(-) diff --git a/flutter_cache_manager/lib/src/cache_store.dart b/flutter_cache_manager/lib/src/cache_store.dart index 6e511005..cb90ae2d 100644 --- a/flutter_cache_manager/lib/src/cache_store.dart +++ b/flutter_cache_manager/lib/src/cache_store.dart @@ -3,7 +3,6 @@ import 'dart:io'; import 'package:flutter_cache_manager/flutter_cache_manager.dart'; import 'dart:io' as io; -import 'package:flutter_cache_manager/src/storage/file_system/file_system.dart'; ///Flutter Cache Manager ///Copyright (c) 2019 Rene Floor diff --git a/flutter_cache_manager/lib/src/config/_config_io.dart b/flutter_cache_manager/lib/src/config/_config_io.dart index 9ff7eadf..67eb8cb3 100644 --- a/flutter_cache_manager/lib/src/config/_config_io.dart +++ b/flutter_cache_manager/lib/src/config/_config_io.dart @@ -2,8 +2,6 @@ import 'dart:io'; import 'package:flutter_cache_manager/flutter_cache_manager.dart'; import 'package:flutter_cache_manager/src/config/config.dart' as def; -import 'package:flutter_cache_manager/src/storage/file_system/file_system.dart'; -import 'package:flutter_cache_manager/src/storage/file_system/file_system_io.dart'; class Config implements def.Config { Config( diff --git a/flutter_cache_manager/lib/src/config/_config_web.dart b/flutter_cache_manager/lib/src/config/_config_web.dart index 3b1e433c..99e4f3b8 100644 --- a/flutter_cache_manager/lib/src/config/_config_web.dart +++ b/flutter_cache_manager/lib/src/config/_config_web.dart @@ -2,7 +2,6 @@ import 'package:flutter_cache_manager/src/config/config.dart' as def; import 'package:flutter_cache_manager/src/storage/cache_info_repositories/cache_info_repository.dart'; import 'package:flutter_cache_manager/src/storage/cache_info_repositories/non_storing_object_provider.dart'; import 'package:flutter_cache_manager/src/storage/file_system/file_system.dart'; -import 'package:flutter_cache_manager/src/storage/file_system/file_system_web.dart'; import 'package:flutter_cache_manager/src/web/file_service.dart'; class Config implements def.Config { diff --git a/flutter_cache_manager/lib/src/config/config.dart b/flutter_cache_manager/lib/src/config/config.dart index a0dc4894..cd25bbf7 100644 --- a/flutter_cache_manager/lib/src/config/config.dart +++ b/flutter_cache_manager/lib/src/config/config.dart @@ -2,7 +2,6 @@ import 'package:flutter_cache_manager/flutter_cache_manager.dart'; import 'package:flutter_cache_manager/src/config/_config_unsupported.dart' if (dart.library.html) '_config_web.dart' if (dart.library.io) '_config_io.dart' as impl; -import 'package:flutter_cache_manager/src/storage/file_system/file_system.dart'; abstract class Config { /// Config file for the CacheManager.