Skip to content

Commit 6b28894

Browse files
committed
work around R8-related regression in CameraX 1.5.0-alpha05
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.
1 parent a0b78e0 commit 6b28894

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

app/proguard-rules.pro

+4-21
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
# Add project specific ProGuard rules here.
2-
# You can control the set of applied configuration files using the
3-
# proguardFiles setting in build.gradle.
4-
#
5-
# For more details, see
6-
# http://developer.android.com/guide/developing/tools/proguard.html
7-
8-
# If your project uses WebView with JS, uncomment the following
9-
# and specify the fully qualified class name to the JavaScript interface
10-
# class:
11-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12-
# public *;
13-
#}
14-
15-
# Uncomment this to preserve the line number information for
16-
# debugging stack traces.
17-
#-keepattributes SourceFile,LineNumberTable
18-
19-
# If you keep the line number information, uncomment this to
20-
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
1+
# work around CameraX 1.5.0-alpha05 regression
2+
-keepclassmembers class androidx.camera.camera2.internal.CameraBurstCaptureCallback {
3+
public *;
4+
}

0 commit comments

Comments
 (0)