proguard.flags 1.6 KB

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