diff options
author | 2025-01-06 13:01:16 +0100 | |
---|---|---|
committer | 2025-01-08 00:27:12 -0800 | |
commit | 6e9b83d9d6aeba8bed3615eb3a416d749c447823 (patch) | |
tree | 771921e2a920ad11cdb449d88e1d7cc39c224a20 /proguard.flags | |
parent | 888cd43f838a70bd0523acccfd7dd8e5c12d5fc7 (diff) |
Explicitly keep default constructor in rules without members
R8 implicitly keeps the default constructor when no member rules are specified. Future versions of R8 will require apps to explicitly keep the default constructors that are required for the build to work.
This conservatively changes all keep rules that currently keep the default constructor to explicitly keep the default constructor.
Future work will attempt to tighten up the rules that do not require the default constructor to be kept.
Bug: 373579455
Test: existing
Change-Id: Ic6bf0740f0a447bd832dfdfa022ffbc46ed97e11
Diffstat (limited to 'proguard.flags')
-rw-r--r-- | proguard.flags | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/proguard.flags b/proguard.flags index 5541c3ff..c0b7f21e 100644 --- a/proguard.flags +++ b/proguard.flags @@ -1,2 +1,5 @@ # Class referenced from xml drawable --keep class com.android.intentresolver.SimpleIconFactory$FixedScaleDrawable +# TODO(b/373579455): Evaluate if <init> needs to be kept. +-keep class com.android.intentresolver.SimpleIconFactory$FixedScaleDrawable { + void <init>(); +} |