android icon indicating copy to clipboard operation
android copied to clipboard

Investigate and Fix Issues Related to R8 Code Shrinking & Optimization

Open alperozturk96 opened this issue 1 month ago • 1 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

We need to enable and properly configure R8 optimization in the Android build pipeline to reduce APK size and improve runtime performance. Currently, R8 may not be fully enabled or lacks the necessary ProGuard/R8 rules, which can result in missing classes, runtime crashes, or inefficient code shrinking.

https://developer.android.com/topic/performance/app-optimization/enable-app-optimization

alperozturk96 avatar Nov 24 '25 12:11 alperozturk96

@mahibi Did you come across any problem when you enable:

isMinifyEnabled = true
isShrinkResources = true

these?

alperozturk96 avatar Nov 24 '25 12:11 alperozturk96

@mahibi Did you come across any problem when you enable:

isMinifyEnabled = true
isShrinkResources = true

these?

yes, see https://github.com/nextcloud/talk-android/issues/5653

mahibi avatar Dec 18 '25 15:12 mahibi