@@ -9,6 +9,7 @@ import Foundation
9
9
10
10
extension StorageCategory : StorageCategoryBehavior {
11
11
12
+ @available ( * , deprecated, message: " Use getURL(path:options:) " )
12
13
@discardableResult
13
14
public func getURL(
14
15
key: String ,
@@ -25,6 +26,7 @@ extension StorageCategory: StorageCategoryBehavior {
25
26
try await plugin. getURL ( path: path, options: options)
26
27
}
27
28
29
+ @available ( * , deprecated, message: " Use downloadData(path:options:) " )
28
30
@discardableResult
29
31
public func downloadData(
30
32
key: String ,
@@ -41,6 +43,7 @@ extension StorageCategory: StorageCategoryBehavior {
41
43
plugin. downloadData ( path: path, options: options)
42
44
}
43
45
46
+ @available ( * , deprecated, message: " Use downloadFile(path:options:) " )
44
47
@discardableResult
45
48
public func downloadFile(
46
49
key: String ,
@@ -59,6 +62,7 @@ extension StorageCategory: StorageCategoryBehavior {
59
62
plugin. downloadFile ( path: path, local: local, options: options)
60
63
}
61
64
65
+ @available ( * , deprecated, message: " Use uploadData(path:options:) " )
62
66
@discardableResult
63
67
public func uploadData(
64
68
key: String ,
@@ -77,6 +81,7 @@ extension StorageCategory: StorageCategoryBehavior {
77
81
plugin. uploadData ( path: path, data: data, options: options)
78
82
}
79
83
84
+ @available ( * , deprecated, message: " Use uploadFile(path:options:) " )
80
85
@discardableResult
81
86
public func uploadFile(
82
87
key: String ,
@@ -95,6 +100,7 @@ extension StorageCategory: StorageCategoryBehavior {
95
100
plugin. uploadFile ( path: path, local: local, options: options)
96
101
}
97
102
103
+ @available ( * , deprecated, message: " Use remove(path:options:) " )
98
104
@discardableResult
99
105
public func remove(
100
106
key: String ,
@@ -111,6 +117,7 @@ extension StorageCategory: StorageCategoryBehavior {
111
117
try await plugin. remove ( path: path, options: options)
112
118
}
113
119
120
+ @available ( * , deprecated, message: " Use list(path:options:) " )
114
121
@discardableResult
115
122
public func list(
116
123
options: StorageListOperation . Request . Options ? = nil
0 commit comments