proguard.flags 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.view.**
  41. -dontwarn android.os.**
  42. -dontwarn android.graphics.**
  43. # Ignore warnings for hidden utility classes referenced from the shared lib
  44. -dontwarn com.android.internal.util.**
  45. ################ Do not optimize recents lib #############
  46. -keep class com.android.systemui.** {
  47. *;
  48. }
  49. -keep class com.android.quickstep.** {
  50. *;
  51. }