Skip to content
Closed
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 @@ -74,6 +74,7 @@ dependencies {
// CameraX core library using the camera2 implementation must use same version number.
def camerax_version = "1.5.3"
implementation("androidx.camera:camera-core:${camerax_version}")
implementation("androidx.concurrent:concurrent-futures:1.2.0")
Comment on lines 75 to +77

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better maintainability and consistency, it's good practice to extract dependency versions into variables and group them at the top of the dependencies block.

    def camerax_version = "1.5.3"
    def concurrentFuturesVersion = "1.2.0"
    implementation("androidx.camera:camera-core:${camerax_version}")
    implementation("androidx.concurrent:concurrent-futures:${concurrentFuturesVersion}")

implementation("androidx.camera:camera-camera2:${camerax_version}")
implementation("androidx.camera:camera-lifecycle:${camerax_version}")
implementation("androidx.camera:camera-video:${camerax_version}")
Expand Down