1.3.6-8 - Production Build - Resolve deletion.

This commit is contained in:
Patrick Fic
2022-05-25 09:18:09 -07:00
parent c5a31cf376
commit 67312c1847
2 changed files with 11 additions and 8 deletions

View File

@@ -4,19 +4,19 @@
"slug": "imexmobile",
"version": "1.3.6",
"extra": {
"expover": "7"
"expover": "8"
},
"orientation": "default",
"icon": "./assets/logo192noa.png",
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.imex.imexmobile",
"buildNumber": "7",
"buildNumber": "8",
"googleServicesFile": "./GoogleService-Info.plist"
},
"android": {
"package": "com.imex.imexmobile",
"versionCode": 1100012,
"versionCode": 1100013,
"googleServicesFile": "./google-services.json"
},
"splash": {

View File

@@ -8,6 +8,7 @@ import {
ActivityIndicator,
Alert,
Modal,
Platform,
ScrollView,
StyleSheet,
Text,
@@ -177,11 +178,13 @@ export function UploadProgress({
if (deleteAfterUpload) {
try {
if (Platform.OS === "android") {
const res = await Promise.all(
filesToDelete.map(async (f) =>
MediaLibrary.removeAssetsFromAlbumAsync(f, f.albumId)
)
);
}
const deleteResult = await MediaLibrary.deleteAssetsAsync(
filesToDelete