Skip to content

Commit

Permalink
Merge pull request #229 from Infomaniak/update-to-0.9.3
Browse files Browse the repository at this point in the history
chore: Update project for 0.9.3
  • Loading branch information
tevincent authored Dec 4, 2024
2 parents 7e9b6d2 + edaba3f commit fe08a59
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ val filesPreviewData = listOf(
fileSize = 10_302_130L,
mimeType = null,
localPath = "",
path = null,
),
FileUi(
// Preview file (i.e. png, jpg, etc.)
Expand All @@ -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",
Expand All @@ -51,6 +53,7 @@ val filesPreviewData = listOf(
fileSize = 89_723_143L,
mimeType = null,
localPath = "",
path = null,
),
FileUi(
uid = UUID.randomUUID().toString(),
Expand All @@ -59,6 +62,7 @@ val filesPreviewData = listOf(
fileSize = 237_866_728L,
mimeType = null,
localPath = null,
path = null,
),
FileUi(
uid = UUID.randomUUID().toString(),
Expand All @@ -67,6 +71,7 @@ val filesPreviewData = listOf(
fileSize = 98_723_143L,
mimeType = null,
localPath = null,
path = null,
),
FileUi(
uid = UUID.randomUUID().toString(),
Expand All @@ -75,5 +80,6 @@ val filesPreviewData = listOf(
fileSize = 57_689_032L,
mimeType = null,
localPath = null,
path = null,
),
)
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class ImportationFilesManager @Inject constructor(
fileSize = fileToImport.fileSizeInBytes,
mimeType = FileType.guessMimeTypeFromFileName(fileToImport.fileName),
localPath = copiedFile.toUri().toString(),
path = null,
)
)
}
Expand Down Expand Up @@ -138,6 +139,7 @@ class ImportationFilesManager @Inject constructor(
fileSize = fileSizeInBytes,
mimeType = null,
localPath = localFile.toUri().toString(),
path = null,
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit fe08a59

Please sign in to comment.