How to Generate Proguard/R8 rules for Navigation Component Arguments

March 5, 2020

Android Jetpack’s Navigation component is the modern solution for navigating between screens in Android apps. It supports both activities and fragments (including dialogs). What is more, it allows to pass data to destinations. Unfortunately, the Navigation component does not generate Proguard/R8 rules for arguments. This means that if you use Proguard or R8, you have to write these rules manually. This is a tedious and error-prone task. Fortunately, there is a way to generate these rules automatically.

Project link: https://www.thedroidsonroids.com/blog/how-to-generate-proguard-r8-rules-for-navigation-component-arguments

Nifty tech tag lists from Wouter Beeftink