File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
amplify_core/lib/src/category
storage/amplify_storage_s3/example/integration_test Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,14 @@ class StorageCategory extends AmplifyCategory<StoragePluginInterface> {
218
218
///
219
219
/// {@macro amplify_core.amplify_storage_category.copy_source}
220
220
/// {@endtemplate}
221
+ @Deprecated (
222
+ 'This API will be removed in the next major version. '
223
+ 'This API calls Amplify.Storage.copy() to create a copy of the file in the '
224
+ 'destination directory and then calls Amplify.Storage.remove() to remove '
225
+ 'the source file. '
226
+ 'Please use Amplify.Storage.copy() and Amplify.Storage.remove() directly '
227
+ 'instead.' ,
228
+ )
221
229
StorageMoveOperation move ({
222
230
required StorageItemWithAccessLevel <StorageItem > source,
223
231
required StorageItemWithAccessLevel <StorageItem > destination,
Original file line number Diff line number Diff line change @@ -412,6 +412,7 @@ void main() {
412
412
testWidgets (
413
413
'move object with access level private for the currently signed in user' ,
414
414
(WidgetTester tester) async {
415
+ // ignore: deprecated_member_use
415
416
final result = await Amplify .Storage .move (
416
417
source: S3ItemWithAccessLevel (
417
418
storageItem: S3Item (key: testObject3CopyKey),
@@ -685,6 +686,7 @@ void main() {
685
686
testWidgets (
686
687
'move object with access level guest for the currently signed in user' ,
687
688
(WidgetTester tester) async {
689
+ // ignore: deprecated_member_use
688
690
final result = await Amplify .Storage .move (
689
691
source: S3ItemWithAccessLevel (
690
692
storageItem: S3Item (key: testObjectKey1),
@@ -862,6 +864,7 @@ void main() {
862
864
863
865
testWidgets ('move object with access level protected as object owner' ,
864
866
(WidgetTester tester) async {
867
+ // ignore: deprecated_member_use
865
868
final result = await Amplify .Storage .move (
866
869
source: S3ItemWithAccessLevel .forIdentity (
867
870
user1IdentityId,
You can’t perform that action at this time.
0 commit comments