Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update project for 0.9.3 #229

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading