diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/previewparameter/FileUiListPreviewParameterProvider.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/previewparameter/FileUiListPreviewParameterProvider.kt index 889f48a26..501e0b932 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/previewparameter/FileUiListPreviewParameterProvider.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/previewparameter/FileUiListPreviewParameterProvider.kt @@ -34,6 +34,7 @@ val filesPreviewData = listOf( fileSize = 10_302_130L, mimeType = null, localPath = "", + path = null, ), FileUi( // Preview file (i.e. png, jpg, etc.) @@ -43,6 +44,7 @@ val filesPreviewData = listOf( fileSize = 456_782L, mimeType = null, localPath = "https://picsum.photos/200/300", + path = null, ), FileUi( uid = "The 5 step guide to turning it off and on again.docx", @@ -51,6 +53,7 @@ val filesPreviewData = listOf( fileSize = 89_723_143L, mimeType = null, localPath = "", + path = null, ), FileUi( uid = UUID.randomUUID().toString(), @@ -59,6 +62,7 @@ val filesPreviewData = listOf( fileSize = 237_866_728L, mimeType = null, localPath = null, + path = null, ), FileUi( uid = UUID.randomUUID().toString(), @@ -67,6 +71,7 @@ val filesPreviewData = listOf( fileSize = 98_723_143L, mimeType = null, localPath = null, + path = null, ), FileUi( uid = UUID.randomUUID().toString(), @@ -75,5 +80,6 @@ val filesPreviewData = listOf( fileSize = 57_689_032L, mimeType = null, localPath = null, + path = null, ), ) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt index 68b60e063..ada2f2824 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt @@ -145,6 +145,7 @@ class ImportFilesViewModel @Inject constructor( recipientsEmails = emptyList(), files = importationFilesManager.importedFiles.value.mapToList { fileUi -> object : UploadFileSession { + override val path: String? = null override val localPath: String = fileUi.localPath ?: "" override val mimeType: String = fileUi.mimeType ?: "" override val name: String = fileUi.fileName diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportationFilesManager.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportationFilesManager.kt index 8bfcc0c20..2a4d35841 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportationFilesManager.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportationFilesManager.kt @@ -107,6 +107,7 @@ class ImportationFilesManager @Inject constructor( fileSize = fileToImport.fileSizeInBytes, mimeType = FileType.guessMimeTypeFromFileName(fileToImport.fileName), localPath = copiedFile.toUri().toString(), + path = null, ) ) } @@ -138,6 +139,7 @@ class ImportationFilesManager @Inject constructor( fileSize = fileSizeInBytes, mimeType = null, localPath = localFile.toUri().toString(), + path = null, ) } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 40eb48833..015a032a1 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -20,7 +20,7 @@ qrose = "1.0.1" recaptcha = "18.6.1" sentry = "4.12.0" serialization = "1.7.3" -swisstransfer = "0.9.2" +swisstransfer = "0.9.3" workmanager = "2.10.0" [libraries]