Skip to content

Commit b7fa201

Browse files
fix: Apply Spotless formatting to video streaming files
This change corrects code style violations in the `LiveSession.kt` and `VideoHelper.kt` files that were flagged by the `spotlessKotlinCheck` Gradle task. The formatting has been updated to comply with the project's code style guidelines.
1 parent 74902f7 commit b7fa201

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/LiveSession.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ internal constructor(
215215

216216
scope = CoroutineScope(blockingDispatcher + childJob())
217217
val cameraManager =
218-
context.getSystemService(android.content.Context.CAMERA_SERVICE) as
219-
android.hardware.camera2.CameraManager
218+
context.getSystemService(android.content.Context.CAMERA_SERVICE)
219+
as android.hardware.camera2.CameraManager
220220
videoHelper = VideoHelper.build(cameraManager)
221221
videoHelper
222222
?.start(cameraId)

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/VideoHelper.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ internal class VideoHelper(
9090

9191
val characteristics = cameraManager.getCameraCharacteristics(cameraId)
9292
val streamConfigurationMap =
93-
characteristics.get(android.hardware.camera2.CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP)
93+
characteristics.get(
94+
android.hardware.camera2.CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP
95+
)
9496
val outputSizes = streamConfigurationMap?.getOutputSizes(ImageFormat.JPEG)
9597
val size = outputSizes?.maxByOrNull { it.width * it.height } ?: return emptyFlow()
9698

0 commit comments

Comments
 (0)