Skip to content

Commit

Permalink
[RFR-182] Add file counts to meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0 committed Oct 26, 2023
1 parent 257a47c commit cf9688b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ version = "0.0.0" // Automatically overwritten by CI

// Versions of dependencies
extra["slf4jVersion"] = "2.0.7"
extra["cyfaceSerializationVersion"] = "2.3.7"
// FIXME: Check if we can remove this after we port the new auth from android-backend to this library
extra["cyfaceSerializationVersion"] = "3.2.0-alpha1"
extra["googleApiClientVersion"] = "2.2.0" // transmission protocol
extra["gradleWrapperVersion"] = "7.6.1"

Expand Down
3 changes: 3 additions & 0 deletions src/main/kotlin/de/cyface/uploader/DefaultUploader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ class DefaultUploader(private val apiEndpoint: String) : Uploader {
attributes["length"] = metaData.length.toString()
attributes["modality"] = metaData.modality.toString()
attributes["formatVersion"] = metaData.formatVersion.toString()
attributes["logCount"] = metaData.logCount.toString()
attributes["imageCount"] = metaData.imageCount.toString()
attributes["videoCount"] = metaData.videoCount.toString()
return attributes
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,8 @@ class RequestInitializeHandler(
headers["length"] = metaData.length.toString()
headers["modality"] = metaData.modality.toString()
headers["formatVersion"] = metaData.formatVersion.toString()
headers["logCount"] = metaData.logCount
headers["imageCount"] = metaData.imageCount
headers["videoCount"] = metaData.videoCount
}
}

0 comments on commit cf9688b

Please sign in to comment.