Skip to content

Commit 847602c

Browse files
authored
Merge pull request #512 from Baseflow/update/dependencies
chore: update flutter_cache_manager dependencies
2 parents 71d7252 + 3aa1dec commit 847602c

46 files changed

Lines changed: 1250 additions & 1008 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
.history
1111
.svn/
1212
devtools_options.yaml
13+
.fvmrc
14+
.fvm/
1315

1416
# Environment files
1517
ios/Flutter/Dart-Defines.xcconfig

flutter_cache_manager/CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
## [Unreleased]
22

3-
* Update example Android project for Flutter 3.44 (Gradle 9.1 / AGP 9.0.1 / Kotlin 2.3.20, Java 17)
4-
* Migrate example Android app to built-in Kotlin
5-
* Migrate example iOS app from CocoaPods to Swift Package Manager
3+
* Raise minimum Dart SDK to 3.8.0 and update dependencies ([#512](https://github.com/Baseflow/flutter_cache_manager/pull/512))
4+
* Update example Android project for Flutter 3.44 (Gradle 9.1 / AGP 9.0.1 / Kotlin 2.3.20, Java 17) ([#510](https://github.com/Baseflow/flutter_cache_manager/pull/510))
5+
* Migrate example Android app to built-in Kotlin ([#510](https://github.com/Baseflow/flutter_cache_manager/pull/510))
6+
* Migrate example iOS app from CocoaPods to Swift Package Manager ([#511](https://github.com/Baseflow/flutter_cache_manager/pull/511))
67

78
## [3.4.1] - 2024-08-13
89

flutter_cache_manager/example/lib/main.dart

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ class CacheManagerPageState extends State<CacheManagerPage> {
4747
body: const ListTile(
4848
title: Text('Tap the floating action button to download.'),
4949
),
50-
floatingActionButton: Fab(
51-
downloadFile: _downloadFile,
52-
),
50+
floatingActionButton: Fab(downloadFile: _downloadFile),
5351
);
5452
}
5553
return DownloadPage(
@@ -68,15 +66,18 @@ class CacheManagerPageState extends State<CacheManagerPage> {
6866
}
6967

7068
void _removeFile() {
71-
DefaultCacheManager().removeFile(url).then((value) {
72-
if (kDebugMode) {
73-
print('File removed');
74-
}
75-
}).onError((error, stackTrace) {
76-
if (kDebugMode) {
77-
print(error);
78-
}
79-
});
69+
DefaultCacheManager()
70+
.removeFile(url)
71+
.then((value) {
72+
if (kDebugMode) {
73+
print('File removed');
74+
}
75+
})
76+
.onError((error, stackTrace) {
77+
if (kDebugMode) {
78+
print(error);
79+
}
80+
});
8081
setState(() {
8182
fileStream = null;
8283
});

flutter_cache_manager/example/lib/plugin_example/download_page.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ class DownloadPage extends StatelessWidget {
4747

4848
return Scaffold(
4949
body: body,
50-
floatingActionButton:
51-
!loading ? Fab(downloadFile: downloadFile) : null,
50+
floatingActionButton: !loading
51+
? Fab(downloadFile: downloadFile)
52+
: null,
5253
);
5354
},
5455
);

flutter_cache_manager/example/lib/plugin_example/floating_action_button.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import 'package:flutter/material.dart';
44
class Fab extends StatelessWidget {
55
final VoidCallback downloadFile;
66

7-
const Fab({
8-
required this.downloadFile,
9-
super.key,
10-
});
7+
const Fab({required this.downloadFile, super.key});
118

129
@override
1310
Widget build(BuildContext context) {

flutter_cache_manager/example/linux/flutter/generated_plugins.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
77
)
88

99
list(APPEND FLUTTER_FFI_PLUGIN_LIST
10+
jni
1011
)
1112

1213
set(PLUGIN_BUNDLED_LIBRARIES)

flutter_cache_manager/example/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
import FlutterMacOS
66
import Foundation
77

8-
import path_provider_foundation
9-
import sqflite
8+
import sqflite_darwin
109
import url_launcher_macos
1110

1211
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
13-
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
1412
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
1513
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
1614
}

flutter_cache_manager/example/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ description: A project that showcases usage of flutter_cache_manager
33
publish_to: none
44
version: 1.0.0+1
55
environment:
6-
sdk: '>=3.0.0 <4.0.0'
6+
sdk: '>=3.8.0 <4.0.0'
77

88
dependencies:
9-
baseflow_plugin_template: ^2.2.0
9+
baseflow_plugin_template: ^2.2.1
1010
cupertino_icons: ^1.0.8
1111
flutter:
1212
sdk: flutter
1313
flutter_cache_manager:
1414
path: ../
15-
url_launcher: ^6.3.0
15+
url_launcher: ^6.3.2
1616

1717
dev_dependencies:
1818
flutter_test:
1919
sdk: flutter
20-
flutter_lints: ^4.0.0
20+
flutter_lints: ^6.0.0
2121

2222
flutter:
2323
uses-material-design: true

flutter_cache_manager/example/windows/flutter/generated_plugins.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
77
)
88

99
list(APPEND FLUTTER_FFI_PLUGIN_LIST
10+
jni
1011
)
1112

1213
set(PLUGIN_BUNDLED_LIBRARIES)

flutter_cache_manager/lib/flutter_cache_manager.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Generic cache manager for flutter.
22
/// Saves web files on the storages of the device and saves the cache info using sqflite
3-
library flutter_cache_manager;
3+
library;
44

55
export 'src/cache_manager.dart';
66
export 'src/cache_managers/cache_managers.dart';

0 commit comments

Comments
 (0)