Skip to content

Commit

Permalink
Bitrise corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitorbp committed Oct 25, 2023
1 parent 2b9c088 commit 69abb24
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ class MoveFileUseCase(
}
}

private fun setLastUsageFile(file: OCFile, isAvailableLocally: Boolean ){
setLastUsageFileUseCase(SetLastUsageFileUseCase.Params(
fileId = file.id,
lastUsage = System.currentTimeMillis(),
isAvailableLocally = isAvailableLocally,
isFolder = file.isFolder,
private fun setLastUsageFile(file: OCFile, isAvailableLocally: Boolean) {
setLastUsageFileUseCase(
SetLastUsageFileUseCase.Params(
fileId = file.id,
lastUsage = System.currentTimeMillis(),
isAvailableLocally = isAvailableLocally,
isFolder = file.isFolder,
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ class RemoveFileUseCase(
return deleteFiles
}

private fun setLastUsageFile(file: OCFile, isAvailableLocally: Boolean ){
setLastUsageFileUseCase(SetLastUsageFileUseCase.Params(
private fun setLastUsageFile(file: OCFile, isAvailableLocally: Boolean) {
setLastUsageFileUseCase(
SetLastUsageFileUseCase.Params(
fileId = file.id,
lastUsage = null,
isAvailableLocally = isAvailableLocally,
isFolder = file.isFolder,
)
)
)
}

data class Params(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ class RenameFileUseCase(
setLastUsageFile(params.ocFileToRename, isAvailableLocally)
}

private fun setLastUsageFile(file: OCFile, isAvailableLocally: Boolean ){
setLastUsageFileUseCase(SetLastUsageFileUseCase.Params(
fileId = file.id,
lastUsage = System.currentTimeMillis(),
isAvailableLocally = isAvailableLocally,
isFolder = file.isFolder,
private fun setLastUsageFile(file: OCFile, isAvailableLocally: Boolean) {
setLastUsageFileUseCase(
SetLastUsageFileUseCase.Params(
fileId = file.id,
lastUsage = System.currentTimeMillis(),
isAvailableLocally = isAvailableLocally,
isFolder = file.isFolder,
)
)
}
Expand Down

0 comments on commit 69abb24

Please sign in to comment.