1.3.6-8 - Production Build - Resolve deletion.
This commit is contained in:
6
app.json
6
app.json
@@ -4,19 +4,19 @@
|
|||||||
"slug": "imexmobile",
|
"slug": "imexmobile",
|
||||||
"version": "1.3.6",
|
"version": "1.3.6",
|
||||||
"extra": {
|
"extra": {
|
||||||
"expover": "7"
|
"expover": "8"
|
||||||
},
|
},
|
||||||
"orientation": "default",
|
"orientation": "default",
|
||||||
"icon": "./assets/logo192noa.png",
|
"icon": "./assets/logo192noa.png",
|
||||||
"ios": {
|
"ios": {
|
||||||
"supportsTablet": true,
|
"supportsTablet": true,
|
||||||
"bundleIdentifier": "com.imex.imexmobile",
|
"bundleIdentifier": "com.imex.imexmobile",
|
||||||
"buildNumber": "7",
|
"buildNumber": "8",
|
||||||
"googleServicesFile": "./GoogleService-Info.plist"
|
"googleServicesFile": "./GoogleService-Info.plist"
|
||||||
},
|
},
|
||||||
"android": {
|
"android": {
|
||||||
"package": "com.imex.imexmobile",
|
"package": "com.imex.imexmobile",
|
||||||
"versionCode": 1100012,
|
"versionCode": 1100013,
|
||||||
"googleServicesFile": "./google-services.json"
|
"googleServicesFile": "./google-services.json"
|
||||||
},
|
},
|
||||||
"splash": {
|
"splash": {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import {
|
|||||||
ActivityIndicator,
|
ActivityIndicator,
|
||||||
Alert,
|
Alert,
|
||||||
Modal,
|
Modal,
|
||||||
|
Platform,
|
||||||
ScrollView,
|
ScrollView,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
Text,
|
Text,
|
||||||
@@ -177,11 +178,13 @@ export function UploadProgress({
|
|||||||
|
|
||||||
if (deleteAfterUpload) {
|
if (deleteAfterUpload) {
|
||||||
try {
|
try {
|
||||||
const res = await Promise.all(
|
if (Platform.OS === "android") {
|
||||||
filesToDelete.map(async (f) =>
|
const res = await Promise.all(
|
||||||
MediaLibrary.removeAssetsFromAlbumAsync(f, f.albumId)
|
filesToDelete.map(async (f) =>
|
||||||
)
|
MediaLibrary.removeAssetsFromAlbumAsync(f, f.albumId)
|
||||||
);
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const deleteResult = await MediaLibrary.deleteAssetsAsync(
|
const deleteResult = await MediaLibrary.deleteAssetsAsync(
|
||||||
filesToDelete
|
filesToDelete
|
||||||
|
|||||||
Reference in New Issue
Block a user