Skip to content

Commit

Permalink
chore: Migrate to Core 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Nov 26, 2024
1 parent 5d13003 commit 09e55ba
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ val filesPreviewData = listOf(
fileSize = 10_302_130L,
mimeType = null,
localPath = "",
isFolder = false,
),
FileUi(
// Preview file (i.e. png, jpg, etc.)
Expand All @@ -41,33 +42,38 @@ val filesPreviewData = listOf(
fileSize = 456_782L,
mimeType = null,
localPath = "https://picsum.photos/200/300",
isFolder = false,
),
FileUi(
fileName = "The 5 step guide to turning it off and on again.docx",
uid = "The 5 step guide to turning it off and on again.docx",
fileSize = 89_723_143L,
mimeType = null,
localPath = "",
isFolder = false,
),
FileUi(
uid = UUID.randomUUID().toString(),
fileName = "Learning to Copy and Paste: A Complete Guide.docx",
fileSize = 237_866_728L,
mimeType = null,
localPath = null,
isFolder = false,
),
FileUi(
uid = UUID.randomUUID().toString(),
fileName = "Introduction to Turning It Off and On Again.pptx",
fileSize = 98_723_143L,
mimeType = null,
localPath = null,
isFolder = false,
),
FileUi(
uid = UUID.randomUUID().toString(),
fileName = "The 5-Step Guide to Not Breaking Your Code.txt",
fileSize = 57_689_032L,
mimeType = null,
localPath = null,
isFolder = false,
),
)
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ val transfersPreviewData = listOf(
downloadLimit = 1,
downloadLeft = 1,
message = "Coucou c'est moi le message de description du transfert.",
password = "password",
files = filesPreviewData,
),
TransferUi(
Expand All @@ -52,6 +53,7 @@ val transfersPreviewData = listOf(
downloadLimit = 20,
downloadLeft = 0,
message = null,
password = null,
files = filesPreviewData,
),
TransferUi(
Expand All @@ -65,6 +67,7 @@ val transfersPreviewData = listOf(
downloadLimit = 250,
downloadLeft = 123,
message = "3ème transfert. RAS.",
password = "my password",
files = filesPreviewData,
),
)
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class ImportationFilesManager @Inject constructor(
fileSize = fileToImport.fileSizeInBytes,
mimeType = FileType.guessMimeTypeFromFileName(fileToImport.fileName),
localPath = copiedFile.toUri().toString(),
isFolder = false,
)
)
}
Expand Down Expand Up @@ -135,6 +136,7 @@ class ImportationFilesManager @Inject constructor(
fileSize = fileSizeInBytes,
mimeType = null,
localPath = localFile.toUri().toString(),
isFolder = false,
)
}
}
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.8.2"
swisstransfer = "0.9.0"
workmanager = "2.10.0"

[libraries]
Expand Down

0 comments on commit 09e55ba

Please sign in to comment.