Skip to content

Commit 6caa11d

Browse files
chore(mobile): use path provider foundation (#16804)
* chore(mobile): use path provider foundation * chore: update podfile --------- Co-authored-by: shenlong-tanwen <[email protected]> Co-authored-by: Alex <[email protected]>
1 parent 653fa3f commit 6caa11d

File tree

6 files changed

+14
-21
lines changed

6 files changed

+14
-21
lines changed

mobile/ios/Podfile.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ PODS:
6969
- Flutter
7070
- package_info_plus (0.4.5):
7171
- Flutter
72-
- path_provider_ios (0.0.1):
72+
- path_provider_foundation (0.0.1):
7373
- Flutter
74+
- FlutterMacOS
7475
- permission_handler_apple (9.3.0):
7576
- Flutter
7677
- photo_manager (2.0.0):
@@ -121,7 +122,7 @@ DEPENDENCIES:
121122
- native_video_player (from `.symlinks/plugins/native_video_player/ios`)
122123
- network_info_plus (from `.symlinks/plugins/network_info_plus/ios`)
123124
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
124-
- path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
125+
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
125126
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
126127
- photo_manager (from `.symlinks/plugins/photo_manager/ios`)
127128
- share_handler_ios (from `.symlinks/plugins/share_handler_ios/ios`)
@@ -178,8 +179,8 @@ EXTERNAL SOURCES:
178179
:path: ".symlinks/plugins/network_info_plus/ios"
179180
package_info_plus:
180181
:path: ".symlinks/plugins/package_info_plus/ios"
181-
path_provider_ios:
182-
:path: ".symlinks/plugins/path_provider_ios/ios"
182+
path_provider_foundation:
183+
:path: ".symlinks/plugins/path_provider_foundation/darwin"
183184
permission_handler_apple:
184185
:path: ".symlinks/plugins/permission_handler_apple/ios"
185186
photo_manager:
@@ -221,7 +222,7 @@ SPEC CHECKSUMS:
221222
native_video_player: d12af78a1a4a8cf09775a5177d5b392def6fd23c
222223
network_info_plus: 6613d9d7cdeb0e6f366ed4dbe4b3c51c52d567a9
223224
package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4
224-
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
225+
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
225226
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
226227
photo_manager: ff695c7a1dd5bc379974953a2b5c0a293f7c4c8a
227228
SAMKeychain: 483e1c9f32984d50ca961e26818a534283b4cd5c

mobile/ios/Runner/AppDelegate.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import BackgroundTasks
22
import Flutter
33
import network_info_plus
4-
import path_provider_ios
4+
import path_provider_foundation
55
import permission_handler_apple
66
import photo_manager
77
import shared_preferences_foundation
@@ -24,8 +24,8 @@ import UIKit
2424
BackgroundServicePlugin.register(with: self.registrar(forPlugin: "BackgroundServicePlugin")!)
2525

2626
BackgroundServicePlugin.setPluginRegistrantCallback { registry in
27-
if !registry.hasPlugin("org.cocoapods.path-provider-ios") {
28-
FLTPathProviderPlugin.register(with: registry.registrar(forPlugin: "org.cocoapods.path-provider-ios")!)
27+
if !registry.hasPlugin("org.cocoapods.path-provider-foundation") {
28+
PathProviderPlugin.register(with: registry.registrar(forPlugin: "org.cocoapods.path-provider-foundation")!)
2929
}
3030

3131
if !registry.hasPlugin("org.cocoapods.photo-manager") {

mobile/ios/Runner/BackgroundSync/BackgroundServicePlugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Flutter
99
import BackgroundTasks
10-
import path_provider_ios
10+
import path_provider_foundation
1111
import CryptoKit
1212
import Network
1313

mobile/lib/services/background.service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import 'package:immich_mobile/utils/bootstrap.dart';
5252
import 'package:immich_mobile/utils/diff.dart';
5353
import 'package:immich_mobile/utils/http_ssl_cert_override.dart';
5454
import 'package:network_info_plus/network_info_plus.dart';
55-
import 'package:path_provider_ios/path_provider_ios.dart';
55+
import 'package:path_provider_foundation/path_provider_foundation.dart';
5656
import 'package:photo_manager/photo_manager.dart' show PMProgressHandler;
5757

5858
final backgroundServiceProvider = Provider(
@@ -322,7 +322,7 @@ class BackgroundService {
322322
// NOTE: I'm not sure this is strictly necessary anymore, but
323323
// out of an abundance of caution, we will keep it in until someone
324324
// can say for sure
325-
PathProviderIOS.registerWith();
325+
PathProviderFoundation.registerWith();
326326
}
327327
switch (call.method) {
328328
case "backgroundProcessing":

mobile/pubspec.lock

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,21 +1129,13 @@ packages:
11291129
source: hosted
11301130
version: "2.2.16"
11311131
path_provider_foundation:
1132-
dependency: transitive
1132+
dependency: "direct main"
11331133
description:
11341134
name: path_provider_foundation
11351135
sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942"
11361136
url: "https://pub.dev"
11371137
source: hosted
11381138
version: "2.4.1"
1139-
path_provider_ios:
1140-
dependency: "direct main"
1141-
description:
1142-
name: path_provider_ios
1143-
sha256: "03d639406f5343478352433f00d3c4394d52dac8df3d847869c5e2333e0bbce8"
1144-
url: "https://pub.dev"
1145-
source: hosted
1146-
version: "2.0.11"
11471139
path_provider_linux:
11481140
dependency: transitive
11491141
description:

mobile/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
scrollable_positioned_list: ^0.3.8
4040
path: ^1.8.3
4141
path_provider: ^2.1.5
42-
path_provider_ios: ^2.0.11
42+
path_provider_foundation: ^2.4.1
4343
collection: ^1.18.0
4444
http_parser: ^4.0.2
4545
flutter_web_auth_2: ^5.0.0-alpha.0

0 commit comments

Comments
 (0)