
The dependency is only used to create a dialog in TrackSelectionDialogBuilder that is compatible with newer styling options. This dependendy adds over 500Kb to the apk (even if unused) and we shoudn't force this on an app. Instead make the dependency optional by automatically falling back to the platform version if the AndroidX one doesn't exist. Issue: #7357 PiperOrigin-RevId: 322143005
19 lines
957 B
Plaintext
19 lines
957 B
Plaintext
# Proguard rules specific to the UI module.
|
|
|
|
# Constructor method accessed via reflection in TrackSelectionDialogBuilder
|
|
-dontnote androidx.appcompat.app.AlertDialog.Builder
|
|
-keepclassmembers class androidx.appcompat.app.AlertDialog$Builder {
|
|
<init>(android.content.Context);
|
|
public android.content.Context getContext();
|
|
public androidx.appcompat.app.AlertDialog$Builder setTitle(java.lang.CharSequence);
|
|
public androidx.appcompat.app.AlertDialog$Builder setView(android.view.View);
|
|
public androidx.appcompat.app.AlertDialog$Builder setPositiveButton(int, android.content.DialogInterface$OnClickListener);
|
|
public androidx.appcompat.app.AlertDialog$Builder setNegativeButton(int, android.content.DialogInterface$OnClickListener);
|
|
public androidx.appcompat.app.AlertDialog create();
|
|
}
|
|
|
|
# Don't warn about checkerframework and Kotlin annotations
|
|
-dontwarn org.checkerframework.**
|
|
-dontwarn kotlin.annotations.jvm.**
|
|
-dontwarn javax.annotation.**
|