Skip to content

Commit

Permalink
work around R8-related regression in CameraX 1.5.0-alpha05
Browse files Browse the repository at this point in the history
CameraX 1.5.0-alpha05 causes crashes when capturing photos on certain
devices. So far, the reports are all from 6th and 7th generation Pixels
which have not been updated from Android 13. We replicated the crash on
a Pixel 7a running the final Android 13 release (TQ3A.230901.001). It's
unlikely that the issue is actually specific to Pixels but rather they
may be the only devices with the relevant feature available on Android
13. Pixels are the only devices shipping monthly and quarterly Android
releases for their stock OS in practice which may be related.
  • Loading branch information
thestinger committed Feb 19, 2025
1 parent a0b78e0 commit 6b28894
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
# work around CameraX 1.5.0-alpha05 regression
-keepclassmembers class androidx.camera.camera2.internal.CameraBurstCaptureCallback {
public *;
}

0 comments on commit 6b28894

Please sign in to comment.