Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement deletion of asset-library files
Summary: WIP: Starting point insofar as I'm not sure if there should be an Android equivalent. My application needs me to delete photos from the photos in iOS. I have tested this in my application and it works, have a screenshot from iOS asking as well and it does successfully delete the photos from the global Photos app. Related to #15253, it kind of continues using the deprecated assets-library framework, but that does need (and will be an bigger and bigger issue coming up) of assets-library URLs being used. I also assume RN prefers error handling at the JS level? Are the URLs starting with `asset-library`, etc. Closes #15481 Differential Revision: D6438016 Pulled By: hramos fbshipit-source-id: 47512140f62f458c14ad2ade2b358846e168c964
- Loading branch information
554e873
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
K̤͙͖̯̼̬̹͙͙͉̖͈̥̰̜͕͕̬̪̣͙͕̲͉̗̠͖̫̦̂̿̏̏̏ͫ͒ͤ̐̓̅̔ͧ͏̀Ĕ̶̟̯̯̹͎̮̲͚̩͇̟̠̘̯͉̞̣̠̟̣̪̹̲̭͙͔̰̣̮̘̟͖̃̒̅̈́̈́̅̅̓̒̚ͅR̴̸̛̝̝̘̳̘͙̗̘̬̙̤̩̺̖̖̲̩̮̯͖̳̲͇͈̙̦̜̻̙̼̞̤͎̤͍͔̟͓͙̳͙̟͔̲̟͕̙̰̩̲͂̃ͯ̓̆̿ͫ͗̏̒͋̏ͩ̏̋̀͝N̛̟̠̲̘̭̫̣͚̦̟͓͎̬͇͕͔̗̮̥͕̰̬̱̼͎̤̯̪̺̮ͪ́͌ͧ̚͢͜͞E̶̲͉̤̖̙͔̯ͬ̄̈̎ͭ̅̃̓͆̊̔͌̏́ͮ͛̍́̀͝͠L̖̗̩̭̹͓̦̱͓͓̦̙͓̬͙̦̲̹̭̩̙̺̗̭͔̖͍̣̘̲̼̘̳̣̯̝͎͉̼̼̹͚͉̮̪͇͈͕̦̈͆͊̑̄ͧ́͘ͅ ̸̧̦͓͓̙̹̱͉̟̯̱̻͎̤̫̲̱͔͖̦̙͇͙̩̦̲̹̭͓͚̙̜͍͖̠̬̭͚̳͕̰̟͇̳̫̤̙̤̝̬̩ͪ̽̇̒̔͂̑͂͊ͅͅͅP̵̵̴̛͔̰̙̳̟̼͖̮͈̝̹̜͑̏ͤ̐̽ͪ͛̏̍̓͆ͮ̚͜A̶̩͍̹̞̥̼͇̯̩̻͕̘͍̯̞̤͖̹̩͆̂ͨͩ͋̈́ͩͅN̡̹͎͇̫̦͕̺̠̰͖͇̫̰̫̠̰͍͔͔̲̦͙̺̱̺͓̣͙͉͖̹̪͈̦͇̗̞̩̤̼ͬ̍̂̽͌ͧ̂̅̄͑̉̇͐̈́͛̾̉̕͟͡Ȋ̢̺̙͕̳͔͎̝̠̳̮͖̹̺̤͓̥̮͍̿̅̉͌̍̊ͯC̢̖̭̝͖̗̤͎̺̙̈́͑̔̃ͭ͟͝ ̨̡̬̩̖̰͎̫͇̮͉̹̮̟͇ͨͨ̂̔̎ͭ-̸͙̜͚̲̳̞̥͖̭̠̘̤̤̎ͩ̒̈́͆ͧ̋ͦ́͛͊̋ͫͦͫͬ̇ͣ͑͢͏͢͏ ̻̮͇͔̜͙͎̠͖̪͉̘̹̯͍͉͇̗̺̲̹̮̙̣̞͈͕͉̺̲̠̪̬̩̥̠̲̄ͯ̔ͭ́ͅͅn̴̤͉̟͚̼͙̳̟̞͕̹̰̝͍̖̩̪̩̲̰̦̤̆͆ͤ̾ͦ̃͛̈́̾̏ͨ̍̕ȍ̲̩̪̼̜̪̣̯̻̱͙͙͈̪͙̫̦͙̺̬̱͈̥̥͎ͯ̑̒̆ͭͧ̿̋ͤ̉ͦͬ͢͡ͅt̷̸̴̪̗͕̣̥̬̦̟̣̼͇͙͙̲͈͕̣̥͚̜͓̻̘̦̥̯̭̬͎̯̦̰̯̲ͫ̆̉͛͐̽̃̑̐̚͟͟ͅͅͅ ͈͇̲̗͚̖̯̫͎͖̻̩̫̞̟̜͕̗̱̦̻͔̺͈͙͓͓̩͉͙͍̱̻̪̳̺̪̖͚̞̈́̑̿̇̑͋̾̿͐͡͝s̸̶͇̬͙̗̞͔͎̼̰̞̠̜̰̠̘̼̞̝̯̰͍̉̃ͣͥͯ͛̈́ͨ̏̅́͠ͅy̨̨͓̥̠̙͔̟̤̙̦͈̩̫̭̯̘̲͖̲̩͍͍̳͍̻̙̮̲̪̱̫̺͇̘̹̤͙̼̲͚͕̙̭͙̺̪̯͖̜̞͇̼͙ͣͯ̈̄͠ͅͅͅͅn̸̡̳̫̻̱̫̫̮̈ͤ̔͂͌͗̋̈́ͬ̅̍ͪ͛̑̇ͮͥ̀͟͜ͅc̴̢̣͖̜̭̰̗͔̟̞͇͍̬̮̺̩͍͉̹̩̭̤̝͔͔͎̺̦̫̙̥̦̠͙͇̣̳͕̞̦̼̳͇̦͔̰̗̯͎̯̰̹̳̫͊̆͂̋ͣ̽͋ͦ̉͗ͣͧ̃̏͐͘͝͠ͅͅͅͅį̧̺̜̝̟̯̲ͬͨ͗ͬ̈́̅̎̔ͧ̓̈́̎̌ͪ̿̾̽̏̀ņ̠̦͈͓͒ͭ̐͊ͦ͐̂ͧ̿͒͊̃͑ͪ͢ĝ̴̷̪͕̘̳̞͎̭̣̝̫͚͎̯̹̫̩̞͖̲͖̫͖̖̲͈̱̯̠͈̖̙͎̳̤̺͚̤͉̪̟̮̝̼̗̰͚̠̬̰̜͉̬̝̦̝̻͈͎͓̰͓͙̦́ͯ̏ͫ̒̒̇ͧ̌͋̿͒ͬ́̾̾ͣ̊͘ͅͅ:̢̨͇̮̮̜̳͈̥̠̯̙̘͚͙̣̤̩̞̜̼̳͉̫̟͓̞̮͚̮ͣ̔̿ͪ̈̑͂̇̈́̀͞ͅ ̦͓̝̯̼̦͖̻͈̳͖͔͚̻̭̯͙͇̤̮̯̜̖̟͖̳̜̗̦̟͎̹̖͚̘̥͚̩͂͂ͨ́ͧͭ̒ͥͩ̏͛̑ͦ̅ͩͅ҉͏̡Å̵͙̗͈̻̩͇͚̦̤̟̞͈̘̮͕̭͔̝͕̟̬̱̭̠̥̼̩̟͉̣̝͍͛ͪ͗̈̌̓̈̽̇ͫͧ̊̑̾̿̀̚͟͠͠ͅͅț̝̫͍̳̳̗̤͕̤̣͕̬͍̺̞͕̘͕̥͉͍͎̞͉͍̥̺̟̤̺̯̬͚̥͙̲̦̞̭̲̞̦͙͙͖̙̏̃͆͆̿ͬ̃͆̚͢҉҉̛͟t̵̼̮̘͚̫̣͔̯͎͓̭͕̳̟͉̮͇̯̺͔̪̖̺͍̪̦̱̹̠̬̥̼̮̠̖̮̘̰̤͕͕̜̮̙͕͕͍̫̱̼̱̥̬̦̺͎̟͕̋ͤ͒̐ͮ͌ͧ͊ͨͦ̔ͦ̈ͯͮ͘ͅͅͅ͏͝͞ē̛̯̬͚͈͍̥̪̯̈́̔͛̌̄̎̈́͛ͪͤ̌͏̨̢m̰̣̻͓̯̫͎͚̩͈͕͙̟͕̦͇̤̤̞̖̤̼̝̟͚͚̹͇̞͙̠̝̹̗̺̥̬̭̤͇̝̜̼̪̖͙̘̥̞̤̦̭͕̭̹͓̬̟̳̲̽͐̍͊́̈́͛̌ͩ̍̀̆͛͂ͪ͌ͨ͑͋̀͟͢͠͞ͅp̧̫̰̤̺̼̰͕̙̫̩̼̠͇͓͉̤͚̱͙̩̠̻̱͙͔̭͍̟͚͚̳̯̠̞̝̘̠̘̬͔̥̙͇̖̪̲̥̫͔̰̖̫̭͕͍̟̘͉̞̻̠̬͍ͥ͑ͯͬ̈́̏͗ͅͅͅt̫̝̮͓͚͚̠͓̯̠̠͔̜̣̘̟͈̤͎͚̺̹̩̯͔͓͇̥̥̘̭͉̤̻͈̮̰̟̼̘͉̼̝͙̭̫͈̬͚̪̼͎̲̱̐̈̃̃ͅͅͅͅͅ͏͢͠e̦̪͓̗͇͎̫̭̯̟͙̣͇͈͈̩͋̌̿̑ͮ̒͂̒̈͊̈́̾͐҉͘͞d̷̛̬͈̲̙̲͖̱̖̙̮̣͍̟͈̙̞͖͉̳̠̲̓ͭ̅ͭ̑̂͑̎ͯ̀͝͠ ͇̠͕̠̠̇̾͐̔ͣ̚҉̸͘͞͠t͔̻̰̙͔̯͈̘̠̹̖̘̹͔̝͙͔̹̙̻͍̭̯͙͚̤̳̜̼̟̣̩̘̞̝͍̤̫̬̥̮͚̜̝̙̘̣̝̻̯̲̜̭̱̪ͭ̽̒̅͒̌̐ͩ͗̈́ͫ͒̏ͨ̽͒̂̔ͅͅͅ҉́̕͝͝ờ̵̡͎̙͖͖̞͕̹̦̲̘͓̻̯̪̣̯̣̣̺̹̦̯̦͍̮͉̱͍̻̰̳̮̹̯̫͈̫͙̗͕̖͔̲̰̠̱͙̟̰̳͍͍̖̘̳̯͓̀ͦ͊ͭ͆ͨ̚͏ ̟͚͕̠̖̮̼͔̱͖̪̘͈̥̠̖̲̙̼͈̖̠̣͉̦͉͕̪͙͚̲͕͓͈͖̦̭͉͎̪̜͕̘̫̙̘͕̟͈̻̟͙̺͚̠̦͇̙̻̼̘͂̊ͭ̉̇ͯ̏̇ͨ̿ͥ̓̉͒̿́̚ͅǩ̢̢̳̞̱̟̫̮͍̩̼̙̗͉͇͎͕̤͈͍̼͙̜͕͙͉̠͓̰͕͎̥̮͚͉̺̪̠̭̻͔̰̼̺̠̫̮̙̹̞͕̥̙̖̝̗͉̫͔̥̤̼̱͑̈́͑̍̉̓ͮͥͣͩ̚͞͝ͅ҉ḭ̪̻͇̜̣̹̫̠̤͕͔͕̞̝͔̼͎̯̗͚͈̖̪̬̮͍̺̖̜̜͇̯͈̭̳͇̣͖͙̤͎͎̝̣͋̐͂͋̉̃̌̇̓̈́̚͡ͅ҉͞͠l͕̭̘̩̣͍̦͕͇̲͇̲̼̰̼̪̤̜̗͚̦͈̖͕͕͔̙̙͓̭͚̤̯̥̠̤̳̜͚̜͎̰͍̱͚̮͓͗ͥ̄̓̐ͬ͑͗͆̓͘ͅ͏̸́l̦̭̦͍̬͇̺̹̥̰͈̙̙͙͎̺̣̺̠͕͓͉̖̲̹̪̰̣͍̬̰̘͎͉͔̟̰̯͉͈͚̱ͦ́̄ͪ̓ͮ̇̏̆ͤͫ͊͛͌̌ͯ́͢ ͔̩̙̻̩̻̠̼̝̟̯̱̼̲̪̮̬̱͖͔̥̻͎͉̯͕̠̙̲̼̪̭ͣ̌̈҉̵̧̕s̷̵̵̜͚̘̳̪̳̯̠͎̜̗̹̹͖͎̯̯̖͑̂̂ͦ͡͠ͅy̷͖͔͇̰̮̻̩̜̙͉̝͚̤ͦ̔͒͐ͥ̆̋̊͐̿ͦͤ͜҉̀s̴̵̸̫̖͔̻̰͙̬̞͓̤͕̪̱̻͍̹̭͙̳̻̲̮̺̼̯̪̱̜̤͓̰̤̝͇̻̱͕̯͈͉͎̭̥̮̠͔͓̉ͮ̈́́͞ͅͅt̛͖͖̬̗̺̖̲̰̰̦̥̦̱͇͖̫̳̘͉̗͈̹̂ͬ̂ͣ̀ͅͅe̫̗͈̝̙̰͈̠̳̻͉̯͙̣̘̞̜̗̮͔̗̤̜̱̩̺̦̙̺͉͍̣͎̱̜͕̖͓̓̇̓̇̆͆̊ͧͪ̈͐̿̀ͨͨ̍̀̀̚ͅ͏̵̸̕m̳͖̼̞̮̞̰͚̥̬͚̜̯̱̹̩̲̖̞̺̹̝͇̺͚͓͕͖̯̯̯̬̝̻̘̳͍̳̲̘͙̱̟̭̗͉͇̳͍͕̞̬̖͔̖̣̓͆̑̎ͫ̆̈͛̽̒͟ͅ