proguard.flags 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. -keep,allowshrinking,allowoptimization class com.android.launcher3.** {
  2. *;
  3. }
  4. -keep class com.android.launcher3.graphics.ShadowDrawable {
  5. public <init>(...);
  6. }
  7. # The support library contains references to newer platform versions.
  8. # Don't warn about those in case this app is linking against an older
  9. # platform version. We know about them, and they are safe.
  10. -dontwarn android.support.**
  11. # Proguard will strip methods required for talkback to properly scroll to
  12. # next row when focus is on the last item of last row when using a RecyclerView
  13. # Keep optimized and shrunk proguard to prevent issues like this when using
  14. # support jar.
  15. -keep class androidx.recyclerview.widget.RecyclerView { *; }
  16. # Fragments
  17. -keep class ** extends androidx.fragment.app.Fragment {
  18. public <init>(...);
  19. }
  20. -keep class ** extends android.app.Fragment {
  21. public <init>(...);
  22. }
  23. ## Prevent obfuscating various overridable objects
  24. -keep class ** implements com.android.launcher3.util.ResourceBasedOverride {
  25. public <init>(...);
  26. }
  27. -keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
  28. *;
  29. }
  30. -keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {
  31. *;
  32. }
  33. # Discovery bounce animation
  34. -keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
  35. public void setProgress(float);
  36. public float getProgress();
  37. }
  38. # BUG(70852369): Surpress additional warnings after changing from Proguard to R8
  39. -dontwarn android.app.**
  40. -dontwarn android.graphics.**
  41. -dontwarn android.os.**
  42. -dontwarn android.view.**
  43. -dontwarn android.window.**
  44. # Ignore warnings for hidden utility classes referenced from the shared lib
  45. -dontwarn com.android.internal.util.**
  46. ################ Do not optimize recents lib #############
  47. -keep class com.android.systemui.** {
  48. *;
  49. }
  50. -keep class com.android.quickstep.** {
  51. *;
  52. }