diff --git a/.changes/bump-androidx-camera.md b/.changes/bump-androidx-camera.md new file mode 100644 index 000000000..b920f2a32 --- /dev/null +++ b/.changes/bump-androidx-camera.md @@ -0,0 +1,6 @@ +--- +"barcode-scanner": patch +"barcode-scanner-js": patch +--- + +Update `androidx.camera` from `1.1.0` to `1.5.1` to support 16 KB memory page sizes. diff --git a/plugins/barcode-scanner/android/build.gradle.kts b/plugins/barcode-scanner/android/build.gradle.kts index 8b9e651c8..5526a7b78 100644 --- a/plugins/barcode-scanner/android/build.gradle.kts +++ b/plugins/barcode-scanner/android/build.gradle.kts @@ -33,16 +33,14 @@ android { } dependencies { - + val camerax_version = "1.5.1" implementation("androidx.core:core-ktx:1.9.0") implementation("androidx.appcompat:appcompat:1.6.0") implementation("com.google.android.material:material:1.7.0") - implementation("androidx.camera:camera-core:1.1.0") - implementation("androidx.camera:camera-view:1.1.0") - implementation("androidx.camera:camera-lifecycle:1.1.0") - implementation("androidx.camera:camera-camera2:1.1.0") - implementation("androidx.camera:camera-lifecycle:1.1.0") - implementation("androidx.camera:camera-view:1.1.0") + implementation("androidx.camera:camera-core:${camerax_version}") + implementation("androidx.camera:camera-camera2:${camerax_version}") + implementation("androidx.camera:camera-lifecycle:${camerax_version}") + implementation("androidx.camera:camera-view:${camerax_version}") implementation("com.google.android.gms:play-services-mlkit-barcode-scanning:18.1.0") testImplementation("junit:junit:4.13.2") androidTestImplementation("androidx.test.ext:junit:1.1.5")