mirror of
https://github.com/samsonjs/media.git
synced 2026-04-25 14:47:40 +00:00
This ensures we have full test coverage for proguard configs now. The only configs not covered by tests are: - IMA and OkHttp which copy recommended configs from the respective library. I couldn't reproduce failures by removing them (and thus couldn't write a test that ensures they are correct). - Some dontwarn lines that just suppress warnings. In addition, this change fixes a couple of related issues: - Moved AV1 proguard config to correct module. - Removed mentioning of deprecated ExtractorMediaSource from README - Suppressed warning from IMA code that prevent proguarding under strict rules - Fixed wrong proguard exclusion in VP9 module. - Moved FLAC exclusion (DefaultExtractorsFactory) to correct module. - Added AlertDialog suppression for de-jetified code. - Removed unusued dependency from UI module that causes large APK size increase. #exofixit #minor-release PiperOrigin-RevId: 344427532
28 lines
1.6 KiB
Text
28 lines
1.6 KiB
Text
# 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, int);
|
|
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();
|
|
}
|
|
-dontnote android.support.v7.app.AlertDialog.Builder
|
|
-keepclassmembers class android.support.v7.app.AlertDialog$Builder {
|
|
<init>(android.content.Context, int);
|
|
public android.content.Context getContext();
|
|
public android.support.v7.app.AlertDialog$Builder setTitle(java.lang.CharSequence);
|
|
public android.support.v7.app.AlertDialog$Builder setView(android.view.View);
|
|
public android.support.v7.app.AlertDialog$Builder setPositiveButton(int, android.content.DialogInterface$OnClickListener);
|
|
public android.support.v7.app.AlertDialog$Builder setNegativeButton(int, android.content.DialogInterface$OnClickListener);
|
|
public android.support.v7.app.AlertDialog create();
|
|
}
|
|
|
|
# Don't warn about checkerframework and Kotlin annotations
|
|
-dontwarn org.checkerframework.**
|
|
-dontwarn kotlin.annotations.jvm.**
|
|
-dontwarn javax.annotation.**
|